Class CfnTransitGatewayVpcAttachment.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayVpcAttachment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayVpcAttachment>
- Enclosing class:
- CfnTransitGatewayVpcAttachment
@Stability(Stable)
public static final class CfnTransitGatewayVpcAttachment.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayVpcAttachment>
A fluent builder for
CfnTransitGatewayVpcAttachment.-
Method Summary
Modifier and TypeMethodDescriptionaddSubnetIds(List<String> addSubnetIds) The IDs of one or more subnets to add.build()The VPC attachment options, in JSON or YAML.removeSubnetIds(List<String> removeSubnetIds) The IDs of one or more subnets to remove.The IDs of the subnets.The tags for the VPC attachment.transitGatewayId(String transitGatewayId) The ID of the transit gateway.The ID of the VPC.
-
Method Details
-
create
@Stability(Stable) public static CfnTransitGatewayVpcAttachment.Builder create(Construct scope, String id) - Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- Returns:
- a new instance of
CfnTransitGatewayVpcAttachment.Builder.
-
subnetIds
The IDs of the subnets.- Parameters:
subnetIds- The IDs of the subnets. This parameter is required.- Returns:
this
-
transitGatewayId
@Stability(Stable) public CfnTransitGatewayVpcAttachment.Builder transitGatewayId(String transitGatewayId) The ID of the transit gateway.- Parameters:
transitGatewayId- The ID of the transit gateway. This parameter is required.- Returns:
this
-
vpcId
The ID of the VPC.- Parameters:
vpcId- The ID of the VPC. This parameter is required.- Returns:
this
-
addSubnetIds
@Stability(Stable) public CfnTransitGatewayVpcAttachment.Builder addSubnetIds(List<String> addSubnetIds) The IDs of one or more subnets to add.You can specify at most one subnet per Availability Zone.
- Parameters:
addSubnetIds- The IDs of one or more subnets to add. This parameter is required.- Returns:
this
-
options
The VPC attachment options, in JSON or YAML.ApplianceModeSupport- Set toenableordisable. The default isdisable.DnsSupport- Set toenableordisable. The default isenable.Ipv6Support- Set toenableordisable. The default isdisable.
- Parameters:
options- The VPC attachment options, in JSON or YAML. This parameter is required.- Returns:
this
-
removeSubnetIds
@Stability(Stable) public CfnTransitGatewayVpcAttachment.Builder removeSubnetIds(List<String> removeSubnetIds) The IDs of one or more subnets to remove.- Parameters:
removeSubnetIds- The IDs of one or more subnets to remove. This parameter is required.- Returns:
this
-
tags
The tags for the VPC attachment.- Parameters:
tags- The tags for the VPC attachment. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayVpcAttachment>- Returns:
- a newly built instance of
CfnTransitGatewayVpcAttachment.
-