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; /** * GetEntity200ResponseAllOfDataSourceRefsInner */ @JsonTypeName("getEntity_200_response_allOf_data_sourceRefs_inner") @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 GetEntity200ResponseAllOfDataSourceRefsInner implements Serializable { private static final long serialVersionUID = 1L; private @Nullable String sourceType; private @Nullable String sourceId; private @Nullable Integer sourceVersion; private @Nullable Float confidence; public GetEntity200ResponseAllOfDataSourceRefsInner 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 GetEntity200ResponseAllOfDataSourceRefsInner sourceId(@Nullable String sourceId) { this.sourceId = sourceId; return this; } /** * Get sourceId * @return sourceId */ @Schema(name = "sourceId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("sourceId") public @Nullable String getSourceId() { return sourceId; } @JsonProperty("sourceId") public void setSourceId(@Nullable String sourceId) { this.sourceId = sourceId; } public GetEntity200ResponseAllOfDataSourceRefsInner 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 GetEntity200ResponseAllOfDataSourceRefsInner confidence(@Nullable Float confidence) { this.confidence = confidence; return this; } /** * Get confidence * @return confidence */ @Schema(name = "confidence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("confidence") public @Nullable Float getConfidence() { return confidence; } @JsonProperty("confidence") public void setConfidence(@Nullable Float confidence) { this.confidence = confidence; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } GetEntity200ResponseAllOfDataSourceRefsInner getEntity200ResponseAllOfDataSourceRefsInner = (GetEntity200ResponseAllOfDataSourceRefsInner) o; return Objects.equals(this.sourceType, getEntity200ResponseAllOfDataSourceRefsInner.sourceType) && Objects.equals(this.sourceId, getEntity200ResponseAllOfDataSourceRefsInner.sourceId) && Objects.equals(this.sourceVersion, getEntity200ResponseAllOfDataSourceRefsInner.sourceVersion) && Objects.equals(this.confidence, getEntity200ResponseAllOfDataSourceRefsInner.confidence); } @Override public int hashCode() { return Objects.hash(sourceType, sourceId, sourceVersion, confidence); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetEntity200ResponseAllOfDataSourceRefsInner {\n"); sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); sb.append(" sourceId: ").append(toIndentedString(sourceId)).append("\n"); sb.append(" sourceVersion: ").append(toIndentedString(sourceVersion)).append("\n"); sb.append(" confidence: ").append(toIndentedString(confidence)).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 "); } }