136 lines
4.2 KiB
Java
136 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.muse.dto.ValidationResult;
|
|
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;
|
|
|
|
/**
|
|
* MetaSchemaDraftResponse
|
|
*/
|
|
|
|
@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 MetaSchemaDraftResponse implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable Integer draftVersion;
|
|
|
|
private @Nullable ValidationResult validationSummary;
|
|
|
|
private @Nullable Integer currentActiveVersion;
|
|
|
|
public MetaSchemaDraftResponse draftVersion(@Nullable Integer draftVersion) {
|
|
this.draftVersion = draftVersion;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 分配的草稿版本号
|
|
* @return draftVersion
|
|
*/
|
|
|
|
@Schema(name = "draftVersion", description = "分配的草稿版本号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("draftVersion")
|
|
public @Nullable Integer getDraftVersion() {
|
|
return draftVersion;
|
|
}
|
|
|
|
@JsonProperty("draftVersion")
|
|
public void setDraftVersion(@Nullable Integer draftVersion) {
|
|
this.draftVersion = draftVersion;
|
|
}
|
|
|
|
public MetaSchemaDraftResponse validationSummary(@Nullable ValidationResult validationSummary) {
|
|
this.validationSummary = validationSummary;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get validationSummary
|
|
* @return validationSummary
|
|
*/
|
|
@Valid
|
|
@Schema(name = "validationSummary", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("validationSummary")
|
|
public @Nullable ValidationResult getValidationSummary() {
|
|
return validationSummary;
|
|
}
|
|
|
|
@JsonProperty("validationSummary")
|
|
public void setValidationSummary(@Nullable ValidationResult validationSummary) {
|
|
this.validationSummary = validationSummary;
|
|
}
|
|
|
|
public MetaSchemaDraftResponse currentActiveVersion(@Nullable Integer currentActiveVersion) {
|
|
this.currentActiveVersion = currentActiveVersion;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 当前激活版本号
|
|
* @return currentActiveVersion
|
|
*/
|
|
|
|
@Schema(name = "currentActiveVersion", description = "当前激活版本号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("currentActiveVersion")
|
|
public @Nullable Integer getCurrentActiveVersion() {
|
|
return currentActiveVersion;
|
|
}
|
|
|
|
@JsonProperty("currentActiveVersion")
|
|
public void setCurrentActiveVersion(@Nullable Integer currentActiveVersion) {
|
|
this.currentActiveVersion = currentActiveVersion;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
MetaSchemaDraftResponse metaSchemaDraftResponse = (MetaSchemaDraftResponse) o;
|
|
return Objects.equals(this.draftVersion, metaSchemaDraftResponse.draftVersion) &&
|
|
Objects.equals(this.validationSummary, metaSchemaDraftResponse.validationSummary) &&
|
|
Objects.equals(this.currentActiveVersion, metaSchemaDraftResponse.currentActiveVersion);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(draftVersion, validationSummary, currentActiveVersion);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class MetaSchemaDraftResponse {\n");
|
|
sb.append(" draftVersion: ").append(toIndentedString(draftVersion)).append("\n");
|
|
sb.append(" validationSummary: ").append(toIndentedString(validationSummary)).append("\n");
|
|
sb.append(" currentActiveVersion: ").append(toIndentedString(currentActiveVersion)).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 ");
|
|
}
|
|
}
|
|
|