210 lines
7.0 KiB
Java
210 lines
7.0 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 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;
|
|
|
|
/**
|
|
* MetaSchemaRollbackResponse
|
|
*/
|
|
|
|
@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 MetaSchemaRollbackResponse implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable String schemaKey;
|
|
|
|
private @Nullable Integer rolledBackToVersion;
|
|
|
|
private @Nullable Integer previousActiveVersion;
|
|
|
|
private @Nullable Integer affectedProjectionCount;
|
|
|
|
private @Nullable String projectionRebuildJobId;
|
|
|
|
private @Nullable String projectionInvalidateJobId;
|
|
|
|
public MetaSchemaRollbackResponse schemaKey(@Nullable String schemaKey) {
|
|
this.schemaKey = schemaKey;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get schemaKey
|
|
* @return schemaKey
|
|
*/
|
|
|
|
@Schema(name = "schemaKey", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("schemaKey")
|
|
public @Nullable String getSchemaKey() {
|
|
return schemaKey;
|
|
}
|
|
|
|
@JsonProperty("schemaKey")
|
|
public void setSchemaKey(@Nullable String schemaKey) {
|
|
this.schemaKey = schemaKey;
|
|
}
|
|
|
|
public MetaSchemaRollbackResponse rolledBackToVersion(@Nullable Integer rolledBackToVersion) {
|
|
this.rolledBackToVersion = rolledBackToVersion;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get rolledBackToVersion
|
|
* @return rolledBackToVersion
|
|
*/
|
|
|
|
@Schema(name = "rolledBackToVersion", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("rolledBackToVersion")
|
|
public @Nullable Integer getRolledBackToVersion() {
|
|
return rolledBackToVersion;
|
|
}
|
|
|
|
@JsonProperty("rolledBackToVersion")
|
|
public void setRolledBackToVersion(@Nullable Integer rolledBackToVersion) {
|
|
this.rolledBackToVersion = rolledBackToVersion;
|
|
}
|
|
|
|
public MetaSchemaRollbackResponse previousActiveVersion(@Nullable Integer previousActiveVersion) {
|
|
this.previousActiveVersion = previousActiveVersion;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get previousActiveVersion
|
|
* @return previousActiveVersion
|
|
*/
|
|
|
|
@Schema(name = "previousActiveVersion", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("previousActiveVersion")
|
|
public @Nullable Integer getPreviousActiveVersion() {
|
|
return previousActiveVersion;
|
|
}
|
|
|
|
@JsonProperty("previousActiveVersion")
|
|
public void setPreviousActiveVersion(@Nullable Integer previousActiveVersion) {
|
|
this.previousActiveVersion = previousActiveVersion;
|
|
}
|
|
|
|
public MetaSchemaRollbackResponse affectedProjectionCount(@Nullable Integer affectedProjectionCount) {
|
|
this.affectedProjectionCount = affectedProjectionCount;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get affectedProjectionCount
|
|
* @return affectedProjectionCount
|
|
*/
|
|
|
|
@Schema(name = "affectedProjectionCount", 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 MetaSchemaRollbackResponse projectionRebuildJobId(@Nullable String projectionRebuildJobId) {
|
|
this.projectionRebuildJobId = projectionRebuildJobId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 投影重建任务 ID
|
|
* @return projectionRebuildJobId
|
|
*/
|
|
|
|
@Schema(name = "projectionRebuildJobId", description = "投影重建任务 ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("projectionRebuildJobId")
|
|
public @Nullable String getProjectionRebuildJobId() {
|
|
return projectionRebuildJobId;
|
|
}
|
|
|
|
@JsonProperty("projectionRebuildJobId")
|
|
public void setProjectionRebuildJobId(@Nullable String projectionRebuildJobId) {
|
|
this.projectionRebuildJobId = projectionRebuildJobId;
|
|
}
|
|
|
|
public MetaSchemaRollbackResponse projectionInvalidateJobId(@Nullable String projectionInvalidateJobId) {
|
|
this.projectionInvalidateJobId = projectionInvalidateJobId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 投影失效任务 ID
|
|
* @return projectionInvalidateJobId
|
|
*/
|
|
|
|
@Schema(name = "projectionInvalidateJobId", description = "投影失效任务 ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("projectionInvalidateJobId")
|
|
public @Nullable String getProjectionInvalidateJobId() {
|
|
return projectionInvalidateJobId;
|
|
}
|
|
|
|
@JsonProperty("projectionInvalidateJobId")
|
|
public void setProjectionInvalidateJobId(@Nullable String projectionInvalidateJobId) {
|
|
this.projectionInvalidateJobId = projectionInvalidateJobId;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
MetaSchemaRollbackResponse metaSchemaRollbackResponse = (MetaSchemaRollbackResponse) o;
|
|
return Objects.equals(this.schemaKey, metaSchemaRollbackResponse.schemaKey) &&
|
|
Objects.equals(this.rolledBackToVersion, metaSchemaRollbackResponse.rolledBackToVersion) &&
|
|
Objects.equals(this.previousActiveVersion, metaSchemaRollbackResponse.previousActiveVersion) &&
|
|
Objects.equals(this.affectedProjectionCount, metaSchemaRollbackResponse.affectedProjectionCount) &&
|
|
Objects.equals(this.projectionRebuildJobId, metaSchemaRollbackResponse.projectionRebuildJobId) &&
|
|
Objects.equals(this.projectionInvalidateJobId, metaSchemaRollbackResponse.projectionInvalidateJobId);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(schemaKey, rolledBackToVersion, previousActiveVersion, affectedProjectionCount, projectionRebuildJobId, projectionInvalidateJobId);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class MetaSchemaRollbackResponse {\n");
|
|
sb.append(" schemaKey: ").append(toIndentedString(schemaKey)).append("\n");
|
|
sb.append(" rolledBackToVersion: ").append(toIndentedString(rolledBackToVersion)).append("\n");
|
|
sb.append(" previousActiveVersion: ").append(toIndentedString(previousActiveVersion)).append("\n");
|
|
sb.append(" affectedProjectionCount: ").append(toIndentedString(affectedProjectionCount)).append("\n");
|
|
sb.append(" projectionRebuildJobId: ").append(toIndentedString(projectionRebuildJobId)).append("\n");
|
|
sb.append(" projectionInvalidateJobId: ").append(toIndentedString(projectionInvalidateJobId)).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 ");
|
|
}
|
|
}
|
|
|