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.GrayRulesConfig; 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; /** * MetaSchemaGrayRulesResponse */ @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2026-05-24T15:05:54.603829+08:00[Asia/Shanghai]", comments = "Generator version: 7.22.0") public class MetaSchemaGrayRulesResponse implements Serializable { private static final long serialVersionUID = 1L; private @Nullable String schemaKey; private @Nullable Integer version; private @Nullable GrayRulesConfig grayRules; private @Nullable String affectedScope; private @Nullable String rollbackEntry; public MetaSchemaGrayRulesResponse 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 MetaSchemaGrayRulesResponse 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 MetaSchemaGrayRulesResponse grayRules(@Nullable GrayRulesConfig grayRules) { this.grayRules = grayRules; return this; } /** * Get grayRules * @return grayRules */ @Valid @Schema(name = "grayRules", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("grayRules") public @Nullable GrayRulesConfig getGrayRules() { return grayRules; } @JsonProperty("grayRules") public void setGrayRules(@Nullable GrayRulesConfig grayRules) { this.grayRules = grayRules; } public MetaSchemaGrayRulesResponse affectedScope(@Nullable String affectedScope) { this.affectedScope = affectedScope; return this; } /** * 当前灰度影响范围描述 * @return affectedScope */ @Schema(name = "affectedScope", description = "当前灰度影响范围描述", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("affectedScope") public @Nullable String getAffectedScope() { return affectedScope; } @JsonProperty("affectedScope") public void setAffectedScope(@Nullable String affectedScope) { this.affectedScope = affectedScope; } public MetaSchemaGrayRulesResponse rollbackEntry(@Nullable String rollbackEntry) { this.rollbackEntry = rollbackEntry; return this; } /** * 回滚入口 * @return rollbackEntry */ @Schema(name = "rollbackEntry", description = "回滚入口", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("rollbackEntry") public @Nullable String getRollbackEntry() { return rollbackEntry; } @JsonProperty("rollbackEntry") public void setRollbackEntry(@Nullable String rollbackEntry) { this.rollbackEntry = rollbackEntry; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MetaSchemaGrayRulesResponse metaSchemaGrayRulesResponse = (MetaSchemaGrayRulesResponse) o; return Objects.equals(this.schemaKey, metaSchemaGrayRulesResponse.schemaKey) && Objects.equals(this.version, metaSchemaGrayRulesResponse.version) && Objects.equals(this.grayRules, metaSchemaGrayRulesResponse.grayRules) && Objects.equals(this.affectedScope, metaSchemaGrayRulesResponse.affectedScope) && Objects.equals(this.rollbackEntry, metaSchemaGrayRulesResponse.rollbackEntry); } @Override public int hashCode() { return Objects.hash(schemaKey, version, grayRules, affectedScope, rollbackEntry); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MetaSchemaGrayRulesResponse {\n"); sb.append(" schemaKey: ").append(toIndentedString(schemaKey)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" grayRules: ").append(toIndentedString(grayRules)).append("\n"); sb.append(" affectedScope: ").append(toIndentedString(affectedScope)).append("\n"); sb.append(" rollbackEntry: ").append(toIndentedString(rollbackEntry)).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 "); } }