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 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 = "PlanningCandidateDecisionResult", 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 PlanningCandidateDecisionResult implements Serializable { private static final long serialVersionUID = 1L; private @Nullable String candidateId; private @Nullable Integer newRevision; private @Nullable String sectionKey; private @Nullable String auditLogId; public PlanningCandidateDecisionResult candidateId(@Nullable String candidateId) { this.candidateId = candidateId; return this; } /** * Get candidateId * @return candidateId */ @Schema(name = "candidateId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("candidateId") public @Nullable String getCandidateId() { return candidateId; } @JsonProperty("candidateId") public void setCandidateId(@Nullable String candidateId) { this.candidateId = candidateId; } public PlanningCandidateDecisionResult newRevision(@Nullable Integer newRevision) { this.newRevision = newRevision; return this; } /** * 规划项新 revision * @return newRevision */ @Schema(name = "newRevision", description = "规划项新 revision", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("newRevision") public @Nullable Integer getNewRevision() { return newRevision; } @JsonProperty("newRevision") public void setNewRevision(@Nullable Integer newRevision) { this.newRevision = newRevision; } public PlanningCandidateDecisionResult sectionKey(@Nullable String sectionKey) { this.sectionKey = sectionKey; return this; } /** * Get sectionKey * @return sectionKey */ @Schema(name = "sectionKey", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("sectionKey") public @Nullable String getSectionKey() { return sectionKey; } @JsonProperty("sectionKey") public void setSectionKey(@Nullable String sectionKey) { this.sectionKey = sectionKey; } public PlanningCandidateDecisionResult auditLogId(@Nullable String auditLogId) { this.auditLogId = auditLogId; return this; } /** * Get auditLogId * @return auditLogId */ @Schema(name = "auditLogId", 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; } PlanningCandidateDecisionResult planningCandidateDecisionResult = (PlanningCandidateDecisionResult) o; return Objects.equals(this.candidateId, planningCandidateDecisionResult.candidateId) && Objects.equals(this.newRevision, planningCandidateDecisionResult.newRevision) && Objects.equals(this.sectionKey, planningCandidateDecisionResult.sectionKey) && Objects.equals(this.auditLogId, planningCandidateDecisionResult.auditLogId); } @Override public int hashCode() { return Objects.hash(candidateId, newRevision, sectionKey, auditLogId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlanningCandidateDecisionResult {\n"); sb.append(" candidateId: ").append(toIndentedString(candidateId)).append("\n"); sb.append(" newRevision: ").append(toIndentedString(newRevision)).append("\n"); sb.append(" sectionKey: ").append(toIndentedString(sectionKey)).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 "); } }