199 lines
5.8 KiB
Java
199 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 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;
|
|
|
|
/**
|
|
* AdminStartEvaluationRunRequest
|
|
*/
|
|
|
|
@JsonTypeName("adminStartEvaluationRun_request")
|
|
@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 AdminStartEvaluationRunRequest implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private String policyKey;
|
|
|
|
private @Nullable Integer policyVersion;
|
|
|
|
private String datasetReference;
|
|
|
|
private @Nullable Integer sampleSize;
|
|
|
|
private @Nullable String commandId;
|
|
|
|
public AdminStartEvaluationRunRequest() {
|
|
super();
|
|
}
|
|
|
|
/**
|
|
* Constructor with only required parameters
|
|
*/
|
|
public AdminStartEvaluationRunRequest(String policyKey, String datasetReference) {
|
|
this.policyKey = policyKey;
|
|
this.datasetReference = datasetReference;
|
|
}
|
|
|
|
public AdminStartEvaluationRunRequest policyKey(String policyKey) {
|
|
this.policyKey = policyKey;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 使用的质量策略 key
|
|
* @return policyKey
|
|
*/
|
|
@NotNull
|
|
@Schema(name = "policyKey", description = "使用的质量策略 key", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("policyKey")
|
|
public String getPolicyKey() {
|
|
return policyKey;
|
|
}
|
|
|
|
@JsonProperty("policyKey")
|
|
public void setPolicyKey(String policyKey) {
|
|
this.policyKey = policyKey;
|
|
}
|
|
|
|
public AdminStartEvaluationRunRequest policyVersion(@Nullable Integer policyVersion) {
|
|
this.policyVersion = policyVersion;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 使用的质量策略版本,不填则使用 active 版本
|
|
* @return policyVersion
|
|
*/
|
|
|
|
@Schema(name = "policyVersion", description = "使用的质量策略版本,不填则使用 active 版本", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("policyVersion")
|
|
public @Nullable Integer getPolicyVersion() {
|
|
return policyVersion;
|
|
}
|
|
|
|
@JsonProperty("policyVersion")
|
|
public void setPolicyVersion(@Nullable Integer policyVersion) {
|
|
this.policyVersion = policyVersion;
|
|
}
|
|
|
|
public AdminStartEvaluationRunRequest datasetReference(String datasetReference) {
|
|
this.datasetReference = datasetReference;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 评估数据集引用
|
|
* @return datasetReference
|
|
*/
|
|
@NotNull
|
|
@Schema(name = "datasetReference", description = "评估数据集引用", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("datasetReference")
|
|
public String getDatasetReference() {
|
|
return datasetReference;
|
|
}
|
|
|
|
@JsonProperty("datasetReference")
|
|
public void setDatasetReference(String datasetReference) {
|
|
this.datasetReference = datasetReference;
|
|
}
|
|
|
|
public AdminStartEvaluationRunRequest sampleSize(@Nullable Integer sampleSize) {
|
|
this.sampleSize = sampleSize;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 采样数量
|
|
* @return sampleSize
|
|
*/
|
|
|
|
@Schema(name = "sampleSize", description = "采样数量", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("sampleSize")
|
|
public @Nullable Integer getSampleSize() {
|
|
return sampleSize;
|
|
}
|
|
|
|
@JsonProperty("sampleSize")
|
|
public void setSampleSize(@Nullable Integer sampleSize) {
|
|
this.sampleSize = sampleSize;
|
|
}
|
|
|
|
public AdminStartEvaluationRunRequest commandId(@Nullable String commandId) {
|
|
this.commandId = commandId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 幂等键
|
|
* @return commandId
|
|
*/
|
|
|
|
@Schema(name = "commandId", description = "幂等键", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("commandId")
|
|
public @Nullable String getCommandId() {
|
|
return commandId;
|
|
}
|
|
|
|
@JsonProperty("commandId")
|
|
public void setCommandId(@Nullable String commandId) {
|
|
this.commandId = commandId;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
AdminStartEvaluationRunRequest adminStartEvaluationRunRequest = (AdminStartEvaluationRunRequest) o;
|
|
return Objects.equals(this.policyKey, adminStartEvaluationRunRequest.policyKey) &&
|
|
Objects.equals(this.policyVersion, adminStartEvaluationRunRequest.policyVersion) &&
|
|
Objects.equals(this.datasetReference, adminStartEvaluationRunRequest.datasetReference) &&
|
|
Objects.equals(this.sampleSize, adminStartEvaluationRunRequest.sampleSize) &&
|
|
Objects.equals(this.commandId, adminStartEvaluationRunRequest.commandId);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(policyKey, policyVersion, datasetReference, sampleSize, commandId);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class AdminStartEvaluationRunRequest {\n");
|
|
sb.append(" policyKey: ").append(toIndentedString(policyKey)).append("\n");
|
|
sb.append(" policyVersion: ").append(toIndentedString(policyVersion)).append("\n");
|
|
sb.append(" datasetReference: ").append(toIndentedString(datasetReference)).append("\n");
|
|
sb.append(" sampleSize: ").append(toIndentedString(sampleSize)).append("\n");
|
|
sb.append(" commandId: ").append(toIndentedString(commandId)).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 ");
|
|
}
|
|
}
|
|
|