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

175 lines
5.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 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;
/**
* FunctionChainImpactPreviewProtectionNodeImpactDetailsInner
*/
@JsonTypeName("FunctionChainImpactPreview_protectionNodeImpactDetails_inner")
@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 FunctionChainImpactPreviewProtectionNodeImpactDetailsInner implements Serializable {
private static final long serialVersionUID = 1L;
private @Nullable String nodeKey;
/**
* Gets or Sets changeType
*/
public enum ChangeTypeEnum {
ADDED("added"),
REMOVED("removed"),
MODIFIED("modified");
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 FunctionChainImpactPreviewProtectionNodeImpactDetailsInner nodeKey(@Nullable String nodeKey) {
this.nodeKey = nodeKey;
return this;
}
/**
* Get nodeKey
* @return nodeKey
*/
@Schema(name = "nodeKey", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("nodeKey")
public @Nullable String getNodeKey() {
return nodeKey;
}
@JsonProperty("nodeKey")
public void setNodeKey(@Nullable String nodeKey) {
this.nodeKey = nodeKey;
}
public FunctionChainImpactPreviewProtectionNodeImpactDetailsInner 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 FunctionChainImpactPreviewProtectionNodeImpactDetailsInner 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;
}
FunctionChainImpactPreviewProtectionNodeImpactDetailsInner functionChainImpactPreviewProtectionNodeImpactDetailsInner = (FunctionChainImpactPreviewProtectionNodeImpactDetailsInner) o;
return Objects.equals(this.nodeKey, functionChainImpactPreviewProtectionNodeImpactDetailsInner.nodeKey) &&
Objects.equals(this.changeType, functionChainImpactPreviewProtectionNodeImpactDetailsInner.changeType) &&
Objects.equals(this.impactDescription, functionChainImpactPreviewProtectionNodeImpactDetailsInner.impactDescription);
}
@Override
public int hashCode() {
return Objects.hash(nodeKey, changeType, impactDescription);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FunctionChainImpactPreviewProtectionNodeImpactDetailsInner {\n");
sb.append(" nodeKey: ").append(toIndentedString(nodeKey)).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 ");
}
}