176 lines
5.3 KiB
Java
176 lines
5.3 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.muse.dto.CreateParseJobRequestParseConfig;
|
||
import com.muse.dto.CreatePlanningCandidateRequestSourceSnapshot;
|
||
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;
|
||
|
||
/**
|
||
* 基于 Content 导入上下文请求 AI Orchestration 创建全书解析任务;Content 不拥有 Parse Job 运行事实。
|
||
*/
|
||
|
||
@Schema(name = "CreateParseJobRequest", description = "基于 Content 导入上下文请求 AI Orchestration 创建全书解析任务;Content 不拥有 Parse Job 运行事实。")
|
||
@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 CreateParseJobRequest implements Serializable {
|
||
|
||
private static final long serialVersionUID = 1L;
|
||
|
||
private String commandId;
|
||
|
||
private UUID importTaskId;
|
||
|
||
private @Nullable CreateParseJobRequestParseConfig parseConfig;
|
||
|
||
private @Nullable CreatePlanningCandidateRequestSourceSnapshot sourceSnapshot;
|
||
|
||
public CreateParseJobRequest() {
|
||
super();
|
||
}
|
||
|
||
/**
|
||
* Constructor with only required parameters
|
||
*/
|
||
public CreateParseJobRequest(String commandId, UUID importTaskId) {
|
||
this.commandId = commandId;
|
||
this.importTaskId = importTaskId;
|
||
}
|
||
|
||
public CreateParseJobRequest commandId(String commandId) {
|
||
this.commandId = commandId;
|
||
return this;
|
||
}
|
||
|
||
/**
|
||
* 幂等键
|
||
* @return commandId
|
||
*/
|
||
@NotNull
|
||
@Schema(name = "commandId", description = "幂等键", requiredMode = Schema.RequiredMode.REQUIRED)
|
||
@JsonProperty("commandId")
|
||
public String getCommandId() {
|
||
return commandId;
|
||
}
|
||
|
||
@JsonProperty("commandId")
|
||
public void setCommandId(String commandId) {
|
||
this.commandId = commandId;
|
||
}
|
||
|
||
public CreateParseJobRequest importTaskId(UUID importTaskId) {
|
||
this.importTaskId = importTaskId;
|
||
return this;
|
||
}
|
||
|
||
/**
|
||
* 关联的导入任务 ID
|
||
* @return importTaskId
|
||
*/
|
||
@NotNull @Valid
|
||
@Schema(name = "importTaskId", description = "关联的导入任务 ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||
@JsonProperty("importTaskId")
|
||
public UUID getImportTaskId() {
|
||
return importTaskId;
|
||
}
|
||
|
||
@JsonProperty("importTaskId")
|
||
public void setImportTaskId(UUID importTaskId) {
|
||
this.importTaskId = importTaskId;
|
||
}
|
||
|
||
public CreateParseJobRequest parseConfig(@Nullable CreateParseJobRequestParseConfig parseConfig) {
|
||
this.parseConfig = parseConfig;
|
||
return this;
|
||
}
|
||
|
||
/**
|
||
* Get parseConfig
|
||
* @return parseConfig
|
||
*/
|
||
@Valid
|
||
@Schema(name = "parseConfig", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||
@JsonProperty("parseConfig")
|
||
public @Nullable CreateParseJobRequestParseConfig getParseConfig() {
|
||
return parseConfig;
|
||
}
|
||
|
||
@JsonProperty("parseConfig")
|
||
public void setParseConfig(@Nullable CreateParseJobRequestParseConfig parseConfig) {
|
||
this.parseConfig = parseConfig;
|
||
}
|
||
|
||
public CreateParseJobRequest sourceSnapshot(@Nullable CreatePlanningCandidateRequestSourceSnapshot sourceSnapshot) {
|
||
this.sourceSnapshot = sourceSnapshot;
|
||
return this;
|
||
}
|
||
|
||
/**
|
||
* Get sourceSnapshot
|
||
* @return sourceSnapshot
|
||
*/
|
||
@Valid
|
||
@Schema(name = "sourceSnapshot", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||
@JsonProperty("sourceSnapshot")
|
||
public @Nullable CreatePlanningCandidateRequestSourceSnapshot getSourceSnapshot() {
|
||
return sourceSnapshot;
|
||
}
|
||
|
||
@JsonProperty("sourceSnapshot")
|
||
public void setSourceSnapshot(@Nullable CreatePlanningCandidateRequestSourceSnapshot sourceSnapshot) {
|
||
this.sourceSnapshot = sourceSnapshot;
|
||
}
|
||
|
||
@Override
|
||
public boolean equals(Object o) {
|
||
if (this == o) {
|
||
return true;
|
||
}
|
||
if (o == null || getClass() != o.getClass()) {
|
||
return false;
|
||
}
|
||
CreateParseJobRequest createParseJobRequest = (CreateParseJobRequest) o;
|
||
return Objects.equals(this.commandId, createParseJobRequest.commandId) &&
|
||
Objects.equals(this.importTaskId, createParseJobRequest.importTaskId) &&
|
||
Objects.equals(this.parseConfig, createParseJobRequest.parseConfig) &&
|
||
Objects.equals(this.sourceSnapshot, createParseJobRequest.sourceSnapshot);
|
||
}
|
||
|
||
@Override
|
||
public int hashCode() {
|
||
return Objects.hash(commandId, importTaskId, parseConfig, sourceSnapshot);
|
||
}
|
||
|
||
@Override
|
||
public String toString() {
|
||
StringBuilder sb = new StringBuilder();
|
||
sb.append("class CreateParseJobRequest {\n");
|
||
sb.append(" commandId: ").append(toIndentedString(commandId)).append("\n");
|
||
sb.append(" importTaskId: ").append(toIndentedString(importTaskId)).append("\n");
|
||
sb.append(" parseConfig: ").append(toIndentedString(parseConfig)).append("\n");
|
||
sb.append(" sourceSnapshot: ").append(toIndentedString(sourceSnapshot)).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 ");
|
||
}
|
||
}
|
||
|