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.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.transitGatewayId(ITransitGatewayRef transitGatewayId) The ID of the transit gateway.The ID of the VPC.
-
Method Details
-
create
@Stability(Stable) public static CfnTransitGatewayVpcAttachment.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- 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- See Also:
-
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- See Also:
-
transitGatewayId
@Stability(Stable) public CfnTransitGatewayVpcAttachment.Builder transitGatewayId(ITransitGatewayRef transitGatewayId) The ID of the transit gateway.- Parameters:
transitGatewayId- The ID of the transit gateway. This parameter is required.- Returns:
this- See Also:
-
vpcId
The ID of the VPC.- Parameters:
vpcId- The ID of the VPC. This parameter is required.- Returns:
this- See Also:
-
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- See Also:
-
options
The VPC attachment options.- Parameters:
options- The VPC attachment options. This parameter is required.- Returns:
this- See Also:
-
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- See Also:
-
tags
The tags for the VPC attachment.- Parameters:
tags- The tags for the VPC attachment. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayVpcAttachment>- Returns:
- a newly built instance of
CfnTransitGatewayVpcAttachment.
-