Class CfnTransitGatewayVpcAttachmentPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnTransitGatewayVpcAttachmentPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayVpcAttachmentPropsMixin>
- Enclosing class:
CfnTransitGatewayVpcAttachmentPropsMixin
@Stability(Stable)
public static final class CfnTransitGatewayVpcAttachmentPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayVpcAttachmentPropsMixin>
A fluent builder for
CfnTransitGatewayVpcAttachmentPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionaddSubnetIds(List<String> addSubnetIds) The IDs of one or more subnets to add.build()create()create(CfnPropertyMixinOptions options) 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 CfnTransitGatewayVpcAttachmentPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnTransitGatewayVpcAttachmentPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnTransitGatewayVpcAttachmentPropsMixin.Builder.
-
addSubnetIds
@Stability(Stable) public CfnTransitGatewayVpcAttachmentPropsMixin.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 CfnTransitGatewayVpcAttachmentPropsMixin.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:
-
subnetIds
@Stability(Stable) public CfnTransitGatewayVpcAttachmentPropsMixin.Builder subnetIds(List<String> subnetIds) The IDs of the subnets.- Parameters:
subnetIds- The IDs of the subnets. This parameter is required.- Returns:
this- See Also:
-
tags
@Stability(Stable) public CfnTransitGatewayVpcAttachmentPropsMixin.Builder tags(List<? extends CfnTag> tags) The tags for the VPC attachment.- Parameters:
tags- The tags for the VPC attachment. This parameter is required.- Returns:
this- See Also:
-
transitGatewayId
@Stability(Stable) public CfnTransitGatewayVpcAttachmentPropsMixin.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 CfnTransitGatewayVpcAttachmentPropsMixin.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:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayVpcAttachmentPropsMixin>- Returns:
- a newly built instance of
CfnTransitGatewayVpcAttachmentPropsMixin.
-