All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.rds.model.CreateCustomAvailabilityZoneRequest Maven / Gradle / Ivy

/*
 * Copyright 2017-2022 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;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateCustomAvailabilityZoneRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the custom Availability Zone (AZ). *

*/ private String customAvailabilityZoneName; /** *

* The ID of an existing virtual private network (VPN) between the Amazon RDS website and the VMware vSphere * cluster. *

*/ private String existingVpnId; /** *

* The name of a new VPN tunnel between the Amazon RDS website and the VMware vSphere cluster. *

*

* Specify this parameter only if ExistingVpnId isn't specified. *

*/ private String newVpnTunnelName; /** *

* The IP address of network traffic from your on-premises data center. A custom AZ receives the network traffic. *

*

* Specify this parameter only if ExistingVpnId isn't specified. *

*/ private String vpnTunnelOriginatorIP; /** *

* The name of the custom Availability Zone (AZ). *

* * @param customAvailabilityZoneName * The name of the custom Availability Zone (AZ). */ public void setCustomAvailabilityZoneName(String customAvailabilityZoneName) { this.customAvailabilityZoneName = customAvailabilityZoneName; } /** *

* The name of the custom Availability Zone (AZ). *

* * @return The name of the custom Availability Zone (AZ). */ public String getCustomAvailabilityZoneName() { return this.customAvailabilityZoneName; } /** *

* The name of the custom Availability Zone (AZ). *

* * @param customAvailabilityZoneName * The name of the custom Availability Zone (AZ). * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCustomAvailabilityZoneRequest withCustomAvailabilityZoneName(String customAvailabilityZoneName) { setCustomAvailabilityZoneName(customAvailabilityZoneName); return this; } /** *

* The ID of an existing virtual private network (VPN) between the Amazon RDS website and the VMware vSphere * cluster. *

* * @param existingVpnId * The ID of an existing virtual private network (VPN) between the Amazon RDS website and the VMware vSphere * cluster. */ public void setExistingVpnId(String existingVpnId) { this.existingVpnId = existingVpnId; } /** *

* The ID of an existing virtual private network (VPN) between the Amazon RDS website and the VMware vSphere * cluster. *

* * @return The ID of an existing virtual private network (VPN) between the Amazon RDS website and the VMware vSphere * cluster. */ public String getExistingVpnId() { return this.existingVpnId; } /** *

* The ID of an existing virtual private network (VPN) between the Amazon RDS website and the VMware vSphere * cluster. *

* * @param existingVpnId * The ID of an existing virtual private network (VPN) between the Amazon RDS website and the VMware vSphere * cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCustomAvailabilityZoneRequest withExistingVpnId(String existingVpnId) { setExistingVpnId(existingVpnId); return this; } /** *

* The name of a new VPN tunnel between the Amazon RDS website and the VMware vSphere cluster. *

*

* Specify this parameter only if ExistingVpnId isn't specified. *

* * @param newVpnTunnelName * The name of a new VPN tunnel between the Amazon RDS website and the VMware vSphere cluster.

*

* Specify this parameter only if ExistingVpnId isn't specified. */ public void setNewVpnTunnelName(String newVpnTunnelName) { this.newVpnTunnelName = newVpnTunnelName; } /** *

* The name of a new VPN tunnel between the Amazon RDS website and the VMware vSphere cluster. *

*

* Specify this parameter only if ExistingVpnId isn't specified. *

* * @return The name of a new VPN tunnel between the Amazon RDS website and the VMware vSphere cluster.

*

* Specify this parameter only if ExistingVpnId isn't specified. */ public String getNewVpnTunnelName() { return this.newVpnTunnelName; } /** *

* The name of a new VPN tunnel between the Amazon RDS website and the VMware vSphere cluster. *

*

* Specify this parameter only if ExistingVpnId isn't specified. *

* * @param newVpnTunnelName * The name of a new VPN tunnel between the Amazon RDS website and the VMware vSphere cluster.

*

* Specify this parameter only if ExistingVpnId isn't specified. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCustomAvailabilityZoneRequest withNewVpnTunnelName(String newVpnTunnelName) { setNewVpnTunnelName(newVpnTunnelName); return this; } /** *

* The IP address of network traffic from your on-premises data center. A custom AZ receives the network traffic. *

*

* Specify this parameter only if ExistingVpnId isn't specified. *

* * @param vpnTunnelOriginatorIP * The IP address of network traffic from your on-premises data center. A custom AZ receives the network * traffic.

*

* Specify this parameter only if ExistingVpnId isn't specified. */ public void setVpnTunnelOriginatorIP(String vpnTunnelOriginatorIP) { this.vpnTunnelOriginatorIP = vpnTunnelOriginatorIP; } /** *

* The IP address of network traffic from your on-premises data center. A custom AZ receives the network traffic. *

*

* Specify this parameter only if ExistingVpnId isn't specified. *

* * @return The IP address of network traffic from your on-premises data center. A custom AZ receives the network * traffic.

*

* Specify this parameter only if ExistingVpnId isn't specified. */ public String getVpnTunnelOriginatorIP() { return this.vpnTunnelOriginatorIP; } /** *

* The IP address of network traffic from your on-premises data center. A custom AZ receives the network traffic. *

*

* Specify this parameter only if ExistingVpnId isn't specified. *

* * @param vpnTunnelOriginatorIP * The IP address of network traffic from your on-premises data center. A custom AZ receives the network * traffic.

*

* Specify this parameter only if ExistingVpnId isn't specified. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCustomAvailabilityZoneRequest withVpnTunnelOriginatorIP(String vpnTunnelOriginatorIP) { setVpnTunnelOriginatorIP(vpnTunnelOriginatorIP); 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 (getCustomAvailabilityZoneName() != null) sb.append("CustomAvailabilityZoneName: ").append(getCustomAvailabilityZoneName()).append(","); if (getExistingVpnId() != null) sb.append("ExistingVpnId: ").append(getExistingVpnId()).append(","); if (getNewVpnTunnelName() != null) sb.append("NewVpnTunnelName: ").append(getNewVpnTunnelName()).append(","); if (getVpnTunnelOriginatorIP() != null) sb.append("VpnTunnelOriginatorIP: ").append(getVpnTunnelOriginatorIP()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateCustomAvailabilityZoneRequest == false) return false; CreateCustomAvailabilityZoneRequest other = (CreateCustomAvailabilityZoneRequest) obj; if (other.getCustomAvailabilityZoneName() == null ^ this.getCustomAvailabilityZoneName() == null) return false; if (other.getCustomAvailabilityZoneName() != null && other.getCustomAvailabilityZoneName().equals(this.getCustomAvailabilityZoneName()) == false) return false; if (other.getExistingVpnId() == null ^ this.getExistingVpnId() == null) return false; if (other.getExistingVpnId() != null && other.getExistingVpnId().equals(this.getExistingVpnId()) == false) return false; if (other.getNewVpnTunnelName() == null ^ this.getNewVpnTunnelName() == null) return false; if (other.getNewVpnTunnelName() != null && other.getNewVpnTunnelName().equals(this.getNewVpnTunnelName()) == false) return false; if (other.getVpnTunnelOriginatorIP() == null ^ this.getVpnTunnelOriginatorIP() == null) return false; if (other.getVpnTunnelOriginatorIP() != null && other.getVpnTunnelOriginatorIP().equals(this.getVpnTunnelOriginatorIP()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCustomAvailabilityZoneName() == null) ? 0 : getCustomAvailabilityZoneName().hashCode()); hashCode = prime * hashCode + ((getExistingVpnId() == null) ? 0 : getExistingVpnId().hashCode()); hashCode = prime * hashCode + ((getNewVpnTunnelName() == null) ? 0 : getNewVpnTunnelName().hashCode()); hashCode = prime * hashCode + ((getVpnTunnelOriginatorIP() == null) ? 0 : getVpnTunnelOriginatorIP().hashCode()); return hashCode; } @Override public CreateCustomAvailabilityZoneRequest clone() { return (CreateCustomAvailabilityZoneRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy