/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the options for a transit gateway.See Also:
AWS
* API Reference
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.
*/ inline long long GetAmazonSideAsn() const{ return m_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.
*/ inline bool AmazonSideAsnHasBeenSet() const { return m_amazonSideAsnHasBeenSet; } /** *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.
*/ inline void SetAmazonSideAsn(long long value) { m_amazonSideAsnHasBeenSet = true; m_amazonSideAsn = value; } /** *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.
*/ inline TransitGatewayOptions& WithAmazonSideAsn(long long value) { SetAmazonSideAsn(value); return *this;} /** *The transit gateway CIDR blocks.
*/ inline const Aws::VectorThe transit gateway CIDR blocks.
*/ inline bool TransitGatewayCidrBlocksHasBeenSet() const { return m_transitGatewayCidrBlocksHasBeenSet; } /** *The transit gateway CIDR blocks.
*/ inline void SetTransitGatewayCidrBlocks(const Aws::VectorThe transit gateway CIDR blocks.
*/ inline void SetTransitGatewayCidrBlocks(Aws::VectorThe transit gateway CIDR blocks.
*/ inline TransitGatewayOptions& WithTransitGatewayCidrBlocks(const Aws::VectorThe transit gateway CIDR blocks.
*/ inline TransitGatewayOptions& WithTransitGatewayCidrBlocks(Aws::VectorThe transit gateway CIDR blocks.
*/ inline TransitGatewayOptions& AddTransitGatewayCidrBlocks(const Aws::String& value) { m_transitGatewayCidrBlocksHasBeenSet = true; m_transitGatewayCidrBlocks.push_back(value); return *this; } /** *The transit gateway CIDR blocks.
*/ inline TransitGatewayOptions& AddTransitGatewayCidrBlocks(Aws::String&& value) { m_transitGatewayCidrBlocksHasBeenSet = true; m_transitGatewayCidrBlocks.push_back(std::move(value)); return *this; } /** *The transit gateway CIDR blocks.
*/ inline TransitGatewayOptions& AddTransitGatewayCidrBlocks(const char* value) { m_transitGatewayCidrBlocksHasBeenSet = true; m_transitGatewayCidrBlocks.push_back(value); return *this; } /** *Indicates whether attachment requests are automatically accepted.
*/ inline const AutoAcceptSharedAttachmentsValue& GetAutoAcceptSharedAttachments() const{ return m_autoAcceptSharedAttachments; } /** *Indicates whether attachment requests are automatically accepted.
*/ inline bool AutoAcceptSharedAttachmentsHasBeenSet() const { return m_autoAcceptSharedAttachmentsHasBeenSet; } /** *Indicates whether attachment requests are automatically accepted.
*/ inline void SetAutoAcceptSharedAttachments(const AutoAcceptSharedAttachmentsValue& value) { m_autoAcceptSharedAttachmentsHasBeenSet = true; m_autoAcceptSharedAttachments = value; } /** *Indicates whether attachment requests are automatically accepted.
*/ inline void SetAutoAcceptSharedAttachments(AutoAcceptSharedAttachmentsValue&& value) { m_autoAcceptSharedAttachmentsHasBeenSet = true; m_autoAcceptSharedAttachments = std::move(value); } /** *Indicates whether attachment requests are automatically accepted.
*/ inline TransitGatewayOptions& WithAutoAcceptSharedAttachments(const AutoAcceptSharedAttachmentsValue& value) { SetAutoAcceptSharedAttachments(value); return *this;} /** *Indicates whether attachment requests are automatically accepted.
*/ inline TransitGatewayOptions& WithAutoAcceptSharedAttachments(AutoAcceptSharedAttachmentsValue&& value) { SetAutoAcceptSharedAttachments(std::move(value)); return *this;} /** *Indicates whether resource attachments are automatically associated with the * default association route table.
*/ inline const DefaultRouteTableAssociationValue& GetDefaultRouteTableAssociation() const{ return m_defaultRouteTableAssociation; } /** *Indicates whether resource attachments are automatically associated with the * default association route table.
*/ inline bool DefaultRouteTableAssociationHasBeenSet() const { return m_defaultRouteTableAssociationHasBeenSet; } /** *Indicates whether resource attachments are automatically associated with the * default association route table.
*/ inline void SetDefaultRouteTableAssociation(const DefaultRouteTableAssociationValue& value) { m_defaultRouteTableAssociationHasBeenSet = true; m_defaultRouteTableAssociation = value; } /** *Indicates whether resource attachments are automatically associated with the * default association route table.
*/ inline void SetDefaultRouteTableAssociation(DefaultRouteTableAssociationValue&& value) { m_defaultRouteTableAssociationHasBeenSet = true; m_defaultRouteTableAssociation = std::move(value); } /** *Indicates whether resource attachments are automatically associated with the * default association route table.
*/ inline TransitGatewayOptions& WithDefaultRouteTableAssociation(const DefaultRouteTableAssociationValue& value) { SetDefaultRouteTableAssociation(value); return *this;} /** *Indicates whether resource attachments are automatically associated with the * default association route table.
*/ inline TransitGatewayOptions& WithDefaultRouteTableAssociation(DefaultRouteTableAssociationValue&& value) { SetDefaultRouteTableAssociation(std::move(value)); return *this;} /** *The ID of the default association route table.
*/ inline const Aws::String& GetAssociationDefaultRouteTableId() const{ return m_associationDefaultRouteTableId; } /** *The ID of the default association route table.
*/ inline bool AssociationDefaultRouteTableIdHasBeenSet() const { return m_associationDefaultRouteTableIdHasBeenSet; } /** *The ID of the default association route table.
*/ inline void SetAssociationDefaultRouteTableId(const Aws::String& value) { m_associationDefaultRouteTableIdHasBeenSet = true; m_associationDefaultRouteTableId = value; } /** *The ID of the default association route table.
*/ inline void SetAssociationDefaultRouteTableId(Aws::String&& value) { m_associationDefaultRouteTableIdHasBeenSet = true; m_associationDefaultRouteTableId = std::move(value); } /** *The ID of the default association route table.
*/ inline void SetAssociationDefaultRouteTableId(const char* value) { m_associationDefaultRouteTableIdHasBeenSet = true; m_associationDefaultRouteTableId.assign(value); } /** *The ID of the default association route table.
*/ inline TransitGatewayOptions& WithAssociationDefaultRouteTableId(const Aws::String& value) { SetAssociationDefaultRouteTableId(value); return *this;} /** *The ID of the default association route table.
*/ inline TransitGatewayOptions& WithAssociationDefaultRouteTableId(Aws::String&& value) { SetAssociationDefaultRouteTableId(std::move(value)); return *this;} /** *The ID of the default association route table.
*/ inline TransitGatewayOptions& WithAssociationDefaultRouteTableId(const char* value) { SetAssociationDefaultRouteTableId(value); return *this;} /** *Indicates whether resource attachments automatically propagate routes to the * default propagation route table.
*/ inline const DefaultRouteTablePropagationValue& GetDefaultRouteTablePropagation() const{ return m_defaultRouteTablePropagation; } /** *Indicates whether resource attachments automatically propagate routes to the * default propagation route table.
*/ inline bool DefaultRouteTablePropagationHasBeenSet() const { return m_defaultRouteTablePropagationHasBeenSet; } /** *Indicates whether resource attachments automatically propagate routes to the * default propagation route table.
*/ inline void SetDefaultRouteTablePropagation(const DefaultRouteTablePropagationValue& value) { m_defaultRouteTablePropagationHasBeenSet = true; m_defaultRouteTablePropagation = value; } /** *Indicates whether resource attachments automatically propagate routes to the * default propagation route table.
*/ inline void SetDefaultRouteTablePropagation(DefaultRouteTablePropagationValue&& value) { m_defaultRouteTablePropagationHasBeenSet = true; m_defaultRouteTablePropagation = std::move(value); } /** *Indicates whether resource attachments automatically propagate routes to the * default propagation route table.
*/ inline TransitGatewayOptions& WithDefaultRouteTablePropagation(const DefaultRouteTablePropagationValue& value) { SetDefaultRouteTablePropagation(value); return *this;} /** *Indicates whether resource attachments automatically propagate routes to the * default propagation route table.
*/ inline TransitGatewayOptions& WithDefaultRouteTablePropagation(DefaultRouteTablePropagationValue&& value) { SetDefaultRouteTablePropagation(std::move(value)); return *this;} /** *The ID of the default propagation route table.
*/ inline const Aws::String& GetPropagationDefaultRouteTableId() const{ return m_propagationDefaultRouteTableId; } /** *The ID of the default propagation route table.
*/ inline bool PropagationDefaultRouteTableIdHasBeenSet() const { return m_propagationDefaultRouteTableIdHasBeenSet; } /** *The ID of the default propagation route table.
*/ inline void SetPropagationDefaultRouteTableId(const Aws::String& value) { m_propagationDefaultRouteTableIdHasBeenSet = true; m_propagationDefaultRouteTableId = value; } /** *The ID of the default propagation route table.
*/ inline void SetPropagationDefaultRouteTableId(Aws::String&& value) { m_propagationDefaultRouteTableIdHasBeenSet = true; m_propagationDefaultRouteTableId = std::move(value); } /** *The ID of the default propagation route table.
*/ inline void SetPropagationDefaultRouteTableId(const char* value) { m_propagationDefaultRouteTableIdHasBeenSet = true; m_propagationDefaultRouteTableId.assign(value); } /** *The ID of the default propagation route table.
*/ inline TransitGatewayOptions& WithPropagationDefaultRouteTableId(const Aws::String& value) { SetPropagationDefaultRouteTableId(value); return *this;} /** *The ID of the default propagation route table.
*/ inline TransitGatewayOptions& WithPropagationDefaultRouteTableId(Aws::String&& value) { SetPropagationDefaultRouteTableId(std::move(value)); return *this;} /** *The ID of the default propagation route table.
*/ inline TransitGatewayOptions& WithPropagationDefaultRouteTableId(const char* value) { SetPropagationDefaultRouteTableId(value); return *this;} /** *Indicates whether Equal Cost Multipath Protocol support is enabled.
*/ inline const VpnEcmpSupportValue& GetVpnEcmpSupport() const{ return m_vpnEcmpSupport; } /** *Indicates whether Equal Cost Multipath Protocol support is enabled.
*/ inline bool VpnEcmpSupportHasBeenSet() const { return m_vpnEcmpSupportHasBeenSet; } /** *Indicates whether Equal Cost Multipath Protocol support is enabled.
*/ inline void SetVpnEcmpSupport(const VpnEcmpSupportValue& value) { m_vpnEcmpSupportHasBeenSet = true; m_vpnEcmpSupport = value; } /** *Indicates whether Equal Cost Multipath Protocol support is enabled.
*/ inline void SetVpnEcmpSupport(VpnEcmpSupportValue&& value) { m_vpnEcmpSupportHasBeenSet = true; m_vpnEcmpSupport = std::move(value); } /** *Indicates whether Equal Cost Multipath Protocol support is enabled.
*/ inline TransitGatewayOptions& WithVpnEcmpSupport(const VpnEcmpSupportValue& value) { SetVpnEcmpSupport(value); return *this;} /** *Indicates whether Equal Cost Multipath Protocol support is enabled.
*/ inline TransitGatewayOptions& WithVpnEcmpSupport(VpnEcmpSupportValue&& value) { SetVpnEcmpSupport(std::move(value)); return *this;} /** *Indicates whether DNS support is enabled.
*/ inline const DnsSupportValue& GetDnsSupport() const{ return m_dnsSupport; } /** *Indicates whether DNS support is enabled.
*/ inline bool DnsSupportHasBeenSet() const { return m_dnsSupportHasBeenSet; } /** *Indicates whether DNS support is enabled.
*/ inline void SetDnsSupport(const DnsSupportValue& value) { m_dnsSupportHasBeenSet = true; m_dnsSupport = value; } /** *Indicates whether DNS support is enabled.
*/ inline void SetDnsSupport(DnsSupportValue&& value) { m_dnsSupportHasBeenSet = true; m_dnsSupport = std::move(value); } /** *Indicates whether DNS support is enabled.
*/ inline TransitGatewayOptions& WithDnsSupport(const DnsSupportValue& value) { SetDnsSupport(value); return *this;} /** *Indicates whether DNS support is enabled.
*/ inline TransitGatewayOptions& WithDnsSupport(DnsSupportValue&& value) { SetDnsSupport(std::move(value)); return *this;} /** *Indicates whether multicast is enabled on the transit gateway
*/ inline const MulticastSupportValue& GetMulticastSupport() const{ return m_multicastSupport; } /** *Indicates whether multicast is enabled on the transit gateway
*/ inline bool MulticastSupportHasBeenSet() const { return m_multicastSupportHasBeenSet; } /** *Indicates whether multicast is enabled on the transit gateway
*/ inline void SetMulticastSupport(const MulticastSupportValue& value) { m_multicastSupportHasBeenSet = true; m_multicastSupport = value; } /** *Indicates whether multicast is enabled on the transit gateway
*/ inline void SetMulticastSupport(MulticastSupportValue&& value) { m_multicastSupportHasBeenSet = true; m_multicastSupport = std::move(value); } /** *Indicates whether multicast is enabled on the transit gateway
*/ inline TransitGatewayOptions& WithMulticastSupport(const MulticastSupportValue& value) { SetMulticastSupport(value); return *this;} /** *Indicates whether multicast is enabled on the transit gateway
*/ inline TransitGatewayOptions& WithMulticastSupport(MulticastSupportValue&& value) { SetMulticastSupport(std::move(value)); return *this;} private: long long m_amazonSideAsn; bool m_amazonSideAsnHasBeenSet = false; Aws::Vector