Class TransitGatewayVpcAttachmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.alpha.TransitGatewayVpcAttachmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TransitGatewayVpcAttachmentProps>
- Enclosing interface:
TransitGatewayVpcAttachmentProps
@Stability(Experimental)
public static final class TransitGatewayVpcAttachmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<TransitGatewayVpcAttachmentProps>
A builder for
TransitGatewayVpcAttachmentProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofTransitGatewayVpcAttachmentProps.getSubnets()transitGateway(ITransitGateway transitGateway) Sets the value ofTransitGatewayVpcAttachmentProps.getTransitGateway()transitGatewayAttachmentName(String transitGatewayAttachmentName) Sets the value ofTransitGatewayVpcAttachmentProps.getTransitGatewayAttachmentName()Sets the value ofTransitGatewayVpcAttachmentProps.getVpc()vpcAttachmentOptions(ITransitGatewayVpcAttachmentOptions vpcAttachmentOptions) Sets the value ofTransitGatewayVpcAttachmentProps.getVpcAttachmentOptions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnets
@Stability(Experimental) public TransitGatewayVpcAttachmentProps.Builder subnets(List<? extends ISubnet> subnets) Sets the value ofTransitGatewayVpcAttachmentProps.getSubnets()- Parameters:
subnets- A list of one or more subnets to place the attachment in. This parameter is required. It is recommended to specify more subnets for better availability.- Returns:
this
-
transitGateway
@Stability(Experimental) public TransitGatewayVpcAttachmentProps.Builder transitGateway(ITransitGateway transitGateway) Sets the value ofTransitGatewayVpcAttachmentProps.getTransitGateway()- Parameters:
transitGateway- The transit gateway this attachment gets assigned to. This parameter is required.- Returns:
this
-
vpc
Sets the value ofTransitGatewayVpcAttachmentProps.getVpc()- Parameters:
vpc- A VPC attachment(s) will get assigned to. This parameter is required.- Returns:
this
-
transitGatewayAttachmentName
@Stability(Experimental) public TransitGatewayVpcAttachmentProps.Builder transitGatewayAttachmentName(String transitGatewayAttachmentName) Sets the value ofTransitGatewayVpcAttachmentProps.getTransitGatewayAttachmentName()- Parameters:
transitGatewayAttachmentName- Physical name of this Transit Gateway VPC Attachment.- Returns:
this
-
vpcAttachmentOptions
@Stability(Experimental) public TransitGatewayVpcAttachmentProps.Builder vpcAttachmentOptions(ITransitGatewayVpcAttachmentOptions vpcAttachmentOptions) Sets the value ofTransitGatewayVpcAttachmentProps.getVpcAttachmentOptions()- Parameters:
vpcAttachmentOptions- The VPC attachment options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TransitGatewayVpcAttachmentProps>- Returns:
- a new instance of
TransitGatewayVpcAttachmentProps - Throws:
NullPointerException- if any required attribute was not provided
-