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.muse.dto.MetaSchemaDeprecateResponseNextActionsInner; import java.util.ArrayList; import java.util.Arrays; import java.util.List; 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; /** * MetaSchemaDeprecateResponse */ @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 MetaSchemaDeprecateResponse implements Serializable { private static final long serialVersionUID = 1L; private @Nullable String schemaKey; private @Nullable Integer version; @Valid private List deprecatedFields = new ArrayList<>(); private @Nullable Boolean entireVersionDeprecated; private @Nullable Integer affectedProjectionCount; @Valid private List<@Valid MetaSchemaDeprecateResponseNextActionsInner> nextActions = new ArrayList<>(); public MetaSchemaDeprecateResponse schemaKey(@Nullable String schemaKey) { this.schemaKey = schemaKey; return this; } /** * Get schemaKey * @return schemaKey */ @Schema(name = "schemaKey", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("schemaKey") public @Nullable String getSchemaKey() { return schemaKey; } @JsonProperty("schemaKey") public void setSchemaKey(@Nullable String schemaKey) { this.schemaKey = schemaKey; } public MetaSchemaDeprecateResponse version(@Nullable Integer version) { this.version = version; return this; } /** * Get version * @return version */ @Schema(name = "version", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("version") public @Nullable Integer getVersion() { return version; } @JsonProperty("version") public void setVersion(@Nullable Integer version) { this.version = version; } public MetaSchemaDeprecateResponse deprecatedFields(List deprecatedFields) { this.deprecatedFields = deprecatedFields; return this; } public MetaSchemaDeprecateResponse addDeprecatedFieldsItem(String deprecatedFieldsItem) { if (this.deprecatedFields == null) { this.deprecatedFields = new ArrayList<>(); } this.deprecatedFields.add(deprecatedFieldsItem); return this; } /** * 已废弃字段列表 * @return deprecatedFields */ @Schema(name = "deprecatedFields", description = "已废弃字段列表", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("deprecatedFields") public List getDeprecatedFields() { return deprecatedFields; } @JsonProperty("deprecatedFields") public void setDeprecatedFields(List deprecatedFields) { this.deprecatedFields = deprecatedFields; } public MetaSchemaDeprecateResponse entireVersionDeprecated(@Nullable Boolean entireVersionDeprecated) { this.entireVersionDeprecated = entireVersionDeprecated; return this; } /** * Get entireVersionDeprecated * @return entireVersionDeprecated */ @Schema(name = "entireVersionDeprecated", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("entireVersionDeprecated") public @Nullable Boolean getEntireVersionDeprecated() { return entireVersionDeprecated; } @JsonProperty("entireVersionDeprecated") public void setEntireVersionDeprecated(@Nullable Boolean entireVersionDeprecated) { this.entireVersionDeprecated = entireVersionDeprecated; } public MetaSchemaDeprecateResponse affectedProjectionCount(@Nullable Integer affectedProjectionCount) { this.affectedProjectionCount = affectedProjectionCount; return this; } /** * Get affectedProjectionCount * @return affectedProjectionCount */ @Schema(name = "affectedProjectionCount", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("affectedProjectionCount") public @Nullable Integer getAffectedProjectionCount() { return affectedProjectionCount; } @JsonProperty("affectedProjectionCount") public void setAffectedProjectionCount(@Nullable Integer affectedProjectionCount) { this.affectedProjectionCount = affectedProjectionCount; } public MetaSchemaDeprecateResponse nextActions(List<@Valid MetaSchemaDeprecateResponseNextActionsInner> nextActions) { this.nextActions = nextActions; return this; } public MetaSchemaDeprecateResponse addNextActionsItem(MetaSchemaDeprecateResponseNextActionsInner nextActionsItem) { if (this.nextActions == null) { this.nextActions = new ArrayList<>(); } this.nextActions.add(nextActionsItem); return this; } /** * Get nextActions * @return nextActions */ @Valid @Schema(name = "nextActions", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("nextActions") public List<@Valid MetaSchemaDeprecateResponseNextActionsInner> getNextActions() { return nextActions; } @JsonProperty("nextActions") public void setNextActions(List<@Valid MetaSchemaDeprecateResponseNextActionsInner> nextActions) { this.nextActions = nextActions; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MetaSchemaDeprecateResponse metaSchemaDeprecateResponse = (MetaSchemaDeprecateResponse) o; return Objects.equals(this.schemaKey, metaSchemaDeprecateResponse.schemaKey) && Objects.equals(this.version, metaSchemaDeprecateResponse.version) && Objects.equals(this.deprecatedFields, metaSchemaDeprecateResponse.deprecatedFields) && Objects.equals(this.entireVersionDeprecated, metaSchemaDeprecateResponse.entireVersionDeprecated) && Objects.equals(this.affectedProjectionCount, metaSchemaDeprecateResponse.affectedProjectionCount) && Objects.equals(this.nextActions, metaSchemaDeprecateResponse.nextActions); } @Override public int hashCode() { return Objects.hash(schemaKey, version, deprecatedFields, entireVersionDeprecated, affectedProjectionCount, nextActions); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetaSchemaDeprecateResponse {\n"); sb.append(" schemaKey: ").append(toIndentedString(schemaKey)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" deprecatedFields: ").append(toIndentedString(deprecatedFields)).append("\n"); sb.append(" entireVersionDeprecated: ").append(toIndentedString(entireVersionDeprecated)).append("\n"); sb.append(" affectedProjectionCount: ").append(toIndentedString(affectedProjectionCount)).append("\n"); sb.append(" nextActions: ").append(toIndentedString(nextActions)).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 "); } }