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.JsonValue; import java.time.OffsetDateTime; import org.springframework.format.annotation.DateTimeFormat; 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 = "GovernanceResultSummary", description = "治理结果摘要") @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 GovernanceResultSummary implements Serializable { private static final long serialVersionUID = 1L; /** * 结果类型 */ public enum ResultTypeEnum { DELIST("delist"), RECALL("recall"), REVOKE("revoke"), APPEAL("appeal"); private final String value; ResultTypeEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static ResultTypeEnum fromValue(String value) { for (ResultTypeEnum b : ResultTypeEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } private @Nullable ResultTypeEnum resultType; private @Nullable String reason; @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private @Nullable OffsetDateTime effectiveAt; private @Nullable String scope; private @Nullable Boolean newAcquireStopped; private @Nullable Boolean newInstallStopped; private @Nullable Boolean newBindStopped; private @Nullable Boolean generationUseStopped; public GovernanceResultSummary resultType(@Nullable ResultTypeEnum resultType) { this.resultType = resultType; return this; } /** * 结果类型 * @return resultType */ @Schema(name = "resultType", description = "结果类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("resultType") public @Nullable ResultTypeEnum getResultType() { return resultType; } @JsonProperty("resultType") public void setResultType(@Nullable ResultTypeEnum resultType) { this.resultType = resultType; } public GovernanceResultSummary reason(@Nullable String reason) { this.reason = reason; return this; } /** * 原因摘要 * @return reason */ @Schema(name = "reason", description = "原因摘要", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("reason") public @Nullable String getReason() { return reason; } @JsonProperty("reason") public void setReason(@Nullable String reason) { this.reason = reason; } public GovernanceResultSummary effectiveAt(@Nullable OffsetDateTime effectiveAt) { this.effectiveAt = effectiveAt; return this; } /** * 生效时间 * @return effectiveAt */ @Valid @Schema(name = "effectiveAt", description = "生效时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("effectiveAt") public @Nullable OffsetDateTime getEffectiveAt() { return effectiveAt; } @JsonProperty("effectiveAt") public void setEffectiveAt(@Nullable OffsetDateTime effectiveAt) { this.effectiveAt = effectiveAt; } public GovernanceResultSummary scope(@Nullable String scope) { this.scope = scope; return this; } /** * 影响范围说明 * @return scope */ @Schema(name = "scope", description = "影响范围说明", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("scope") public @Nullable String getScope() { return scope; } @JsonProperty("scope") public void setScope(@Nullable String scope) { this.scope = scope; } public GovernanceResultSummary newAcquireStopped(@Nullable Boolean newAcquireStopped) { this.newAcquireStopped = newAcquireStopped; return this; } /** * Get newAcquireStopped * @return newAcquireStopped */ @Schema(name = "newAcquireStopped", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("newAcquireStopped") public @Nullable Boolean getNewAcquireStopped() { return newAcquireStopped; } @JsonProperty("newAcquireStopped") public void setNewAcquireStopped(@Nullable Boolean newAcquireStopped) { this.newAcquireStopped = newAcquireStopped; } public GovernanceResultSummary newInstallStopped(@Nullable Boolean newInstallStopped) { this.newInstallStopped = newInstallStopped; return this; } /** * Get newInstallStopped * @return newInstallStopped */ @Schema(name = "newInstallStopped", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("newInstallStopped") public @Nullable Boolean getNewInstallStopped() { return newInstallStopped; } @JsonProperty("newInstallStopped") public void setNewInstallStopped(@Nullable Boolean newInstallStopped) { this.newInstallStopped = newInstallStopped; } public GovernanceResultSummary newBindStopped(@Nullable Boolean newBindStopped) { this.newBindStopped = newBindStopped; return this; } /** * Get newBindStopped * @return newBindStopped */ @Schema(name = "newBindStopped", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("newBindStopped") public @Nullable Boolean getNewBindStopped() { return newBindStopped; } @JsonProperty("newBindStopped") public void setNewBindStopped(@Nullable Boolean newBindStopped) { this.newBindStopped = newBindStopped; } public GovernanceResultSummary generationUseStopped(@Nullable Boolean generationUseStopped) { this.generationUseStopped = generationUseStopped; return this; } /** * Get generationUseStopped * @return generationUseStopped */ @Schema(name = "generationUseStopped", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("generationUseStopped") public @Nullable Boolean getGenerationUseStopped() { return generationUseStopped; } @JsonProperty("generationUseStopped") public void setGenerationUseStopped(@Nullable Boolean generationUseStopped) { this.generationUseStopped = generationUseStopped; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } GovernanceResultSummary governanceResultSummary = (GovernanceResultSummary) o; return Objects.equals(this.resultType, governanceResultSummary.resultType) && Objects.equals(this.reason, governanceResultSummary.reason) && Objects.equals(this.effectiveAt, governanceResultSummary.effectiveAt) && Objects.equals(this.scope, governanceResultSummary.scope) && Objects.equals(this.newAcquireStopped, governanceResultSummary.newAcquireStopped) && Objects.equals(this.newInstallStopped, governanceResultSummary.newInstallStopped) && Objects.equals(this.newBindStopped, governanceResultSummary.newBindStopped) && Objects.equals(this.generationUseStopped, governanceResultSummary.generationUseStopped); } @Override public int hashCode() { return Objects.hash(resultType, reason, effectiveAt, scope, newAcquireStopped, newInstallStopped, newBindStopped, generationUseStopped); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GovernanceResultSummary {\n"); sb.append(" resultType: ").append(toIndentedString(resultType)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" effectiveAt: ").append(toIndentedString(effectiveAt)).append("\n"); sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); sb.append(" newAcquireStopped: ").append(toIndentedString(newAcquireStopped)).append("\n"); sb.append(" newInstallStopped: ").append(toIndentedString(newInstallStopped)).append("\n"); sb.append(" newBindStopped: ").append(toIndentedString(newBindStopped)).append("\n"); sb.append(" generationUseStopped: ").append(toIndentedString(generationUseStopped)).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 "); } }