188 lines
5.8 KiB
Java
188 lines
5.8 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 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;
|
||
|
||
/**
|
||
* CreateAiTask202ResponseAllOfData
|
||
*/
|
||
|
||
@JsonTypeName("createAiTask_202_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 CreateAiTask202ResponseAllOfData implements Serializable {
|
||
|
||
private static final long serialVersionUID = 1L;
|
||
|
||
private @Nullable UUID taskId;
|
||
|
||
private @Nullable UUID jobId;
|
||
|
||
private @Nullable String pollUrl;
|
||
|
||
private @Nullable String sourceSnapshotId;
|
||
|
||
private @Nullable String runtimePermissionEnvelopeId;
|
||
|
||
public CreateAiTask202ResponseAllOfData taskId(@Nullable UUID taskId) {
|
||
this.taskId = taskId;
|
||
return this;
|
||
}
|
||
|
||
/**
|
||
* Get taskId
|
||
* @return taskId
|
||
*/
|
||
@Valid
|
||
@Schema(name = "taskId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||
@JsonProperty("taskId")
|
||
public @Nullable UUID getTaskId() {
|
||
return taskId;
|
||
}
|
||
|
||
@JsonProperty("taskId")
|
||
public void setTaskId(@Nullable UUID taskId) {
|
||
this.taskId = taskId;
|
||
}
|
||
|
||
public CreateAiTask202ResponseAllOfData jobId(@Nullable UUID jobId) {
|
||
this.jobId = jobId;
|
||
return this;
|
||
}
|
||
|
||
/**
|
||
* Get jobId
|
||
* @return jobId
|
||
*/
|
||
@Valid
|
||
@Schema(name = "jobId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||
@JsonProperty("jobId")
|
||
public @Nullable UUID getJobId() {
|
||
return jobId;
|
||
}
|
||
|
||
@JsonProperty("jobId")
|
||
public void setJobId(@Nullable UUID jobId) {
|
||
this.jobId = jobId;
|
||
}
|
||
|
||
public CreateAiTask202ResponseAllOfData pollUrl(@Nullable String pollUrl) {
|
||
this.pollUrl = pollUrl;
|
||
return this;
|
||
}
|
||
|
||
/**
|
||
* 轮询地址
|
||
* @return pollUrl
|
||
*/
|
||
|
||
@Schema(name = "pollUrl", description = "轮询地址", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||
@JsonProperty("pollUrl")
|
||
public @Nullable String getPollUrl() {
|
||
return pollUrl;
|
||
}
|
||
|
||
@JsonProperty("pollUrl")
|
||
public void setPollUrl(@Nullable String pollUrl) {
|
||
this.pollUrl = pollUrl;
|
||
}
|
||
|
||
public CreateAiTask202ResponseAllOfData sourceSnapshotId(@Nullable String sourceSnapshotId) {
|
||
this.sourceSnapshotId = sourceSnapshotId;
|
||
return this;
|
||
}
|
||
|
||
/**
|
||
* 服务端为本次任务创建或记录的来源快照 ID
|
||
* @return sourceSnapshotId
|
||
*/
|
||
|
||
@Schema(name = "sourceSnapshotId", description = "服务端为本次任务创建或记录的来源快照 ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||
@JsonProperty("sourceSnapshotId")
|
||
public @Nullable String getSourceSnapshotId() {
|
||
return sourceSnapshotId;
|
||
}
|
||
|
||
@JsonProperty("sourceSnapshotId")
|
||
public void setSourceSnapshotId(@Nullable String sourceSnapshotId) {
|
||
this.sourceSnapshotId = sourceSnapshotId;
|
||
}
|
||
|
||
public CreateAiTask202ResponseAllOfData runtimePermissionEnvelopeId(@Nullable String runtimePermissionEnvelopeId) {
|
||
this.runtimePermissionEnvelopeId = runtimePermissionEnvelopeId;
|
||
return this;
|
||
}
|
||
|
||
/**
|
||
* 服务端生成的运行权限包 ID;客户端不可自选、跨作品拼装或伪造。
|
||
* @return runtimePermissionEnvelopeId
|
||
*/
|
||
|
||
@Schema(name = "runtimePermissionEnvelopeId", description = "服务端生成的运行权限包 ID;客户端不可自选、跨作品拼装或伪造。", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||
@JsonProperty("runtimePermissionEnvelopeId")
|
||
public @Nullable String getRuntimePermissionEnvelopeId() {
|
||
return runtimePermissionEnvelopeId;
|
||
}
|
||
|
||
@JsonProperty("runtimePermissionEnvelopeId")
|
||
public void setRuntimePermissionEnvelopeId(@Nullable String runtimePermissionEnvelopeId) {
|
||
this.runtimePermissionEnvelopeId = runtimePermissionEnvelopeId;
|
||
}
|
||
|
||
@Override
|
||
public boolean equals(Object o) {
|
||
if (this == o) {
|
||
return true;
|
||
}
|
||
if (o == null || getClass() != o.getClass()) {
|
||
return false;
|
||
}
|
||
CreateAiTask202ResponseAllOfData createAiTask202ResponseAllOfData = (CreateAiTask202ResponseAllOfData) o;
|
||
return Objects.equals(this.taskId, createAiTask202ResponseAllOfData.taskId) &&
|
||
Objects.equals(this.jobId, createAiTask202ResponseAllOfData.jobId) &&
|
||
Objects.equals(this.pollUrl, createAiTask202ResponseAllOfData.pollUrl) &&
|
||
Objects.equals(this.sourceSnapshotId, createAiTask202ResponseAllOfData.sourceSnapshotId) &&
|
||
Objects.equals(this.runtimePermissionEnvelopeId, createAiTask202ResponseAllOfData.runtimePermissionEnvelopeId);
|
||
}
|
||
|
||
@Override
|
||
public int hashCode() {
|
||
return Objects.hash(taskId, jobId, pollUrl, sourceSnapshotId, runtimePermissionEnvelopeId);
|
||
}
|
||
|
||
@Override
|
||
public String toString() {
|
||
StringBuilder sb = new StringBuilder();
|
||
sb.append("class CreateAiTask202ResponseAllOfData {\n");
|
||
sb.append(" taskId: ").append(toIndentedString(taskId)).append("\n");
|
||
sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n");
|
||
sb.append(" pollUrl: ").append(toIndentedString(pollUrl)).append("\n");
|
||
sb.append(" sourceSnapshotId: ").append(toIndentedString(sourceSnapshotId)).append("\n");
|
||
sb.append(" runtimePermissionEnvelopeId: ").append(toIndentedString(runtimePermissionEnvelopeId)).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 ");
|
||
}
|
||
}
|
||
|