138 lines
3.9 KiB
Java
138 lines
3.9 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 = "QuotaAdjustmentRequest_adjustments_inner_beforeSnapshot", description = "调整前权益快照")
|
|
@JsonTypeName("QuotaAdjustmentRequest_adjustments_inner_beforeSnapshot")
|
|
@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 QuotaAdjustmentRequestAdjustmentsInnerBeforeSnapshot implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable Integer limit;
|
|
|
|
private @Nullable Integer used;
|
|
|
|
private @Nullable Integer remaining;
|
|
|
|
public QuotaAdjustmentRequestAdjustmentsInnerBeforeSnapshot 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 QuotaAdjustmentRequestAdjustmentsInnerBeforeSnapshot 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 QuotaAdjustmentRequestAdjustmentsInnerBeforeSnapshot 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;
|
|
}
|
|
QuotaAdjustmentRequestAdjustmentsInnerBeforeSnapshot quotaAdjustmentRequestAdjustmentsInnerBeforeSnapshot = (QuotaAdjustmentRequestAdjustmentsInnerBeforeSnapshot) o;
|
|
return Objects.equals(this.limit, quotaAdjustmentRequestAdjustmentsInnerBeforeSnapshot.limit) &&
|
|
Objects.equals(this.used, quotaAdjustmentRequestAdjustmentsInnerBeforeSnapshot.used) &&
|
|
Objects.equals(this.remaining, quotaAdjustmentRequestAdjustmentsInnerBeforeSnapshot.remaining);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(limit, used, remaining);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class QuotaAdjustmentRequestAdjustmentsInnerBeforeSnapshot {\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 ");
|
|
}
|
|
}
|
|
|