163 lines
4.4 KiB
Java
163 lines
4.4 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 = "QuotaAdjustmentResult_afterSnapshot", description = "调整后权益快照")
|
|
@JsonTypeName("QuotaAdjustmentResult_afterSnapshot")
|
|
@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 QuotaAdjustmentResultAfterSnapshot implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable String resourceType;
|
|
|
|
private @Nullable Integer limit;
|
|
|
|
private @Nullable Integer used;
|
|
|
|
private @Nullable Integer remaining;
|
|
|
|
public QuotaAdjustmentResultAfterSnapshot 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 QuotaAdjustmentResultAfterSnapshot 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;
|
|
}
|
|
|
|
public QuotaAdjustmentResultAfterSnapshot used(@Nullable Integer used) {
|
|
this.used = used;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get used
|
|
* @return used
|
|
*/
|
|
|
|
@Schema(name = "used", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("used")
|
|
public @Nullable Integer getUsed() {
|
|
return used;
|
|
}
|
|
|
|
@JsonProperty("used")
|
|
public void setUsed(@Nullable Integer used) {
|
|
this.used = used;
|
|
}
|
|
|
|
public QuotaAdjustmentResultAfterSnapshot remaining(@Nullable Integer remaining) {
|
|
this.remaining = remaining;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get remaining
|
|
* @return remaining
|
|
*/
|
|
|
|
@Schema(name = "remaining", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("remaining")
|
|
public @Nullable Integer getRemaining() {
|
|
return remaining;
|
|
}
|
|
|
|
@JsonProperty("remaining")
|
|
public void setRemaining(@Nullable Integer remaining) {
|
|
this.remaining = remaining;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
QuotaAdjustmentResultAfterSnapshot quotaAdjustmentResultAfterSnapshot = (QuotaAdjustmentResultAfterSnapshot) o;
|
|
return Objects.equals(this.resourceType, quotaAdjustmentResultAfterSnapshot.resourceType) &&
|
|
Objects.equals(this.limit, quotaAdjustmentResultAfterSnapshot.limit) &&
|
|
Objects.equals(this.used, quotaAdjustmentResultAfterSnapshot.used) &&
|
|
Objects.equals(this.remaining, quotaAdjustmentResultAfterSnapshot.remaining);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(resourceType, limit, used, remaining);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class QuotaAdjustmentResultAfterSnapshot {\n");
|
|
sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n");
|
|
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
|
|
sb.append(" used: ").append(toIndentedString(used)).append("\n");
|
|
sb.append(" remaining: ").append(toIndentedString(remaining)).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 ");
|
|
}
|
|
}
|
|
|