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.JsonTypeName; 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 = "SavePlanningItemRequest_sourceSnapshot", description = "来源快照摘要") @JsonTypeName("SavePlanningItemRequest_sourceSnapshot") @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 SavePlanningItemRequestSourceSnapshot implements Serializable { private static final long serialVersionUID = 1L; private @Nullable String sourceType; private @Nullable Integer sourceVersion; private @Nullable String authorizationSnapshotId; public SavePlanningItemRequestSourceSnapshot sourceType(@Nullable String sourceType) { this.sourceType = sourceType; return this; } /** * Get sourceType * @return sourceType */ @Schema(name = "sourceType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("sourceType") public @Nullable String getSourceType() { return sourceType; } @JsonProperty("sourceType") public void setSourceType(@Nullable String sourceType) { this.sourceType = sourceType; } public SavePlanningItemRequestSourceSnapshot sourceVersion(@Nullable Integer sourceVersion) { this.sourceVersion = sourceVersion; return this; } /** * Get sourceVersion * @return sourceVersion */ @Schema(name = "sourceVersion", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("sourceVersion") public @Nullable Integer getSourceVersion() { return sourceVersion; } @JsonProperty("sourceVersion") public void setSourceVersion(@Nullable Integer sourceVersion) { this.sourceVersion = sourceVersion; } public SavePlanningItemRequestSourceSnapshot authorizationSnapshotId(@Nullable String authorizationSnapshotId) { this.authorizationSnapshotId = authorizationSnapshotId; return this; } /** * Get authorizationSnapshotId * @return authorizationSnapshotId */ @Schema(name = "authorizationSnapshotId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("authorizationSnapshotId") public @Nullable String getAuthorizationSnapshotId() { return authorizationSnapshotId; } @JsonProperty("authorizationSnapshotId") public void setAuthorizationSnapshotId(@Nullable String authorizationSnapshotId) { this.authorizationSnapshotId = authorizationSnapshotId; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SavePlanningItemRequestSourceSnapshot savePlanningItemRequestSourceSnapshot = (SavePlanningItemRequestSourceSnapshot) o; return Objects.equals(this.sourceType, savePlanningItemRequestSourceSnapshot.sourceType) && Objects.equals(this.sourceVersion, savePlanningItemRequestSourceSnapshot.sourceVersion) && Objects.equals(this.authorizationSnapshotId, savePlanningItemRequestSourceSnapshot.authorizationSnapshotId); } @Override public int hashCode() { return Objects.hash(sourceType, sourceVersion, authorizationSnapshotId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SavePlanningItemRequestSourceSnapshot {\n"); sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); sb.append(" sourceVersion: ").append(toIndentedString(sourceVersion)).append("\n"); sb.append(" authorizationSnapshotId: ").append(toIndentedString(authorizationSnapshotId)).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 "); } }