Class CfnTransitGatewayAttachmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayAttachmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayAttachmentProps>
- Enclosing interface:
CfnTransitGatewayAttachmentProps
@Stability(Stable)
public static final class CfnTransitGatewayAttachmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayAttachmentProps>
A builder for
CfnTransitGatewayAttachmentProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTransitGatewayAttachmentProps.getOptions()
Sets the value ofCfnTransitGatewayAttachmentProps.getSubnetIds()
Sets the value ofCfnTransitGatewayAttachmentProps.getTags()
transitGatewayId
(String transitGatewayId) Sets the value ofCfnTransitGatewayAttachmentProps.getTransitGatewayId()
Sets the value ofCfnTransitGatewayAttachmentProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnetIds
@Stability(Stable) public CfnTransitGatewayAttachmentProps.Builder subnetIds(List<String> subnetIds) Sets the value ofCfnTransitGatewayAttachmentProps.getSubnetIds()
- Parameters:
subnetIds
- The IDs of one or more subnets. This parameter is required. You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.- Returns:
this
-
transitGatewayId
@Stability(Stable) public CfnTransitGatewayAttachmentProps.Builder transitGatewayId(String transitGatewayId) Sets the value ofCfnTransitGatewayAttachmentProps.getTransitGatewayId()
- Parameters:
transitGatewayId
- The ID of the transit gateway. This parameter is required.- Returns:
this
-
vpcId
Sets the value ofCfnTransitGatewayAttachmentProps.getVpcId()
- Parameters:
vpcId
- The ID of the VPC. This parameter is required.- Returns:
this
-
options
Sets the value ofCfnTransitGatewayAttachmentProps.getOptions()
- Parameters:
options
- The VPC attachment options, in JSON or YAML.ApplianceModeSupport
- Set toenable
ordisable
. The default isdisable
.DnsSupport
- Set toenable
ordisable
. The default isenable
.Ipv6Support
- Set toenable
ordisable
. The default isdisable
.
- Returns:
this
-
tags
@Stability(Stable) public CfnTransitGatewayAttachmentProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnTransitGatewayAttachmentProps.getTags()
- Parameters:
tags
- The tags for the attachment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayAttachmentProps>
- Returns:
- a new instance of
CfnTransitGatewayAttachmentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-