113 lines
3.1 KiB
Java
113 lines
3.1 KiB
Java
package com.muse.dto;
|
|
|
|
import java.net.URI;
|
|
import java.util.Objects;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
|
import org.springframework.lang.Nullable;
|
|
import java.io.Serializable;
|
|
import java.time.OffsetDateTime;
|
|
import jakarta.validation.Valid;
|
|
import jakarta.validation.constraints.*;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
|
import java.util.*;
|
|
import jakarta.annotation.Generated;
|
|
|
|
/**
|
|
* 目标额度配置
|
|
*/
|
|
|
|
@Schema(name = "AdminQuotaRequestCreate_targetQuota", description = "目标额度配置")
|
|
@JsonTypeName("AdminQuotaRequestCreate_targetQuota")
|
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2026-05-24T16:47:40.290595+08:00[Asia/Shanghai]", comments = "Generator version: 7.22.0")
|
|
public class AdminQuotaRequestCreateTargetQuota implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable String resourceType;
|
|
|
|
private @Nullable Integer limit;
|
|
|
|
public AdminQuotaRequestCreateTargetQuota resourceType(@Nullable String resourceType) {
|
|
this.resourceType = resourceType;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get resourceType
|
|
* @return resourceType
|
|
*/
|
|
|
|
@Schema(name = "resourceType", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("resourceType")
|
|
public @Nullable String getResourceType() {
|
|
return resourceType;
|
|
}
|
|
|
|
@JsonProperty("resourceType")
|
|
public void setResourceType(@Nullable String resourceType) {
|
|
this.resourceType = resourceType;
|
|
}
|
|
|
|
public AdminQuotaRequestCreateTargetQuota limit(@Nullable Integer limit) {
|
|
this.limit = limit;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get limit
|
|
* @return limit
|
|
*/
|
|
|
|
@Schema(name = "limit", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("limit")
|
|
public @Nullable Integer getLimit() {
|
|
return limit;
|
|
}
|
|
|
|
@JsonProperty("limit")
|
|
public void setLimit(@Nullable Integer limit) {
|
|
this.limit = limit;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
AdminQuotaRequestCreateTargetQuota adminQuotaRequestCreateTargetQuota = (AdminQuotaRequestCreateTargetQuota) o;
|
|
return Objects.equals(this.resourceType, adminQuotaRequestCreateTargetQuota.resourceType) &&
|
|
Objects.equals(this.limit, adminQuotaRequestCreateTargetQuota.limit);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(resourceType, limit);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class AdminQuotaRequestCreateTargetQuota {\n");
|
|
sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n");
|
|
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
|
|
sb.append("}");
|
|
return sb.toString();
|
|
}
|
|
|
|
/**
|
|
* Convert the given object to string with each line indented by 4 spaces
|
|
* (except the first line).
|
|
*/
|
|
private String toIndentedString(@Nullable Object o) {
|
|
return o == null ? "null" : o.toString().replace("\n", "\n ");
|
|
}
|
|
}
|
|
|