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 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 = "PlanningItemSaveResult", 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 PlanningItemSaveResult implements Serializable { private static final long serialVersionUID = 1L; private @Nullable String sectionKey; private @Nullable Integer newRevision; @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private @Nullable OffsetDateTime updatedAt; public PlanningItemSaveResult 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 PlanningItemSaveResult newRevision(@Nullable Integer newRevision) { this.newRevision = newRevision; return this; } /** * Get newRevision * @return newRevision */ @Schema(name = "newRevision", 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 PlanningItemSaveResult updatedAt(@Nullable OffsetDateTime updatedAt) { this.updatedAt = updatedAt; return this; } /** * Get updatedAt * @return updatedAt */ @Valid @Schema(name = "updatedAt", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("updatedAt") public @Nullable OffsetDateTime getUpdatedAt() { return updatedAt; } @JsonProperty("updatedAt") public void setUpdatedAt(@Nullable OffsetDateTime updatedAt) { this.updatedAt = updatedAt; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } PlanningItemSaveResult planningItemSaveResult = (PlanningItemSaveResult) o; return Objects.equals(this.sectionKey, planningItemSaveResult.sectionKey) && Objects.equals(this.newRevision, planningItemSaveResult.newRevision) && Objects.equals(this.updatedAt, planningItemSaveResult.updatedAt); } @Override public int hashCode() { return Objects.hash(sectionKey, newRevision, updatedAt); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlanningItemSaveResult {\n"); sb.append(" sectionKey: ").append(toIndentedString(sectionKey)).append("\n"); sb.append(" newRevision: ").append(toIndentedString(newRevision)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).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 "); } }