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

com.amazonaws.services.ec2.model.TransitGatewayRequestOptions Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon EC2 module holds the client classes that are used for communicating with Amazon EC2 Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2014-2019 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.ec2.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 

* Describes the options for a transit gateway. *

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

* A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for * 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs. *

*/ private Long amazonSideAsn; /** *

* Enable or disable automatic acceptance of attachment requests. The default is disable. *

*/ private String autoAcceptSharedAttachments; /** *

* Enable or disable automatic association with the default association route table. The default is * enable. *

*/ private String defaultRouteTableAssociation; /** *

* Enable or disable automatic propagation of routes to the default propagation route table. The default is * enable. *

*/ private String defaultRouteTablePropagation; /** *

* Enable or disable Equal Cost Multipath Protocol support. *

*/ private String vpnEcmpSupport; /** *

* Enable or disable DNS support. *

*/ private String dnsSupport; /** *

* A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for * 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs. *

* * @param amazonSideAsn * A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 * for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs. */ public void setAmazonSideAsn(Long amazonSideAsn) { this.amazonSideAsn = amazonSideAsn; } /** *

* A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for * 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs. *

* * @return A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to * 65534 for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs. */ public Long getAmazonSideAsn() { return this.amazonSideAsn; } /** *

* A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for * 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs. *

* * @param amazonSideAsn * A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 * for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayRequestOptions withAmazonSideAsn(Long amazonSideAsn) { setAmazonSideAsn(amazonSideAsn); return this; } /** *

* Enable or disable automatic acceptance of attachment requests. The default is disable. *

* * @param autoAcceptSharedAttachments * Enable or disable automatic acceptance of attachment requests. The default is disable. * @see AutoAcceptSharedAttachmentsValue */ public void setAutoAcceptSharedAttachments(String autoAcceptSharedAttachments) { this.autoAcceptSharedAttachments = autoAcceptSharedAttachments; } /** *

* Enable or disable automatic acceptance of attachment requests. The default is disable. *

* * @return Enable or disable automatic acceptance of attachment requests. The default is disable. * @see AutoAcceptSharedAttachmentsValue */ public String getAutoAcceptSharedAttachments() { return this.autoAcceptSharedAttachments; } /** *

* Enable or disable automatic acceptance of attachment requests. The default is disable. *

* * @param autoAcceptSharedAttachments * Enable or disable automatic acceptance of attachment requests. The default is disable. * @return Returns a reference to this object so that method calls can be chained together. * @see AutoAcceptSharedAttachmentsValue */ public TransitGatewayRequestOptions withAutoAcceptSharedAttachments(String autoAcceptSharedAttachments) { setAutoAcceptSharedAttachments(autoAcceptSharedAttachments); return this; } /** *

* Enable or disable automatic acceptance of attachment requests. The default is disable. *

* * @param autoAcceptSharedAttachments * Enable or disable automatic acceptance of attachment requests. The default is disable. * @return Returns a reference to this object so that method calls can be chained together. * @see AutoAcceptSharedAttachmentsValue */ public TransitGatewayRequestOptions withAutoAcceptSharedAttachments(AutoAcceptSharedAttachmentsValue autoAcceptSharedAttachments) { this.autoAcceptSharedAttachments = autoAcceptSharedAttachments.toString(); return this; } /** *

* Enable or disable automatic association with the default association route table. The default is * enable. *

* * @param defaultRouteTableAssociation * Enable or disable automatic association with the default association route table. The default is * enable. * @see DefaultRouteTableAssociationValue */ public void setDefaultRouteTableAssociation(String defaultRouteTableAssociation) { this.defaultRouteTableAssociation = defaultRouteTableAssociation; } /** *

* Enable or disable automatic association with the default association route table. The default is * enable. *

* * @return Enable or disable automatic association with the default association route table. The default is * enable. * @see DefaultRouteTableAssociationValue */ public String getDefaultRouteTableAssociation() { return this.defaultRouteTableAssociation; } /** *

* Enable or disable automatic association with the default association route table. The default is * enable. *

* * @param defaultRouteTableAssociation * Enable or disable automatic association with the default association route table. The default is * enable. * @return Returns a reference to this object so that method calls can be chained together. * @see DefaultRouteTableAssociationValue */ public TransitGatewayRequestOptions withDefaultRouteTableAssociation(String defaultRouteTableAssociation) { setDefaultRouteTableAssociation(defaultRouteTableAssociation); return this; } /** *

* Enable or disable automatic association with the default association route table. The default is * enable. *

* * @param defaultRouteTableAssociation * Enable or disable automatic association with the default association route table. The default is * enable. * @return Returns a reference to this object so that method calls can be chained together. * @see DefaultRouteTableAssociationValue */ public TransitGatewayRequestOptions withDefaultRouteTableAssociation(DefaultRouteTableAssociationValue defaultRouteTableAssociation) { this.defaultRouteTableAssociation = defaultRouteTableAssociation.toString(); return this; } /** *

* Enable or disable automatic propagation of routes to the default propagation route table. The default is * enable. *

* * @param defaultRouteTablePropagation * Enable or disable automatic propagation of routes to the default propagation route table. The default is * enable. * @see DefaultRouteTablePropagationValue */ public void setDefaultRouteTablePropagation(String defaultRouteTablePropagation) { this.defaultRouteTablePropagation = defaultRouteTablePropagation; } /** *

* Enable or disable automatic propagation of routes to the default propagation route table. The default is * enable. *

* * @return Enable or disable automatic propagation of routes to the default propagation route table. The default is * enable. * @see DefaultRouteTablePropagationValue */ public String getDefaultRouteTablePropagation() { return this.defaultRouteTablePropagation; } /** *

* Enable or disable automatic propagation of routes to the default propagation route table. The default is * enable. *

* * @param defaultRouteTablePropagation * Enable or disable automatic propagation of routes to the default propagation route table. The default is * enable. * @return Returns a reference to this object so that method calls can be chained together. * @see DefaultRouteTablePropagationValue */ public TransitGatewayRequestOptions withDefaultRouteTablePropagation(String defaultRouteTablePropagation) { setDefaultRouteTablePropagation(defaultRouteTablePropagation); return this; } /** *

* Enable or disable automatic propagation of routes to the default propagation route table. The default is * enable. *

* * @param defaultRouteTablePropagation * Enable or disable automatic propagation of routes to the default propagation route table. The default is * enable. * @return Returns a reference to this object so that method calls can be chained together. * @see DefaultRouteTablePropagationValue */ public TransitGatewayRequestOptions withDefaultRouteTablePropagation(DefaultRouteTablePropagationValue defaultRouteTablePropagation) { this.defaultRouteTablePropagation = defaultRouteTablePropagation.toString(); return this; } /** *

* Enable or disable Equal Cost Multipath Protocol support. *

* * @param vpnEcmpSupport * Enable or disable Equal Cost Multipath Protocol support. * @see VpnEcmpSupportValue */ public void setVpnEcmpSupport(String vpnEcmpSupport) { this.vpnEcmpSupport = vpnEcmpSupport; } /** *

* Enable or disable Equal Cost Multipath Protocol support. *

* * @return Enable or disable Equal Cost Multipath Protocol support. * @see VpnEcmpSupportValue */ public String getVpnEcmpSupport() { return this.vpnEcmpSupport; } /** *

* Enable or disable Equal Cost Multipath Protocol support. *

* * @param vpnEcmpSupport * Enable or disable Equal Cost Multipath Protocol support. * @return Returns a reference to this object so that method calls can be chained together. * @see VpnEcmpSupportValue */ public TransitGatewayRequestOptions withVpnEcmpSupport(String vpnEcmpSupport) { setVpnEcmpSupport(vpnEcmpSupport); return this; } /** *

* Enable or disable Equal Cost Multipath Protocol support. *

* * @param vpnEcmpSupport * Enable or disable Equal Cost Multipath Protocol support. * @return Returns a reference to this object so that method calls can be chained together. * @see VpnEcmpSupportValue */ public TransitGatewayRequestOptions withVpnEcmpSupport(VpnEcmpSupportValue vpnEcmpSupport) { this.vpnEcmpSupport = vpnEcmpSupport.toString(); return this; } /** *

* Enable or disable DNS support. *

* * @param dnsSupport * Enable or disable DNS support. * @see DnsSupportValue */ public void setDnsSupport(String dnsSupport) { this.dnsSupport = dnsSupport; } /** *

* Enable or disable DNS support. *

* * @return Enable or disable DNS support. * @see DnsSupportValue */ public String getDnsSupport() { return this.dnsSupport; } /** *

* Enable or disable DNS support. *

* * @param dnsSupport * Enable or disable DNS support. * @return Returns a reference to this object so that method calls can be chained together. * @see DnsSupportValue */ public TransitGatewayRequestOptions withDnsSupport(String dnsSupport) { setDnsSupport(dnsSupport); return this; } /** *

* Enable or disable DNS support. *

* * @param dnsSupport * Enable or disable DNS support. * @return Returns a reference to this object so that method calls can be chained together. * @see DnsSupportValue */ public TransitGatewayRequestOptions withDnsSupport(DnsSupportValue dnsSupport) { this.dnsSupport = dnsSupport.toString(); 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 (getAmazonSideAsn() != null) sb.append("AmazonSideAsn: ").append(getAmazonSideAsn()).append(","); if (getAutoAcceptSharedAttachments() != null) sb.append("AutoAcceptSharedAttachments: ").append(getAutoAcceptSharedAttachments()).append(","); if (getDefaultRouteTableAssociation() != null) sb.append("DefaultRouteTableAssociation: ").append(getDefaultRouteTableAssociation()).append(","); if (getDefaultRouteTablePropagation() != null) sb.append("DefaultRouteTablePropagation: ").append(getDefaultRouteTablePropagation()).append(","); if (getVpnEcmpSupport() != null) sb.append("VpnEcmpSupport: ").append(getVpnEcmpSupport()).append(","); if (getDnsSupport() != null) sb.append("DnsSupport: ").append(getDnsSupport()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TransitGatewayRequestOptions == false) return false; TransitGatewayRequestOptions other = (TransitGatewayRequestOptions) obj; if (other.getAmazonSideAsn() == null ^ this.getAmazonSideAsn() == null) return false; if (other.getAmazonSideAsn() != null && other.getAmazonSideAsn().equals(this.getAmazonSideAsn()) == false) return false; if (other.getAutoAcceptSharedAttachments() == null ^ this.getAutoAcceptSharedAttachments() == null) return false; if (other.getAutoAcceptSharedAttachments() != null && other.getAutoAcceptSharedAttachments().equals(this.getAutoAcceptSharedAttachments()) == false) return false; if (other.getDefaultRouteTableAssociation() == null ^ this.getDefaultRouteTableAssociation() == null) return false; if (other.getDefaultRouteTableAssociation() != null && other.getDefaultRouteTableAssociation().equals(this.getDefaultRouteTableAssociation()) == false) return false; if (other.getDefaultRouteTablePropagation() == null ^ this.getDefaultRouteTablePropagation() == null) return false; if (other.getDefaultRouteTablePropagation() != null && other.getDefaultRouteTablePropagation().equals(this.getDefaultRouteTablePropagation()) == false) return false; if (other.getVpnEcmpSupport() == null ^ this.getVpnEcmpSupport() == null) return false; if (other.getVpnEcmpSupport() != null && other.getVpnEcmpSupport().equals(this.getVpnEcmpSupport()) == false) return false; if (other.getDnsSupport() == null ^ this.getDnsSupport() == null) return false; if (other.getDnsSupport() != null && other.getDnsSupport().equals(this.getDnsSupport()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAmazonSideAsn() == null) ? 0 : getAmazonSideAsn().hashCode()); hashCode = prime * hashCode + ((getAutoAcceptSharedAttachments() == null) ? 0 : getAutoAcceptSharedAttachments().hashCode()); hashCode = prime * hashCode + ((getDefaultRouteTableAssociation() == null) ? 0 : getDefaultRouteTableAssociation().hashCode()); hashCode = prime * hashCode + ((getDefaultRouteTablePropagation() == null) ? 0 : getDefaultRouteTablePropagation().hashCode()); hashCode = prime * hashCode + ((getVpnEcmpSupport() == null) ? 0 : getVpnEcmpSupport().hashCode()); hashCode = prime * hashCode + ((getDnsSupport() == null) ? 0 : getDnsSupport().hashCode()); return hashCode; } @Override public TransitGatewayRequestOptions clone() { try { return (TransitGatewayRequestOptions) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy