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; /** * SaveBlock200ResponseAllOfData */ @JsonTypeName("saveBlock_200_response_allOf_data") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2026-05-24T14:16:55.032756+08:00[Asia/Shanghai]", comments = "Generator version: 7.22.0") public class SaveBlock200ResponseAllOfData implements Serializable { private static final long serialVersionUID = 1L; private @Nullable Integer newVersion; public SaveBlock200ResponseAllOfData newVersion(@Nullable Integer newVersion) { this.newVersion = newVersion; return this; } /** * 保存后的新版本号 * @return newVersion */ @Schema(name = "newVersion", description = "保存后的新版本号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("newVersion") public @Nullable Integer getNewVersion() { return newVersion; } @JsonProperty("newVersion") public void setNewVersion(@Nullable Integer newVersion) { this.newVersion = newVersion; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SaveBlock200ResponseAllOfData saveBlock200ResponseAllOfData = (SaveBlock200ResponseAllOfData) o; return Objects.equals(this.newVersion, saveBlock200ResponseAllOfData.newVersion); } @Override public int hashCode() { return Objects.hash(newVersion); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SaveBlock200ResponseAllOfData {\n"); sb.append(" newVersion: ").append(toIndentedString(newVersion)).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 "); } }