Class CfnTransitGatewayProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayProps>
- Enclosing interface:
CfnTransitGatewayProps
@Stability(Stable)
public static final class CfnTransitGatewayProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayProps>
A builder for
CfnTransitGatewayProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionamazonSideAsn
(Number amazonSideAsn) Sets the value ofCfnTransitGatewayProps.getAmazonSideAsn()
associationDefaultRouteTableId
(String associationDefaultRouteTableId) Sets the value ofCfnTransitGatewayProps.getAssociationDefaultRouteTableId()
autoAcceptSharedAttachments
(String autoAcceptSharedAttachments) Sets the value ofCfnTransitGatewayProps.getAutoAcceptSharedAttachments()
build()
Builds the configured instance.defaultRouteTableAssociation
(String defaultRouteTableAssociation) Sets the value ofCfnTransitGatewayProps.getDefaultRouteTableAssociation()
defaultRouteTablePropagation
(String defaultRouteTablePropagation) Sets the value ofCfnTransitGatewayProps.getDefaultRouteTablePropagation()
description
(String description) Sets the value ofCfnTransitGatewayProps.getDescription()
dnsSupport
(String dnsSupport) Sets the value ofCfnTransitGatewayProps.getDnsSupport()
multicastSupport
(String multicastSupport) Sets the value ofCfnTransitGatewayProps.getMulticastSupport()
propagationDefaultRouteTableId
(String propagationDefaultRouteTableId) Sets the value ofCfnTransitGatewayProps.getPropagationDefaultRouteTableId()
securityGroupReferencingSupport
(String securityGroupReferencingSupport) Sets the value ofCfnTransitGatewayProps.getSecurityGroupReferencingSupport()
Sets the value ofCfnTransitGatewayProps.getTags()
transitGatewayCidrBlocks
(List<String> transitGatewayCidrBlocks) Sets the value ofCfnTransitGatewayProps.getTransitGatewayCidrBlocks()
vpnEcmpSupport
(String vpnEcmpSupport) Sets the value ofCfnTransitGatewayProps.getVpnEcmpSupport()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amazonSideAsn
Sets the value ofCfnTransitGatewayProps.getAmazonSideAsn()
- Parameters:
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. The default is 64512.- Returns:
this
-
associationDefaultRouteTableId
@Stability(Stable) public CfnTransitGatewayProps.Builder associationDefaultRouteTableId(String associationDefaultRouteTableId) Sets the value ofCfnTransitGatewayProps.getAssociationDefaultRouteTableId()
- Parameters:
associationDefaultRouteTableId
- The ID of the default association route table.- Returns:
this
-
defaultRouteTableAssociation
@Stability(Stable) public CfnTransitGatewayProps.Builder defaultRouteTableAssociation(String defaultRouteTableAssociation) Sets the value ofCfnTransitGatewayProps.getDefaultRouteTableAssociation()
- Parameters:
defaultRouteTableAssociation
- Enable or disable automatic association with the default association route table. Enabled by default.- Returns:
this
-
defaultRouteTablePropagation
@Stability(Stable) public CfnTransitGatewayProps.Builder defaultRouteTablePropagation(String defaultRouteTablePropagation) Sets the value ofCfnTransitGatewayProps.getDefaultRouteTablePropagation()
- Parameters:
defaultRouteTablePropagation
- Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default.- Returns:
this
-
description
Sets the value ofCfnTransitGatewayProps.getDescription()
- Parameters:
description
- The description of the transit gateway.- Returns:
this
-
dnsSupport
Sets the value ofCfnTransitGatewayProps.getDnsSupport()
- Parameters:
dnsSupport
- Enable or disable DNS support. Enabled by default.- Returns:
this
-
multicastSupport
Sets the value ofCfnTransitGatewayProps.getMulticastSupport()
- Parameters:
multicastSupport
- Indicates whether multicast is enabled on the transit gateway.- Returns:
this
-
propagationDefaultRouteTableId
@Stability(Stable) public CfnTransitGatewayProps.Builder propagationDefaultRouteTableId(String propagationDefaultRouteTableId) Sets the value ofCfnTransitGatewayProps.getPropagationDefaultRouteTableId()
- Parameters:
propagationDefaultRouteTableId
- The ID of the default propagation route table.- Returns:
this
-
securityGroupReferencingSupport
@Stability(Stable) public CfnTransitGatewayProps.Builder securityGroupReferencingSupport(String securityGroupReferencingSupport) Sets the value ofCfnTransitGatewayProps.getSecurityGroupReferencingSupport()
- Parameters:
securityGroupReferencingSupport
- Enables you to reference a security group across VPCs attached to a transit gateway (TGW). Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.For important information about this feature, see Create a transit gateway in the AWS Transit Gateway Guide .
- Returns:
this
-
tags
Sets the value ofCfnTransitGatewayProps.getTags()
- Parameters:
tags
- The tags for the transit gateway.- Returns:
this
-
transitGatewayCidrBlocks
@Stability(Stable) public CfnTransitGatewayProps.Builder transitGatewayCidrBlocks(List<String> transitGatewayCidrBlocks) Sets the value ofCfnTransitGatewayProps.getTransitGatewayCidrBlocks()
- Parameters:
transitGatewayCidrBlocks
- The transit gateway CIDR blocks.- Returns:
this
-
vpnEcmpSupport
Sets the value ofCfnTransitGatewayProps.getVpnEcmpSupport()
- Parameters:
vpnEcmpSupport
- Enable or disable Equal Cost Multipath Protocol support. Enabled by default.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayProps>
- Returns:
- a new instance of
CfnTransitGatewayProps
- Throws:
NullPointerException
- if any required attribute was not provided
-