Class AttachVpcOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.alpha.AttachVpcOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AttachVpcOptions>
- Enclosing interface:
AttachVpcOptions
@Stability(Experimental)
public static final class AttachVpcOptions.Builder
extends Object
implements software.amazon.jsii.Builder<AttachVpcOptions>
A builder for
AttachVpcOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassociationRouteTable(ITransitGatewayRouteTable associationRouteTable) Sets the value ofAttachVpcOptions.getAssociationRouteTable()build()Builds the configured instance.propagationRouteTables(List<? extends ITransitGatewayRouteTable> propagationRouteTables) Sets the value ofAttachVpcOptions.getPropagationRouteTables()Sets the value ofAttachVpcOptions.getSubnets()transitGatewayAttachmentName(String transitGatewayAttachmentName) Sets the value ofAttachVpcOptions.getTransitGatewayAttachmentName()Sets the value ofAttachVpcOptions.getVpc()vpcAttachmentOptions(ITransitGatewayVpcAttachmentOptions vpcAttachmentOptions) Sets the value ofAttachVpcOptions.getVpcAttachmentOptions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnets
Sets the value ofAttachVpcOptions.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
-
vpc
Sets the value ofAttachVpcOptions.getVpc()- Parameters:
vpc- A VPC attachment(s) will get assigned to. This parameter is required.- Returns:
this
-
associationRouteTable
@Stability(Experimental) public AttachVpcOptions.Builder associationRouteTable(ITransitGatewayRouteTable associationRouteTable) Sets the value ofAttachVpcOptions.getAssociationRouteTable()- Parameters:
associationRouteTable- An optional route table to associate with this VPC attachment.- Returns:
this
-
propagationRouteTables
@Stability(Experimental) public AttachVpcOptions.Builder propagationRouteTables(List<? extends ITransitGatewayRouteTable> propagationRouteTables) Sets the value ofAttachVpcOptions.getPropagationRouteTables()- Parameters:
propagationRouteTables- A list of optional route tables to propagate routes to.- Returns:
this
-
transitGatewayAttachmentName
@Stability(Experimental) public AttachVpcOptions.Builder transitGatewayAttachmentName(String transitGatewayAttachmentName) Sets the value ofAttachVpcOptions.getTransitGatewayAttachmentName()- Parameters:
transitGatewayAttachmentName- Physical name of this Transit Gateway VPC Attachment.- Returns:
this
-
vpcAttachmentOptions
@Stability(Experimental) public AttachVpcOptions.Builder vpcAttachmentOptions(ITransitGatewayVpcAttachmentOptions vpcAttachmentOptions) Sets the value ofAttachVpcOptions.getVpcAttachmentOptions()- Parameters:
vpcAttachmentOptions- The VPC attachment options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AttachVpcOptions>- Returns:
- a new instance of
AttachVpcOptions - Throws:
NullPointerException- if any required attribute was not provided
-