Class CfnTransitGatewayVpcAttachmentMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnTransitGatewayVpcAttachmentMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayVpcAttachmentMixinProps>
- Enclosing interface:
CfnTransitGatewayVpcAttachmentMixinProps
@Stability(Stable)
public static final class CfnTransitGatewayVpcAttachmentMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayVpcAttachmentMixinProps>
A builder for
CfnTransitGatewayVpcAttachmentMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSubnetIds(List<String> addSubnetIds) Sets the value ofCfnTransitGatewayVpcAttachmentMixinProps.getAddSubnetIds()build()Builds the configured instance.Sets the value ofCfnTransitGatewayVpcAttachmentMixinProps.getOptions()removeSubnetIds(List<String> removeSubnetIds) Sets the value ofCfnTransitGatewayVpcAttachmentMixinProps.getRemoveSubnetIds()Sets the value ofCfnTransitGatewayVpcAttachmentMixinProps.getSubnetIds()Sets the value ofCfnTransitGatewayVpcAttachmentMixinProps.getTags()transitGatewayId(String transitGatewayId) Sets the value ofCfnTransitGatewayVpcAttachmentMixinProps.getTransitGatewayId()transitGatewayId(ITransitGatewayRef transitGatewayId) Sets the value ofCfnTransitGatewayVpcAttachmentMixinProps.getTransitGatewayId()Sets the value ofCfnTransitGatewayVpcAttachmentMixinProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addSubnetIds
@Stability(Stable) public CfnTransitGatewayVpcAttachmentMixinProps.Builder addSubnetIds(List<String> addSubnetIds) Sets the value ofCfnTransitGatewayVpcAttachmentMixinProps.getAddSubnetIds()- Parameters:
addSubnetIds- The IDs of one or more subnets to add. You can specify at most one subnet per Availability Zone.- Returns:
this
-
options
Sets the value ofCfnTransitGatewayVpcAttachmentMixinProps.getOptions()- Parameters:
options- The VPC attachment options.- Returns:
this
-
removeSubnetIds
@Stability(Stable) public CfnTransitGatewayVpcAttachmentMixinProps.Builder removeSubnetIds(List<String> removeSubnetIds) Sets the value ofCfnTransitGatewayVpcAttachmentMixinProps.getRemoveSubnetIds()- Parameters:
removeSubnetIds- The IDs of one or more subnets to remove.- Returns:
this
-
subnetIds
@Stability(Stable) public CfnTransitGatewayVpcAttachmentMixinProps.Builder subnetIds(List<String> subnetIds) Sets the value ofCfnTransitGatewayVpcAttachmentMixinProps.getSubnetIds()- Parameters:
subnetIds- The IDs of the subnets.- Returns:
this
-
tags
@Stability(Stable) public CfnTransitGatewayVpcAttachmentMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnTransitGatewayVpcAttachmentMixinProps.getTags()- Parameters:
tags- The tags for the VPC attachment.- Returns:
this
-
transitGatewayId
@Stability(Stable) public CfnTransitGatewayVpcAttachmentMixinProps.Builder transitGatewayId(String transitGatewayId) Sets the value ofCfnTransitGatewayVpcAttachmentMixinProps.getTransitGatewayId()- Parameters:
transitGatewayId- The ID of the transit gateway.- Returns:
this
-
transitGatewayId
@Stability(Stable) public CfnTransitGatewayVpcAttachmentMixinProps.Builder transitGatewayId(ITransitGatewayRef transitGatewayId) Sets the value ofCfnTransitGatewayVpcAttachmentMixinProps.getTransitGatewayId()- Parameters:
transitGatewayId- The ID of the transit gateway.- Returns:
this
-
vpcId
Sets the value ofCfnTransitGatewayVpcAttachmentMixinProps.getVpcId()- Parameters:
vpcId- The ID of the VPC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayVpcAttachmentMixinProps>- Returns:
- a new instance of
CfnTransitGatewayVpcAttachmentMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-