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
Constructors -
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()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
-
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:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayProps>- Returns:
- a new instance of
CfnTransitGatewayProps - Throws:
NullPointerException- if any required attribute was not provided
-