oh-my-muse/docs/api-contracts/generated/java/com/muse/dto/MetaSchemaImpactPreview.java

290 lines
9.5 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.AIContextImpactSummary;
import com.muse.dto.ExportImpactSummary;
import com.muse.dto.KnowledgeProjectionImpactSummary;
import com.muse.dto.PlanningImpactSummary;
import com.muse.dto.WorkImpactSummary;
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;
/**
* MetaSchemaImpactPreview
*/
@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 MetaSchemaImpactPreview implements Serializable {
private static final long serialVersionUID = 1L;
private @Nullable String impactPreviewId;
private @Nullable String schemaKey;
private @Nullable Integer draftVersion;
private @Nullable WorkImpactSummary workImpact;
private @Nullable PlanningImpactSummary planningImpact;
private @Nullable KnowledgeProjectionImpactSummary knowledgeProjectionImpact;
private @Nullable AIContextImpactSummary aiContextImpact;
private @Nullable ExportImpactSummary exportImpact;
private @Nullable Integer totalAffectedProjectionCount;
public MetaSchemaImpactPreview impactPreviewId(@Nullable String impactPreviewId) {
this.impactPreviewId = impactPreviewId;
return this;
}
/**
* 影响预览记录 ID供发布时引用
* @return impactPreviewId
*/
@Schema(name = "impactPreviewId", description = "影响预览记录 ID供发布时引用", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("impactPreviewId")
public @Nullable String getImpactPreviewId() {
return impactPreviewId;
}
@JsonProperty("impactPreviewId")
public void setImpactPreviewId(@Nullable String impactPreviewId) {
this.impactPreviewId = impactPreviewId;
}
public MetaSchemaImpactPreview 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 MetaSchemaImpactPreview draftVersion(@Nullable Integer draftVersion) {
this.draftVersion = draftVersion;
return this;
}
/**
* Get draftVersion
* @return draftVersion
*/
@Schema(name = "draftVersion", 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 MetaSchemaImpactPreview workImpact(@Nullable WorkImpactSummary workImpact) {
this.workImpact = workImpact;
return this;
}
/**
* Get workImpact
* @return workImpact
*/
@Valid
@Schema(name = "workImpact", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("workImpact")
public @Nullable WorkImpactSummary getWorkImpact() {
return workImpact;
}
@JsonProperty("workImpact")
public void setWorkImpact(@Nullable WorkImpactSummary workImpact) {
this.workImpact = workImpact;
}
public MetaSchemaImpactPreview planningImpact(@Nullable PlanningImpactSummary planningImpact) {
this.planningImpact = planningImpact;
return this;
}
/**
* Get planningImpact
* @return planningImpact
*/
@Valid
@Schema(name = "planningImpact", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("planningImpact")
public @Nullable PlanningImpactSummary getPlanningImpact() {
return planningImpact;
}
@JsonProperty("planningImpact")
public void setPlanningImpact(@Nullable PlanningImpactSummary planningImpact) {
this.planningImpact = planningImpact;
}
public MetaSchemaImpactPreview knowledgeProjectionImpact(@Nullable KnowledgeProjectionImpactSummary knowledgeProjectionImpact) {
this.knowledgeProjectionImpact = knowledgeProjectionImpact;
return this;
}
/**
* Get knowledgeProjectionImpact
* @return knowledgeProjectionImpact
*/
@Valid
@Schema(name = "knowledgeProjectionImpact", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("knowledgeProjectionImpact")
public @Nullable KnowledgeProjectionImpactSummary getKnowledgeProjectionImpact() {
return knowledgeProjectionImpact;
}
@JsonProperty("knowledgeProjectionImpact")
public void setKnowledgeProjectionImpact(@Nullable KnowledgeProjectionImpactSummary knowledgeProjectionImpact) {
this.knowledgeProjectionImpact = knowledgeProjectionImpact;
}
public MetaSchemaImpactPreview aiContextImpact(@Nullable AIContextImpactSummary aiContextImpact) {
this.aiContextImpact = aiContextImpact;
return this;
}
/**
* Get aiContextImpact
* @return aiContextImpact
*/
@Valid
@Schema(name = "aiContextImpact", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("aiContextImpact")
public @Nullable AIContextImpactSummary getAiContextImpact() {
return aiContextImpact;
}
@JsonProperty("aiContextImpact")
public void setAiContextImpact(@Nullable AIContextImpactSummary aiContextImpact) {
this.aiContextImpact = aiContextImpact;
}
public MetaSchemaImpactPreview exportImpact(@Nullable ExportImpactSummary exportImpact) {
this.exportImpact = exportImpact;
return this;
}
/**
* Get exportImpact
* @return exportImpact
*/
@Valid
@Schema(name = "exportImpact", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("exportImpact")
public @Nullable ExportImpactSummary getExportImpact() {
return exportImpact;
}
@JsonProperty("exportImpact")
public void setExportImpact(@Nullable ExportImpactSummary exportImpact) {
this.exportImpact = exportImpact;
}
public MetaSchemaImpactPreview totalAffectedProjectionCount(@Nullable Integer totalAffectedProjectionCount) {
this.totalAffectedProjectionCount = totalAffectedProjectionCount;
return this;
}
/**
* 受影响投影总数
* @return totalAffectedProjectionCount
*/
@Schema(name = "totalAffectedProjectionCount", description = "受影响投影总数", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("totalAffectedProjectionCount")
public @Nullable Integer getTotalAffectedProjectionCount() {
return totalAffectedProjectionCount;
}
@JsonProperty("totalAffectedProjectionCount")
public void setTotalAffectedProjectionCount(@Nullable Integer totalAffectedProjectionCount) {
this.totalAffectedProjectionCount = totalAffectedProjectionCount;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MetaSchemaImpactPreview metaSchemaImpactPreview = (MetaSchemaImpactPreview) o;
return Objects.equals(this.impactPreviewId, metaSchemaImpactPreview.impactPreviewId) &&
Objects.equals(this.schemaKey, metaSchemaImpactPreview.schemaKey) &&
Objects.equals(this.draftVersion, metaSchemaImpactPreview.draftVersion) &&
Objects.equals(this.workImpact, metaSchemaImpactPreview.workImpact) &&
Objects.equals(this.planningImpact, metaSchemaImpactPreview.planningImpact) &&
Objects.equals(this.knowledgeProjectionImpact, metaSchemaImpactPreview.knowledgeProjectionImpact) &&
Objects.equals(this.aiContextImpact, metaSchemaImpactPreview.aiContextImpact) &&
Objects.equals(this.exportImpact, metaSchemaImpactPreview.exportImpact) &&
Objects.equals(this.totalAffectedProjectionCount, metaSchemaImpactPreview.totalAffectedProjectionCount);
}
@Override
public int hashCode() {
return Objects.hash(impactPreviewId, schemaKey, draftVersion, workImpact, planningImpact, knowledgeProjectionImpact, aiContextImpact, exportImpact, totalAffectedProjectionCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MetaSchemaImpactPreview {\n");
sb.append(" impactPreviewId: ").append(toIndentedString(impactPreviewId)).append("\n");
sb.append(" schemaKey: ").append(toIndentedString(schemaKey)).append("\n");
sb.append(" draftVersion: ").append(toIndentedString(draftVersion)).append("\n");
sb.append(" workImpact: ").append(toIndentedString(workImpact)).append("\n");
sb.append(" planningImpact: ").append(toIndentedString(planningImpact)).append("\n");
sb.append(" knowledgeProjectionImpact: ").append(toIndentedString(knowledgeProjectionImpact)).append("\n");
sb.append(" aiContextImpact: ").append(toIndentedString(aiContextImpact)).append("\n");
sb.append(" exportImpact: ").append(toIndentedString(exportImpact)).append("\n");
sb.append(" totalAffectedProjectionCount: ").append(toIndentedString(totalAffectedProjectionCount)).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 ");
}
}