Content 50 + AI 39 + Knowledge 59 + Market 32 + Account 33 + Meta 16 = 229 修复 Knowledge YAML 重复 key 重新生成 TypeScript 类型包(7 文件)+ Java DTO 骨架(626 类)
177 lines
4.9 KiB
Java
177 lines
4.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.JsonTypeName;
|
|
import com.fasterxml.jackson.annotation.JsonValue;
|
|
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;
|
|
|
|
/**
|
|
* FunctionChainImpactPreviewSlotChangesInner
|
|
*/
|
|
|
|
@JsonTypeName("FunctionChainImpactPreview_slotChanges_inner")
|
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2026-05-24T15:05:54.603829+08:00[Asia/Shanghai]", comments = "Generator version: 7.22.0")
|
|
public class FunctionChainImpactPreviewSlotChangesInner implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable String slotKey;
|
|
|
|
/**
|
|
* Gets or Sets changeType
|
|
*/
|
|
public enum ChangeTypeEnum {
|
|
ADDED("added"),
|
|
|
|
REMOVED("removed"),
|
|
|
|
PROTECTION_UPGRADED("protection_upgraded"),
|
|
|
|
PROTECTION_DOWNGRADED("protection_downgraded");
|
|
|
|
private final String value;
|
|
|
|
ChangeTypeEnum(String value) {
|
|
this.value = value;
|
|
}
|
|
|
|
@JsonValue
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return String.valueOf(value);
|
|
}
|
|
|
|
@JsonCreator
|
|
public static ChangeTypeEnum fromValue(String value) {
|
|
for (ChangeTypeEnum b : ChangeTypeEnum.values()) {
|
|
if (b.value.equals(value)) {
|
|
return b;
|
|
}
|
|
}
|
|
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
|
}
|
|
}
|
|
|
|
private @Nullable ChangeTypeEnum changeType;
|
|
|
|
private @Nullable String impactDescription;
|
|
|
|
public FunctionChainImpactPreviewSlotChangesInner slotKey(@Nullable String slotKey) {
|
|
this.slotKey = slotKey;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get slotKey
|
|
* @return slotKey
|
|
*/
|
|
|
|
@Schema(name = "slotKey", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("slotKey")
|
|
public @Nullable String getSlotKey() {
|
|
return slotKey;
|
|
}
|
|
|
|
@JsonProperty("slotKey")
|
|
public void setSlotKey(@Nullable String slotKey) {
|
|
this.slotKey = slotKey;
|
|
}
|
|
|
|
public FunctionChainImpactPreviewSlotChangesInner changeType(@Nullable ChangeTypeEnum changeType) {
|
|
this.changeType = changeType;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get changeType
|
|
* @return changeType
|
|
*/
|
|
|
|
@Schema(name = "changeType", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("changeType")
|
|
public @Nullable ChangeTypeEnum getChangeType() {
|
|
return changeType;
|
|
}
|
|
|
|
@JsonProperty("changeType")
|
|
public void setChangeType(@Nullable ChangeTypeEnum changeType) {
|
|
this.changeType = changeType;
|
|
}
|
|
|
|
public FunctionChainImpactPreviewSlotChangesInner impactDescription(@Nullable String impactDescription) {
|
|
this.impactDescription = impactDescription;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get impactDescription
|
|
* @return impactDescription
|
|
*/
|
|
|
|
@Schema(name = "impactDescription", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("impactDescription")
|
|
public @Nullable String getImpactDescription() {
|
|
return impactDescription;
|
|
}
|
|
|
|
@JsonProperty("impactDescription")
|
|
public void setImpactDescription(@Nullable String impactDescription) {
|
|
this.impactDescription = impactDescription;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
FunctionChainImpactPreviewSlotChangesInner functionChainImpactPreviewSlotChangesInner = (FunctionChainImpactPreviewSlotChangesInner) o;
|
|
return Objects.equals(this.slotKey, functionChainImpactPreviewSlotChangesInner.slotKey) &&
|
|
Objects.equals(this.changeType, functionChainImpactPreviewSlotChangesInner.changeType) &&
|
|
Objects.equals(this.impactDescription, functionChainImpactPreviewSlotChangesInner.impactDescription);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(slotKey, changeType, impactDescription);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class FunctionChainImpactPreviewSlotChangesInner {\n");
|
|
sb.append(" slotKey: ").append(toIndentedString(slotKey)).append("\n");
|
|
sb.append(" changeType: ").append(toIndentedString(changeType)).append("\n");
|
|
sb.append(" impactDescription: ").append(toIndentedString(impactDescription)).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 ");
|
|
}
|
|
}
|
|
|