Class CfnTransitGatewayMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnTransitGatewayMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayMixinProps>
- Enclosing interface:
CfnTransitGatewayMixinProps
@Stability(Stable)
public static final class CfnTransitGatewayMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayMixinProps>
A builder for
CfnTransitGatewayMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamazonSideAsn(Number amazonSideAsn) Sets the value ofCfnTransitGatewayMixinProps.getAmazonSideAsn()associationDefaultRouteTableId(String associationDefaultRouteTableId) Sets the value ofCfnTransitGatewayMixinProps.getAssociationDefaultRouteTableId()autoAcceptSharedAttachments(String autoAcceptSharedAttachments) Sets the value ofCfnTransitGatewayMixinProps.getAutoAcceptSharedAttachments()build()Builds the configured instance.defaultRouteTableAssociation(String defaultRouteTableAssociation) Sets the value ofCfnTransitGatewayMixinProps.getDefaultRouteTableAssociation()defaultRouteTablePropagation(String defaultRouteTablePropagation) Sets the value ofCfnTransitGatewayMixinProps.getDefaultRouteTablePropagation()description(String description) Sets the value ofCfnTransitGatewayMixinProps.getDescription()dnsSupport(String dnsSupport) Sets the value ofCfnTransitGatewayMixinProps.getDnsSupport()encryptionSupport(String encryptionSupport) Sets the value ofCfnTransitGatewayMixinProps.getEncryptionSupport()multicastSupport(String multicastSupport) Sets the value ofCfnTransitGatewayMixinProps.getMulticastSupport()propagationDefaultRouteTableId(String propagationDefaultRouteTableId) Sets the value ofCfnTransitGatewayMixinProps.getPropagationDefaultRouteTableId()securityGroupReferencingSupport(String securityGroupReferencingSupport) Sets the value ofCfnTransitGatewayMixinProps.getSecurityGroupReferencingSupport()Sets the value ofCfnTransitGatewayMixinProps.getTags()transitGatewayCidrBlocks(List<String> transitGatewayCidrBlocks) Sets the value ofCfnTransitGatewayMixinProps.getTransitGatewayCidrBlocks()vpnEcmpSupport(String vpnEcmpSupport) Sets the value ofCfnTransitGatewayMixinProps.getVpnEcmpSupport()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amazonSideAsn
Sets the value ofCfnTransitGatewayMixinProps.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 CfnTransitGatewayMixinProps.Builder associationDefaultRouteTableId(String associationDefaultRouteTableId) Sets the value ofCfnTransitGatewayMixinProps.getAssociationDefaultRouteTableId()- Parameters:
associationDefaultRouteTableId- The ID of the default association route table.- Returns:
this
-
defaultRouteTableAssociation
@Stability(Stable) public CfnTransitGatewayMixinProps.Builder defaultRouteTableAssociation(String defaultRouteTableAssociation) Sets the value ofCfnTransitGatewayMixinProps.getDefaultRouteTableAssociation()- Parameters:
defaultRouteTableAssociation- Enable or disable automatic association with the default association route table. Enabled by default. IfDefaultRouteTableAssociationis set to enable, AWS Transit Gateway will create the default transit gateway route table.- Returns:
this
-
defaultRouteTablePropagation
@Stability(Stable) public CfnTransitGatewayMixinProps.Builder defaultRouteTablePropagation(String defaultRouteTablePropagation) Sets the value ofCfnTransitGatewayMixinProps.getDefaultRouteTablePropagation()- Parameters:
defaultRouteTablePropagation- Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default. IfDefaultRouteTablePropagationis set to enable, AWS Transit Gateway will create the default transit gateway route table.- Returns:
this
-
description
Sets the value ofCfnTransitGatewayMixinProps.getDescription()- Parameters:
description- The description of the transit gateway.- Returns:
this
-
dnsSupport
Sets the value ofCfnTransitGatewayMixinProps.getDnsSupport()- Parameters:
dnsSupport- Enable or disable DNS support. Enabled by default.- Returns:
this
-
encryptionSupport
@Stability(Stable) public CfnTransitGatewayMixinProps.Builder encryptionSupport(String encryptionSupport) Sets the value ofCfnTransitGatewayMixinProps.getEncryptionSupport()- Parameters:
encryptionSupport- Enable or disable encryption support. Disabled by default.- Returns:
this
-
multicastSupport
@Stability(Stable) public CfnTransitGatewayMixinProps.Builder multicastSupport(String multicastSupport) Sets the value ofCfnTransitGatewayMixinProps.getMulticastSupport()- Parameters:
multicastSupport- Indicates whether multicast is enabled on the transit gateway.- Returns:
this
-
propagationDefaultRouteTableId
@Stability(Stable) public CfnTransitGatewayMixinProps.Builder propagationDefaultRouteTableId(String propagationDefaultRouteTableId) Sets the value ofCfnTransitGatewayMixinProps.getPropagationDefaultRouteTableId()- Parameters:
propagationDefaultRouteTableId- The ID of the default propagation route table.- Returns:
this
-
securityGroupReferencingSupport
@Stability(Stable) public CfnTransitGatewayMixinProps.Builder securityGroupReferencingSupport(String securityGroupReferencingSupport) Sets the value ofCfnTransitGatewayMixinProps.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 ofCfnTransitGatewayMixinProps.getTags()- Parameters:
tags- The tags for the transit gateway.- Returns:
this
-
transitGatewayCidrBlocks
@Stability(Stable) public CfnTransitGatewayMixinProps.Builder transitGatewayCidrBlocks(List<String> transitGatewayCidrBlocks) Sets the value ofCfnTransitGatewayMixinProps.getTransitGatewayCidrBlocks()- Parameters:
transitGatewayCidrBlocks- The transit gateway CIDR blocks.- Returns:
this
-
vpnEcmpSupport
Sets the value ofCfnTransitGatewayMixinProps.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<CfnTransitGatewayMixinProps>- Returns:
- a new instance of
CfnTransitGatewayMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-