com.volcengine.vedbm.model.AddressForDescribeDBEndpointOutput Maven / Gradle / Ivy
/*
* vedbm
* 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.vedbm.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;
/**
* AddressForDescribeDBEndpointOutput
*/
public class AddressForDescribeDBEndpointOutput {
@SerializedName("DNSVisibility")
private Boolean dnSVisibility = null;
@SerializedName("Domain")
private String domain = null;
@SerializedName("EipId")
private String eipId = null;
@SerializedName("IPAddress")
private String ipAddress = null;
/**
* Gets or Sets networkType
*/
@JsonAdapter(NetworkTypeEnum.Adapter.class)
public enum NetworkTypeEnum {
@SerializedName("Private")
PRIVATE("Private"),
@SerializedName("Public")
PUBLIC("Public");
private String value;
NetworkTypeEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static NetworkTypeEnum fromValue(String input) {
for (NetworkTypeEnum b : NetworkTypeEnum.values()) {
if (b.value.equals(input)) {
return b;
}
}
return null;
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final NetworkTypeEnum enumeration) throws IOException {
jsonWriter.value(String.valueOf(enumeration.getValue()));
}
@Override
public NetworkTypeEnum read(final JsonReader jsonReader) throws IOException {
Object value = jsonReader.nextString();
return NetworkTypeEnum.fromValue((String)(value));
}
}
} @SerializedName("NetworkType")
private NetworkTypeEnum networkType = null;
@SerializedName("Port")
private String port = null;
@SerializedName("SubnetId")
private String subnetId = null;
public AddressForDescribeDBEndpointOutput dnSVisibility(Boolean dnSVisibility) {
this.dnSVisibility = dnSVisibility;
return this;
}
/**
* Get dnSVisibility
* @return dnSVisibility
**/
@Schema(description = "")
public Boolean isDnSVisibility() {
return dnSVisibility;
}
public void setDnSVisibility(Boolean dnSVisibility) {
this.dnSVisibility = dnSVisibility;
}
public AddressForDescribeDBEndpointOutput domain(String domain) {
this.domain = domain;
return this;
}
/**
* Get domain
* @return domain
**/
@Schema(description = "")
public String getDomain() {
return domain;
}
public void setDomain(String domain) {
this.domain = domain;
}
public AddressForDescribeDBEndpointOutput eipId(String eipId) {
this.eipId = eipId;
return this;
}
/**
* Get eipId
* @return eipId
**/
@Schema(description = "")
public String getEipId() {
return eipId;
}
public void setEipId(String eipId) {
this.eipId = eipId;
}
public AddressForDescribeDBEndpointOutput ipAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
/**
* Get ipAddress
* @return ipAddress
**/
@Schema(description = "")
public String getIpAddress() {
return ipAddress;
}
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
public AddressForDescribeDBEndpointOutput networkType(NetworkTypeEnum networkType) {
this.networkType = networkType;
return this;
}
/**
* Get networkType
* @return networkType
**/
@Schema(description = "")
public NetworkTypeEnum getNetworkType() {
return networkType;
}
public void setNetworkType(NetworkTypeEnum networkType) {
this.networkType = networkType;
}
public AddressForDescribeDBEndpointOutput port(String port) {
this.port = port;
return this;
}
/**
* Get port
* @return port
**/
@Schema(description = "")
public String getPort() {
return port;
}
public void setPort(String port) {
this.port = port;
}
public AddressForDescribeDBEndpointOutput subnetId(String subnetId) {
this.subnetId = subnetId;
return this;
}
/**
* Get subnetId
* @return subnetId
**/
@Schema(description = "")
public String getSubnetId() {
return subnetId;
}
public void setSubnetId(String subnetId) {
this.subnetId = subnetId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AddressForDescribeDBEndpointOutput addressForDescribeDBEndpointOutput = (AddressForDescribeDBEndpointOutput) o;
return Objects.equals(this.dnSVisibility, addressForDescribeDBEndpointOutput.dnSVisibility) &&
Objects.equals(this.domain, addressForDescribeDBEndpointOutput.domain) &&
Objects.equals(this.eipId, addressForDescribeDBEndpointOutput.eipId) &&
Objects.equals(this.ipAddress, addressForDescribeDBEndpointOutput.ipAddress) &&
Objects.equals(this.networkType, addressForDescribeDBEndpointOutput.networkType) &&
Objects.equals(this.port, addressForDescribeDBEndpointOutput.port) &&
Objects.equals(this.subnetId, addressForDescribeDBEndpointOutput.subnetId);
}
@Override
public int hashCode() {
return Objects.hash(dnSVisibility, domain, eipId, ipAddress, networkType, port, subnetId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AddressForDescribeDBEndpointOutput {\n");
sb.append(" dnSVisibility: ").append(toIndentedString(dnSVisibility)).append("\n");
sb.append(" domain: ").append(toIndentedString(domain)).append("\n");
sb.append(" eipId: ").append(toIndentedString(eipId)).append("\n");
sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n");
sb.append(" networkType: ").append(toIndentedString(networkType)).append("\n");
sb.append(" port: ").append(toIndentedString(port)).append("\n");
sb.append(" subnetId: ").append(toIndentedString(subnetId)).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 ");
}
}