232 lines
6.9 KiB
Java
232 lines
6.9 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.JsonValue;
|
|
import com.muse.dto.MetaSchemaPublishResponseNextActionsInner;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
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;
|
|
|
|
/**
|
|
* MetaSchemaPublishResponse
|
|
*/
|
|
|
|
@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 MetaSchemaPublishResponse implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable Integer publishedVersion;
|
|
|
|
/**
|
|
* 发布后状态
|
|
*/
|
|
public enum StatusEnum {
|
|
PUBLISHED("published");
|
|
|
|
private final String value;
|
|
|
|
StatusEnum(String value) {
|
|
this.value = value;
|
|
}
|
|
|
|
@JsonValue
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return String.valueOf(value);
|
|
}
|
|
|
|
@JsonCreator
|
|
public static StatusEnum fromValue(String value) {
|
|
for (StatusEnum b : StatusEnum.values()) {
|
|
if (b.value.equals(value)) {
|
|
return b;
|
|
}
|
|
}
|
|
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
}
|
|
}
|
|
|
|
private @Nullable StatusEnum status;
|
|
|
|
private @Nullable Integer currentActiveVersion;
|
|
|
|
private @Nullable Integer affectedProjectionCount;
|
|
|
|
@Valid
|
|
private List<@Valid MetaSchemaPublishResponseNextActionsInner> nextActions = new ArrayList<>();
|
|
|
|
public MetaSchemaPublishResponse publishedVersion(@Nullable Integer publishedVersion) {
|
|
this.publishedVersion = publishedVersion;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 发布后的版本号
|
|
* @return publishedVersion
|
|
*/
|
|
|
|
@Schema(name = "publishedVersion", description = "发布后的版本号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("publishedVersion")
|
|
public @Nullable Integer getPublishedVersion() {
|
|
return publishedVersion;
|
|
}
|
|
|
|
@JsonProperty("publishedVersion")
|
|
public void setPublishedVersion(@Nullable Integer publishedVersion) {
|
|
this.publishedVersion = publishedVersion;
|
|
}
|
|
|
|
public MetaSchemaPublishResponse status(@Nullable StatusEnum status) {
|
|
this.status = status;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 发布后状态
|
|
* @return status
|
|
*/
|
|
|
|
@Schema(name = "status", description = "发布后状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("status")
|
|
public @Nullable StatusEnum getStatus() {
|
|
return status;
|
|
}
|
|
|
|
@JsonProperty("status")
|
|
public void setStatus(@Nullable StatusEnum status) {
|
|
this.status = status;
|
|
}
|
|
|
|
public MetaSchemaPublishResponse currentActiveVersion(@Nullable Integer currentActiveVersion) {
|
|
this.currentActiveVersion = currentActiveVersion;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get currentActiveVersion
|
|
* @return currentActiveVersion
|
|
*/
|
|
|
|
@Schema(name = "currentActiveVersion", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("currentActiveVersion")
|
|
public @Nullable Integer getCurrentActiveVersion() {
|
|
return currentActiveVersion;
|
|
}
|
|
|
|
@JsonProperty("currentActiveVersion")
|
|
public void setCurrentActiveVersion(@Nullable Integer currentActiveVersion) {
|
|
this.currentActiveVersion = currentActiveVersion;
|
|
}
|
|
|
|
public MetaSchemaPublishResponse affectedProjectionCount(@Nullable Integer affectedProjectionCount) {
|
|
this.affectedProjectionCount = affectedProjectionCount;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 受影响投影数
|
|
* @return affectedProjectionCount
|
|
*/
|
|
|
|
@Schema(name = "affectedProjectionCount", description = "受影响投影数", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("affectedProjectionCount")
|
|
public @Nullable Integer getAffectedProjectionCount() {
|
|
return affectedProjectionCount;
|
|
}
|
|
|
|
@JsonProperty("affectedProjectionCount")
|
|
public void setAffectedProjectionCount(@Nullable Integer affectedProjectionCount) {
|
|
this.affectedProjectionCount = affectedProjectionCount;
|
|
}
|
|
|
|
public MetaSchemaPublishResponse nextActions(List<@Valid MetaSchemaPublishResponseNextActionsInner> nextActions) {
|
|
this.nextActions = nextActions;
|
|
return this;
|
|
}
|
|
|
|
public MetaSchemaPublishResponse addNextActionsItem(MetaSchemaPublishResponseNextActionsInner nextActionsItem) {
|
|
if (this.nextActions == null) {
|
|
this.nextActions = new ArrayList<>();
|
|
}
|
|
this.nextActions.add(nextActionsItem);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get nextActions
|
|
* @return nextActions
|
|
*/
|
|
@Valid
|
|
@Schema(name = "nextActions", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("nextActions")
|
|
public List<@Valid MetaSchemaPublishResponseNextActionsInner> getNextActions() {
|
|
return nextActions;
|
|
}
|
|
|
|
@JsonProperty("nextActions")
|
|
public void setNextActions(List<@Valid MetaSchemaPublishResponseNextActionsInner> nextActions) {
|
|
this.nextActions = nextActions;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
MetaSchemaPublishResponse metaSchemaPublishResponse = (MetaSchemaPublishResponse) o;
|
|
return Objects.equals(this.publishedVersion, metaSchemaPublishResponse.publishedVersion) &&
|
|
Objects.equals(this.status, metaSchemaPublishResponse.status) &&
|
|
Objects.equals(this.currentActiveVersion, metaSchemaPublishResponse.currentActiveVersion) &&
|
|
Objects.equals(this.affectedProjectionCount, metaSchemaPublishResponse.affectedProjectionCount) &&
|
|
Objects.equals(this.nextActions, metaSchemaPublishResponse.nextActions);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(publishedVersion, status, currentActiveVersion, affectedProjectionCount, nextActions);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class MetaSchemaPublishResponse {\n");
|
|
sb.append(" publishedVersion: ").append(toIndentedString(publishedVersion)).append("\n");
|
|
sb.append(" status: ").append(toIndentedString(status)).append("\n");
|
|
sb.append(" currentActiveVersion: ").append(toIndentedString(currentActiveVersion)).append("\n");
|
|
sb.append(" affectedProjectionCount: ").append(toIndentedString(affectedProjectionCount)).append("\n");
|
|
sb.append(" nextActions: ").append(toIndentedString(nextActions)).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 ");
|
|
}
|
|
}
|
|
|