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 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 = "RiskActionResult", description = "治理动作执行结果") @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 RiskActionResult implements Serializable { private static final long serialVersionUID = 1L; private @Nullable String actionId; /** * Gets or Sets status */ public enum StatusEnum { EXECUTED("executed"), PENDING_NOTIFICATION("pending_notification"); private final String value; StatusEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static StatusEnum fromValue(String value) { for (StatusEnum b : StatusEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } private @Nullable StatusEnum status; private @Nullable String affectedScope; private @Nullable String auditLogId; public RiskActionResult actionId(@Nullable String actionId) { this.actionId = actionId; return this; } /** * 治理动作记录 ID * @return actionId */ @Schema(name = "actionId", description = "治理动作记录 ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("actionId") public @Nullable String getActionId() { return actionId; } @JsonProperty("actionId") public void setActionId(@Nullable String actionId) { this.actionId = actionId; } public RiskActionResult status(@Nullable StatusEnum status) { this.status = status; return this; } /** * Get status * @return status */ @Schema(name = "status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("status") public @Nullable StatusEnum getStatus() { return status; } @JsonProperty("status") public void setStatus(@Nullable StatusEnum status) { this.status = status; } public RiskActionResult 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 RiskActionResult auditLogId(@Nullable String auditLogId) { this.auditLogId = auditLogId; return this; } /** * 审计日志 ID * @return auditLogId */ @Schema(name = "auditLogId", description = "审计日志 ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("auditLogId") public @Nullable String getAuditLogId() { return auditLogId; } @JsonProperty("auditLogId") public void setAuditLogId(@Nullable String auditLogId) { this.auditLogId = auditLogId; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RiskActionResult riskActionResult = (RiskActionResult) o; return Objects.equals(this.actionId, riskActionResult.actionId) && Objects.equals(this.status, riskActionResult.status) && Objects.equals(this.affectedScope, riskActionResult.affectedScope) && Objects.equals(this.auditLogId, riskActionResult.auditLogId); } @Override public int hashCode() { return Objects.hash(actionId, status, affectedScope, auditLogId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RiskActionResult {\n"); sb.append(" actionId: ").append(toIndentedString(actionId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" affectedScope: ").append(toIndentedString(affectedScope)).append("\n"); sb.append(" auditLogId: ").append(toIndentedString(auditLogId)).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 "); } }