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 com.fasterxml.jackson.annotation.JsonValue; 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; /** * MetaSchemaDeprecateResponseNextActionsInner */ @JsonTypeName("MetaSchemaDeprecateResponse_nextActions_inner") @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 MetaSchemaDeprecateResponseNextActionsInner implements Serializable { private static final long serialVersionUID = 1L; /** * Gets or Sets action */ public enum ActionEnum { MIGRATE_DATA("migrate_data"), ACTIVATE_REPLACEMENT("activate_replacement"), REVIEW_IMPACT("review_impact"); private final String value; ActionEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static ActionEnum fromValue(String value) { for (ActionEnum b : ActionEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } private @Nullable ActionEnum action; private @Nullable String description; public MetaSchemaDeprecateResponseNextActionsInner action(@Nullable ActionEnum action) { this.action = action; return this; } /** * Get action * @return action */ @Schema(name = "action", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("action") public @Nullable ActionEnum getAction() { return action; } @JsonProperty("action") public void setAction(@Nullable ActionEnum action) { this.action = action; } public MetaSchemaDeprecateResponseNextActionsInner description(@Nullable String description) { this.description = description; return this; } /** * Get description * @return description */ @Schema(name = "description", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("description") public @Nullable String getDescription() { return description; } @JsonProperty("description") public void setDescription(@Nullable String description) { this.description = description; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MetaSchemaDeprecateResponseNextActionsInner metaSchemaDeprecateResponseNextActionsInner = (MetaSchemaDeprecateResponseNextActionsInner) o; return Objects.equals(this.action, metaSchemaDeprecateResponseNextActionsInner.action) && Objects.equals(this.description, metaSchemaDeprecateResponseNextActionsInner.description); } @Override public int hashCode() { return Objects.hash(action, description); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetaSchemaDeprecateResponseNextActionsInner {\n"); sb.append(" action: ").append(toIndentedString(action)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).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 "); } }