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

136 lines
4.5 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;
/**
* 影响摘要(列表级别轻量信息)
*/
@Schema(name = "MetaSchemaImpactSummary", description = "影响摘要(列表级别轻量信息)")
@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 MetaSchemaImpactSummary implements Serializable {
private static final long serialVersionUID = 1L;
private @Nullable Integer affectedWorkCount;
private @Nullable Integer affectedProjectionCount;
private @Nullable Integer affectedAIContextCount;
public MetaSchemaImpactSummary affectedWorkCount(@Nullable Integer affectedWorkCount) {
this.affectedWorkCount = affectedWorkCount;
return this;
}
/**
* 受影响作品数
* @return affectedWorkCount
*/
@Schema(name = "affectedWorkCount", description = "受影响作品数", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("affectedWorkCount")
public @Nullable Integer getAffectedWorkCount() {
return affectedWorkCount;
}
@JsonProperty("affectedWorkCount")
public void setAffectedWorkCount(@Nullable Integer affectedWorkCount) {
this.affectedWorkCount = affectedWorkCount;
}
public MetaSchemaImpactSummary 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 MetaSchemaImpactSummary affectedAIContextCount(@Nullable Integer affectedAIContextCount) {
this.affectedAIContextCount = affectedAIContextCount;
return this;
}
/**
* 受影响 AI 上下文引用数
* @return affectedAIContextCount
*/
@Schema(name = "affectedAIContextCount", description = "受影响 AI 上下文引用数", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("affectedAIContextCount")
public @Nullable Integer getAffectedAIContextCount() {
return affectedAIContextCount;
}
@JsonProperty("affectedAIContextCount")
public void setAffectedAIContextCount(@Nullable Integer affectedAIContextCount) {
this.affectedAIContextCount = affectedAIContextCount;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MetaSchemaImpactSummary metaSchemaImpactSummary = (MetaSchemaImpactSummary) o;
return Objects.equals(this.affectedWorkCount, metaSchemaImpactSummary.affectedWorkCount) &&
Objects.equals(this.affectedProjectionCount, metaSchemaImpactSummary.affectedProjectionCount) &&
Objects.equals(this.affectedAIContextCount, metaSchemaImpactSummary.affectedAIContextCount);
}
@Override
public int hashCode() {
return Objects.hash(affectedWorkCount, affectedProjectionCount, affectedAIContextCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MetaSchemaImpactSummary {\n");
sb.append(" affectedWorkCount: ").append(toIndentedString(affectedWorkCount)).append("\n");
sb.append(" affectedProjectionCount: ").append(toIndentedString(affectedProjectionCount)).append("\n");
sb.append(" affectedAIContextCount: ").append(toIndentedString(affectedAIContextCount)).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 ");
}
}