Class VpcAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.VpcAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcAttributes>
- Enclosing interface:
- VpcAttributes
@Stability(Stable)
public static final class VpcAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<VpcAttributes>
A builder for
VpcAttributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZones
(List<String> availabilityZones) Sets the value ofVpcAttributes.getAvailabilityZones()
build()
Builds the configured instance.isolatedSubnetIds
(List<String> isolatedSubnetIds) Sets the value ofVpcAttributes.getIsolatedSubnetIds()
isolatedSubnetNames
(List<String> isolatedSubnetNames) Sets the value ofVpcAttributes.getIsolatedSubnetNames()
isolatedSubnetRouteTableIds
(List<String> isolatedSubnetRouteTableIds) Sets the value ofVpcAttributes.getIsolatedSubnetRouteTableIds()
privateSubnetIds
(List<String> privateSubnetIds) Sets the value ofVpcAttributes.getPrivateSubnetIds()
privateSubnetNames
(List<String> privateSubnetNames) Sets the value ofVpcAttributes.getPrivateSubnetNames()
privateSubnetRouteTableIds
(List<String> privateSubnetRouteTableIds) Sets the value ofVpcAttributes.getPrivateSubnetRouteTableIds()
publicSubnetIds
(List<String> publicSubnetIds) Sets the value ofVpcAttributes.getPublicSubnetIds()
publicSubnetNames
(List<String> publicSubnetNames) Sets the value ofVpcAttributes.getPublicSubnetNames()
publicSubnetRouteTableIds
(List<String> publicSubnetRouteTableIds) Sets the value ofVpcAttributes.getPublicSubnetRouteTableIds()
vpcCidrBlock
(String vpcCidrBlock) Sets the value ofVpcAttributes.getVpcCidrBlock()
Sets the value ofVpcAttributes.getVpcId()
vpnGatewayId
(String vpnGatewayId) Sets the value ofVpcAttributes.getVpnGatewayId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZones
Sets the value ofVpcAttributes.getAvailabilityZones()
- Parameters:
availabilityZones
- List of availability zones for the subnets in this VPC. This parameter is required.- Returns:
this
-
vpcId
Sets the value ofVpcAttributes.getVpcId()
- Parameters:
vpcId
- VPC's identifier. This parameter is required.- Returns:
this
-
isolatedSubnetIds
Sets the value ofVpcAttributes.getIsolatedSubnetIds()
- Parameters:
isolatedSubnetIds
- List of isolated subnet IDs. Must be undefined or match the availability zones in length and order.- Returns:
this
-
isolatedSubnetNames
@Stability(Stable) public VpcAttributes.Builder isolatedSubnetNames(List<String> isolatedSubnetNames) Sets the value ofVpcAttributes.getIsolatedSubnetNames()
- Parameters:
isolatedSubnetNames
- List of names for the isolated subnets. Must be undefined or have a name for every isolated subnet group.- Returns:
this
-
isolatedSubnetRouteTableIds
@Stability(Stable) public VpcAttributes.Builder isolatedSubnetRouteTableIds(List<String> isolatedSubnetRouteTableIds) Sets the value ofVpcAttributes.getIsolatedSubnetRouteTableIds()
- Parameters:
isolatedSubnetRouteTableIds
- List of IDs of routing tables for the isolated subnets. Must be undefined or have a name for every isolated subnet group.- Returns:
this
-
privateSubnetIds
Sets the value ofVpcAttributes.getPrivateSubnetIds()
- Parameters:
privateSubnetIds
- List of private subnet IDs. Must be undefined or match the availability zones in length and order.- Returns:
this
-
privateSubnetNames
Sets the value ofVpcAttributes.getPrivateSubnetNames()
- Parameters:
privateSubnetNames
- List of names for the private subnets. Must be undefined or have a name for every private subnet group.- Returns:
this
-
privateSubnetRouteTableIds
@Stability(Stable) public VpcAttributes.Builder privateSubnetRouteTableIds(List<String> privateSubnetRouteTableIds) Sets the value ofVpcAttributes.getPrivateSubnetRouteTableIds()
- Parameters:
privateSubnetRouteTableIds
- List of IDs of routing tables for the private subnets. Must be undefined or have a name for every private subnet group.- Returns:
this
-
publicSubnetIds
Sets the value ofVpcAttributes.getPublicSubnetIds()
- Parameters:
publicSubnetIds
- List of public subnet IDs. Must be undefined or match the availability zones in length and order.- Returns:
this
-
publicSubnetNames
Sets the value ofVpcAttributes.getPublicSubnetNames()
- Parameters:
publicSubnetNames
- List of names for the public subnets. Must be undefined or have a name for every public subnet group.- Returns:
this
-
publicSubnetRouteTableIds
@Stability(Stable) public VpcAttributes.Builder publicSubnetRouteTableIds(List<String> publicSubnetRouteTableIds) Sets the value ofVpcAttributes.getPublicSubnetRouteTableIds()
- Parameters:
publicSubnetRouteTableIds
- List of IDs of routing tables for the public subnets. Must be undefined or have a name for every public subnet group.- Returns:
this
-
vpcCidrBlock
Sets the value ofVpcAttributes.getVpcCidrBlock()
- Parameters:
vpcCidrBlock
- VPC's CIDR range.- Returns:
this
-
vpnGatewayId
Sets the value ofVpcAttributes.getVpnGatewayId()
- Parameters:
vpnGatewayId
- VPN gateway's identifier.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VpcAttributes>
- Returns:
- a new instance of
VpcAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-