com.amazonaws.services.rds.model.CustomAvailabilityZone Maven / Gradle / Ivy
Show all versions of aws-java-sdk-rds Show documentation
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.rds.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* A custom Availability Zone (AZ) is an on-premises AZ that is integrated with a VMware vSphere cluster.
*
*
* For more information about RDS on VMware, see the RDS on VMware User
* Guide.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CustomAvailabilityZone implements Serializable, Cloneable {
/**
*
* The identifier of the custom AZ.
*
*
* Amazon RDS generates a unique identifier when a custom AZ is created.
*
*/
private String customAvailabilityZoneId;
/**
*
* The name of the custom AZ.
*
*/
private String customAvailabilityZoneName;
/**
*
* The status of the custom AZ.
*
*/
private String customAvailabilityZoneStatus;
/**
*
* Information about the virtual private network (VPN) between the VMware vSphere cluster and the Amazon Web
* Services website.
*
*/
private VpnDetails vpnDetails;
/**
*
* The identifier of the custom AZ.
*
*
* Amazon RDS generates a unique identifier when a custom AZ is created.
*
*
* @param customAvailabilityZoneId
* The identifier of the custom AZ.
*
* Amazon RDS generates a unique identifier when a custom AZ is created.
*/
public void setCustomAvailabilityZoneId(String customAvailabilityZoneId) {
this.customAvailabilityZoneId = customAvailabilityZoneId;
}
/**
*
* The identifier of the custom AZ.
*
*
* Amazon RDS generates a unique identifier when a custom AZ is created.
*
*
* @return The identifier of the custom AZ.
*
* Amazon RDS generates a unique identifier when a custom AZ is created.
*/
public String getCustomAvailabilityZoneId() {
return this.customAvailabilityZoneId;
}
/**
*
* The identifier of the custom AZ.
*
*
* Amazon RDS generates a unique identifier when a custom AZ is created.
*
*
* @param customAvailabilityZoneId
* The identifier of the custom AZ.
*
* Amazon RDS generates a unique identifier when a custom AZ is created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CustomAvailabilityZone withCustomAvailabilityZoneId(String customAvailabilityZoneId) {
setCustomAvailabilityZoneId(customAvailabilityZoneId);
return this;
}
/**
*
* The name of the custom AZ.
*
*
* @param customAvailabilityZoneName
* The name of the custom AZ.
*/
public void setCustomAvailabilityZoneName(String customAvailabilityZoneName) {
this.customAvailabilityZoneName = customAvailabilityZoneName;
}
/**
*
* The name of the custom AZ.
*
*
* @return The name of the custom AZ.
*/
public String getCustomAvailabilityZoneName() {
return this.customAvailabilityZoneName;
}
/**
*
* The name of the custom AZ.
*
*
* @param customAvailabilityZoneName
* The name of the custom AZ.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CustomAvailabilityZone withCustomAvailabilityZoneName(String customAvailabilityZoneName) {
setCustomAvailabilityZoneName(customAvailabilityZoneName);
return this;
}
/**
*
* The status of the custom AZ.
*
*
* @param customAvailabilityZoneStatus
* The status of the custom AZ.
*/
public void setCustomAvailabilityZoneStatus(String customAvailabilityZoneStatus) {
this.customAvailabilityZoneStatus = customAvailabilityZoneStatus;
}
/**
*
* The status of the custom AZ.
*
*
* @return The status of the custom AZ.
*/
public String getCustomAvailabilityZoneStatus() {
return this.customAvailabilityZoneStatus;
}
/**
*
* The status of the custom AZ.
*
*
* @param customAvailabilityZoneStatus
* The status of the custom AZ.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CustomAvailabilityZone withCustomAvailabilityZoneStatus(String customAvailabilityZoneStatus) {
setCustomAvailabilityZoneStatus(customAvailabilityZoneStatus);
return this;
}
/**
*
* Information about the virtual private network (VPN) between the VMware vSphere cluster and the Amazon Web
* Services website.
*
*
* @param vpnDetails
* Information about the virtual private network (VPN) between the VMware vSphere cluster and the Amazon Web
* Services website.
*/
public void setVpnDetails(VpnDetails vpnDetails) {
this.vpnDetails = vpnDetails;
}
/**
*
* Information about the virtual private network (VPN) between the VMware vSphere cluster and the Amazon Web
* Services website.
*
*
* @return Information about the virtual private network (VPN) between the VMware vSphere cluster and the Amazon Web
* Services website.
*/
public VpnDetails getVpnDetails() {
return this.vpnDetails;
}
/**
*
* Information about the virtual private network (VPN) between the VMware vSphere cluster and the Amazon Web
* Services website.
*
*
* @param vpnDetails
* Information about the virtual private network (VPN) between the VMware vSphere cluster and the Amazon Web
* Services website.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CustomAvailabilityZone withVpnDetails(VpnDetails vpnDetails) {
setVpnDetails(vpnDetails);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getCustomAvailabilityZoneId() != null)
sb.append("CustomAvailabilityZoneId: ").append(getCustomAvailabilityZoneId()).append(",");
if (getCustomAvailabilityZoneName() != null)
sb.append("CustomAvailabilityZoneName: ").append(getCustomAvailabilityZoneName()).append(",");
if (getCustomAvailabilityZoneStatus() != null)
sb.append("CustomAvailabilityZoneStatus: ").append(getCustomAvailabilityZoneStatus()).append(",");
if (getVpnDetails() != null)
sb.append("VpnDetails: ").append(getVpnDetails());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CustomAvailabilityZone == false)
return false;
CustomAvailabilityZone other = (CustomAvailabilityZone) obj;
if (other.getCustomAvailabilityZoneId() == null ^ this.getCustomAvailabilityZoneId() == null)
return false;
if (other.getCustomAvailabilityZoneId() != null && other.getCustomAvailabilityZoneId().equals(this.getCustomAvailabilityZoneId()) == false)
return false;
if (other.getCustomAvailabilityZoneName() == null ^ this.getCustomAvailabilityZoneName() == null)
return false;
if (other.getCustomAvailabilityZoneName() != null && other.getCustomAvailabilityZoneName().equals(this.getCustomAvailabilityZoneName()) == false)
return false;
if (other.getCustomAvailabilityZoneStatus() == null ^ this.getCustomAvailabilityZoneStatus() == null)
return false;
if (other.getCustomAvailabilityZoneStatus() != null && other.getCustomAvailabilityZoneStatus().equals(this.getCustomAvailabilityZoneStatus()) == false)
return false;
if (other.getVpnDetails() == null ^ this.getVpnDetails() == null)
return false;
if (other.getVpnDetails() != null && other.getVpnDetails().equals(this.getVpnDetails()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCustomAvailabilityZoneId() == null) ? 0 : getCustomAvailabilityZoneId().hashCode());
hashCode = prime * hashCode + ((getCustomAvailabilityZoneName() == null) ? 0 : getCustomAvailabilityZoneName().hashCode());
hashCode = prime * hashCode + ((getCustomAvailabilityZoneStatus() == null) ? 0 : getCustomAvailabilityZoneStatus().hashCode());
hashCode = prime * hashCode + ((getVpnDetails() == null) ? 0 : getVpnDetails().hashCode());
return hashCode;
}
@Override
public CustomAvailabilityZone clone() {
try {
return (CustomAvailabilityZone) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}