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