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 java.util.UUID; 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; /** * BatchConfirmChaptersResultFailedChaptersInner */ @JsonTypeName("BatchConfirmChaptersResult_failedChapters_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 BatchConfirmChaptersResultFailedChaptersInner implements Serializable { private static final long serialVersionUID = 1L; private @Nullable UUID resultId; private @Nullable String errorCode; private @Nullable String errorMessage; public BatchConfirmChaptersResultFailedChaptersInner resultId(@Nullable UUID resultId) { this.resultId = resultId; return this; } /** * Get resultId * @return resultId */ @Valid @Schema(name = "resultId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("resultId") public @Nullable UUID getResultId() { return resultId; } @JsonProperty("resultId") public void setResultId(@Nullable UUID resultId) { this.resultId = resultId; } public BatchConfirmChaptersResultFailedChaptersInner errorCode(@Nullable String errorCode) { this.errorCode = errorCode; return this; } /** * Get errorCode * @return errorCode */ @Schema(name = "errorCode", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("errorCode") public @Nullable String getErrorCode() { return errorCode; } @JsonProperty("errorCode") public void setErrorCode(@Nullable String errorCode) { this.errorCode = errorCode; } public BatchConfirmChaptersResultFailedChaptersInner errorMessage(@Nullable String errorMessage) { this.errorMessage = errorMessage; return this; } /** * Get errorMessage * @return errorMessage */ @Schema(name = "errorMessage", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("errorMessage") public @Nullable String getErrorMessage() { return errorMessage; } @JsonProperty("errorMessage") public void setErrorMessage(@Nullable String errorMessage) { this.errorMessage = errorMessage; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } BatchConfirmChaptersResultFailedChaptersInner batchConfirmChaptersResultFailedChaptersInner = (BatchConfirmChaptersResultFailedChaptersInner) o; return Objects.equals(this.resultId, batchConfirmChaptersResultFailedChaptersInner.resultId) && Objects.equals(this.errorCode, batchConfirmChaptersResultFailedChaptersInner.errorCode) && Objects.equals(this.errorMessage, batchConfirmChaptersResultFailedChaptersInner.errorMessage); } @Override public int hashCode() { return Objects.hash(resultId, errorCode, errorMessage); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BatchConfirmChaptersResultFailedChaptersInner {\n"); sb.append(" resultId: ").append(toIndentedString(resultId)).append("\n"); sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).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 "); } }