oh-my-muse/docs/api-contracts/generated/java/com/muse/dto/CreateGlobalKBDocumentVersion201ResponseAllOfData.java

137 lines
4.2 KiB
Java

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;
/**
* CreateGlobalKBDocumentVersion201ResponseAllOfData
*/
@JsonTypeName("createGlobalKBDocumentVersion_201_response_allOf_data")
@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 CreateGlobalKBDocumentVersion201ResponseAllOfData implements Serializable {
private static final long serialVersionUID = 1L;
private @Nullable String documentId;
private @Nullable Integer newVersion;
private @Nullable String processingTaskId;
public CreateGlobalKBDocumentVersion201ResponseAllOfData documentId(@Nullable String documentId) {
this.documentId = documentId;
return this;
}
/**
* Get documentId
* @return documentId
*/
@Schema(name = "documentId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("documentId")
public @Nullable String getDocumentId() {
return documentId;
}
@JsonProperty("documentId")
public void setDocumentId(@Nullable String documentId) {
this.documentId = documentId;
}
public CreateGlobalKBDocumentVersion201ResponseAllOfData newVersion(@Nullable Integer newVersion) {
this.newVersion = newVersion;
return this;
}
/**
* Get newVersion
* @return newVersion
*/
@Schema(name = "newVersion", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("newVersion")
public @Nullable Integer getNewVersion() {
return newVersion;
}
@JsonProperty("newVersion")
public void setNewVersion(@Nullable Integer newVersion) {
this.newVersion = newVersion;
}
public CreateGlobalKBDocumentVersion201ResponseAllOfData processingTaskId(@Nullable String processingTaskId) {
this.processingTaskId = processingTaskId;
return this;
}
/**
* Get processingTaskId
* @return processingTaskId
*/
@Schema(name = "processingTaskId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("processingTaskId")
public @Nullable String getProcessingTaskId() {
return processingTaskId;
}
@JsonProperty("processingTaskId")
public void setProcessingTaskId(@Nullable String processingTaskId) {
this.processingTaskId = processingTaskId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateGlobalKBDocumentVersion201ResponseAllOfData createGlobalKBDocumentVersion201ResponseAllOfData = (CreateGlobalKBDocumentVersion201ResponseAllOfData) o;
return Objects.equals(this.documentId, createGlobalKBDocumentVersion201ResponseAllOfData.documentId) &&
Objects.equals(this.newVersion, createGlobalKBDocumentVersion201ResponseAllOfData.newVersion) &&
Objects.equals(this.processingTaskId, createGlobalKBDocumentVersion201ResponseAllOfData.processingTaskId);
}
@Override
public int hashCode() {
return Objects.hash(documentId, newVersion, processingTaskId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateGlobalKBDocumentVersion201ResponseAllOfData {\n");
sb.append(" documentId: ").append(toIndentedString(documentId)).append("\n");
sb.append(" newVersion: ").append(toIndentedString(newVersion)).append("\n");
sb.append(" processingTaskId: ").append(toIndentedString(processingTaskId)).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 ");
}
}