com.volcengine.escloud.model.NetworkSpecForDescribeNodeAvailableSpecsOutput Maven / Gradle / Ivy
/*
* escloud
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: common-version
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.volcengine.escloud.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
* NetworkSpecForDescribeNodeAvailableSpecsOutput
*/
public class NetworkSpecForDescribeNodeAvailableSpecsOutput {
/**
* Gets or Sets networkRole
*/
@JsonAdapter(NetworkRoleEnum.Adapter.class)
public enum NetworkRoleEnum {
@SerializedName("Elasticsearch")
ELASTICSEARCH("Elasticsearch"),
@SerializedName("Kibana")
KIBANA("Kibana"),
@SerializedName("ML")
ML("ML");
private String value;
NetworkRoleEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static NetworkRoleEnum fromValue(String input) {
for (NetworkRoleEnum b : NetworkRoleEnum.values()) {
if (b.value.equals(input)) {
return b;
}
}
return null;
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final NetworkRoleEnum enumeration) throws IOException {
jsonWriter.value(String.valueOf(enumeration.getValue()));
}
@Override
public NetworkRoleEnum read(final JsonReader jsonReader) throws IOException {
Object value = jsonReader.nextString();
return NetworkRoleEnum.fromValue((String)(value));
}
}
} @SerializedName("NetworkRole")
private NetworkRoleEnum networkRole = null;
/**
* Gets or Sets specName
*/
@JsonAdapter(SpecNameEnum.Adapter.class)
public enum SpecNameEnum {
@SerializedName("es.eip.bgp_fixed_bandwidth")
ES_EIP_BGP_FIXED_BANDWIDTH("es.eip.bgp_fixed_bandwidth");
private String value;
SpecNameEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static SpecNameEnum fromValue(String input) {
for (SpecNameEnum b : SpecNameEnum.values()) {
if (b.value.equals(input)) {
return b;
}
}
return null;
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final SpecNameEnum enumeration) throws IOException {
jsonWriter.value(String.valueOf(enumeration.getValue()));
}
@Override
public SpecNameEnum read(final JsonReader jsonReader) throws IOException {
Object value = jsonReader.nextString();
return SpecNameEnum.fromValue((String)(value));
}
}
} @SerializedName("SpecName")
private SpecNameEnum specName = null;
public NetworkSpecForDescribeNodeAvailableSpecsOutput networkRole(NetworkRoleEnum networkRole) {
this.networkRole = networkRole;
return this;
}
/**
* Get networkRole
* @return networkRole
**/
@Schema(description = "")
public NetworkRoleEnum getNetworkRole() {
return networkRole;
}
public void setNetworkRole(NetworkRoleEnum networkRole) {
this.networkRole = networkRole;
}
public NetworkSpecForDescribeNodeAvailableSpecsOutput specName(SpecNameEnum specName) {
this.specName = specName;
return this;
}
/**
* Get specName
* @return specName
**/
@Schema(description = "")
public SpecNameEnum getSpecName() {
return specName;
}
public void setSpecName(SpecNameEnum specName) {
this.specName = specName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NetworkSpecForDescribeNodeAvailableSpecsOutput networkSpecForDescribeNodeAvailableSpecsOutput = (NetworkSpecForDescribeNodeAvailableSpecsOutput) o;
return Objects.equals(this.networkRole, networkSpecForDescribeNodeAvailableSpecsOutput.networkRole) &&
Objects.equals(this.specName, networkSpecForDescribeNodeAvailableSpecsOutput.specName);
}
@Override
public int hashCode() {
return Objects.hash(networkRole, specName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NetworkSpecForDescribeNodeAvailableSpecsOutput {\n");
sb.append(" networkRole: ").append(toIndentedString(networkRole)).append("\n");
sb.append(" specName: ").append(toIndentedString(specName)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy