Class CfnTransitGatewayVpcAttachmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayVpcAttachmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayVpcAttachmentProps>
- Enclosing interface:
- CfnTransitGatewayVpcAttachmentProps
@Stability(Stable)
public static final class CfnTransitGatewayVpcAttachmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayVpcAttachmentProps>
A builder for
CfnTransitGatewayVpcAttachmentProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSubnetIds(List<String> addSubnetIds) Sets the value ofCfnTransitGatewayVpcAttachmentProps.getAddSubnetIds()build()Builds the configured instance.Sets the value ofCfnTransitGatewayVpcAttachmentProps.getOptions()removeSubnetIds(List<String> removeSubnetIds) Sets the value ofCfnTransitGatewayVpcAttachmentProps.getRemoveSubnetIds()Sets the value ofCfnTransitGatewayVpcAttachmentProps.getSubnetIds()Sets the value ofCfnTransitGatewayVpcAttachmentProps.getTags()transitGatewayId(String transitGatewayId) Sets the value ofCfnTransitGatewayVpcAttachmentProps.getTransitGatewayId()Sets the value ofCfnTransitGatewayVpcAttachmentProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnetIds
@Stability(Stable) public CfnTransitGatewayVpcAttachmentProps.Builder subnetIds(List<String> subnetIds) Sets the value ofCfnTransitGatewayVpcAttachmentProps.getSubnetIds()- Parameters:
subnetIds- The IDs of the subnets. This parameter is required.- Returns:
this
-
transitGatewayId
@Stability(Stable) public CfnTransitGatewayVpcAttachmentProps.Builder transitGatewayId(String transitGatewayId) Sets the value ofCfnTransitGatewayVpcAttachmentProps.getTransitGatewayId()- Parameters:
transitGatewayId- The ID of the transit gateway. This parameter is required.- Returns:
this
-
vpcId
Sets the value ofCfnTransitGatewayVpcAttachmentProps.getVpcId()- Parameters:
vpcId- The ID of the VPC. This parameter is required.- Returns:
this
-
addSubnetIds
@Stability(Stable) public CfnTransitGatewayVpcAttachmentProps.Builder addSubnetIds(List<String> addSubnetIds) Sets the value ofCfnTransitGatewayVpcAttachmentProps.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 ofCfnTransitGatewayVpcAttachmentProps.getOptions()- Parameters:
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.
- Returns:
this
-
removeSubnetIds
@Stability(Stable) public CfnTransitGatewayVpcAttachmentProps.Builder removeSubnetIds(List<String> removeSubnetIds) Sets the value ofCfnTransitGatewayVpcAttachmentProps.getRemoveSubnetIds()- Parameters:
removeSubnetIds- The IDs of one or more subnets to remove.- Returns:
this
-
tags
@Stability(Stable) public CfnTransitGatewayVpcAttachmentProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnTransitGatewayVpcAttachmentProps.getTags()- Parameters:
tags- The tags for the VPC attachment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayVpcAttachmentProps>- Returns:
- a new instance of
CfnTransitGatewayVpcAttachmentProps - Throws:
NullPointerException- if any required attribute was not provided
-