179 lines
4.8 KiB
Java
179 lines
4.8 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;
|
|
|
|
/**
|
|
* CompatibilityResultBreakingChangesInner
|
|
*/
|
|
|
|
@JsonTypeName("CompatibilityResult_breakingChanges_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 CompatibilityResultBreakingChangesInner implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable String fieldKey;
|
|
|
|
/**
|
|
* Gets or Sets changeType
|
|
*/
|
|
public enum ChangeTypeEnum {
|
|
TYPE_CHANGED("type_changed"),
|
|
|
|
REQUIRED_ADDED("required_added"),
|
|
|
|
ENUM_REMOVED("enum_removed"),
|
|
|
|
REFERENCE_CHANGED("reference_changed"),
|
|
|
|
VISIBILITY_RESTRICTED("visibility_restricted");
|
|
|
|
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 description;
|
|
|
|
public CompatibilityResultBreakingChangesInner fieldKey(@Nullable String fieldKey) {
|
|
this.fieldKey = fieldKey;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get fieldKey
|
|
* @return fieldKey
|
|
*/
|
|
|
|
@Schema(name = "fieldKey", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("fieldKey")
|
|
public @Nullable String getFieldKey() {
|
|
return fieldKey;
|
|
}
|
|
|
|
@JsonProperty("fieldKey")
|
|
public void setFieldKey(@Nullable String fieldKey) {
|
|
this.fieldKey = fieldKey;
|
|
}
|
|
|
|
public CompatibilityResultBreakingChangesInner 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 CompatibilityResultBreakingChangesInner description(@Nullable String description) {
|
|
this.description = description;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get description
|
|
* @return description
|
|
*/
|
|
|
|
@Schema(name = "description", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("description")
|
|
public @Nullable String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
@JsonProperty("description")
|
|
public void setDescription(@Nullable String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
CompatibilityResultBreakingChangesInner compatibilityResultBreakingChangesInner = (CompatibilityResultBreakingChangesInner) o;
|
|
return Objects.equals(this.fieldKey, compatibilityResultBreakingChangesInner.fieldKey) &&
|
|
Objects.equals(this.changeType, compatibilityResultBreakingChangesInner.changeType) &&
|
|
Objects.equals(this.description, compatibilityResultBreakingChangesInner.description);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(fieldKey, changeType, description);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class CompatibilityResultBreakingChangesInner {\n");
|
|
sb.append(" fieldKey: ").append(toIndentedString(fieldKey)).append("\n");
|
|
sb.append(" changeType: ").append(toIndentedString(changeType)).append("\n");
|
|
sb.append(" description: ").append(toIndentedString(description)).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 ");
|
|
}
|
|
}
|
|
|