Package software.amazon.awscdk.cxapi
Class VpcContextResponse.Builder
java.lang.Object
software.amazon.awscdk.cxapi.VpcContextResponse.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcContextResponse>
- Enclosing interface:
VpcContextResponse
@Stability(Stable)
public static final class VpcContextResponse.Builder
extends Object
implements software.amazon.jsii.Builder<VpcContextResponse>
A builder for
VpcContextResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZones
(List<String> availabilityZones) Sets the value ofVpcContextResponse.getAvailabilityZones()
build()
Builds the configured instance.isolatedSubnetIds
(List<String> isolatedSubnetIds) Sets the value ofVpcContextResponse.getIsolatedSubnetIds()
isolatedSubnetNames
(List<String> isolatedSubnetNames) Sets the value ofVpcContextResponse.getIsolatedSubnetNames()
isolatedSubnetRouteTableIds
(List<String> isolatedSubnetRouteTableIds) Sets the value ofVpcContextResponse.getIsolatedSubnetRouteTableIds()
privateSubnetIds
(List<String> privateSubnetIds) Sets the value ofVpcContextResponse.getPrivateSubnetIds()
privateSubnetNames
(List<String> privateSubnetNames) Sets the value ofVpcContextResponse.getPrivateSubnetNames()
privateSubnetRouteTableIds
(List<String> privateSubnetRouteTableIds) Sets the value ofVpcContextResponse.getPrivateSubnetRouteTableIds()
publicSubnetIds
(List<String> publicSubnetIds) Sets the value ofVpcContextResponse.getPublicSubnetIds()
publicSubnetNames
(List<String> publicSubnetNames) Sets the value ofVpcContextResponse.getPublicSubnetNames()
publicSubnetRouteTableIds
(List<String> publicSubnetRouteTableIds) Sets the value ofVpcContextResponse.getPublicSubnetRouteTableIds()
subnetGroups
(List<? extends VpcSubnetGroup> subnetGroups) Sets the value ofVpcContextResponse.getSubnetGroups()
vpcCidrBlock
(String vpcCidrBlock) Sets the value ofVpcContextResponse.getVpcCidrBlock()
Sets the value ofVpcContextResponse.getVpcId()
vpnGatewayId
(String vpnGatewayId) Sets the value ofVpcContextResponse.getVpnGatewayId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZones
@Stability(Stable) public VpcContextResponse.Builder availabilityZones(List<String> availabilityZones) Sets the value ofVpcContextResponse.getAvailabilityZones()
- Parameters:
availabilityZones
- AZs. This parameter is required.- Returns:
this
-
vpcId
Sets the value ofVpcContextResponse.getVpcId()
- Parameters:
vpcId
- VPC id. This parameter is required.- Returns:
this
-
isolatedSubnetIds
@Stability(Stable) public VpcContextResponse.Builder isolatedSubnetIds(List<String> isolatedSubnetIds) Sets the value ofVpcContextResponse.getIsolatedSubnetIds()
- Parameters:
isolatedSubnetIds
- IDs of all isolated subnets. Element count: #(availabilityZones) · #(isolatedGroups)- Returns:
this
-
isolatedSubnetNames
@Stability(Stable) public VpcContextResponse.Builder isolatedSubnetNames(List<String> isolatedSubnetNames) Sets the value ofVpcContextResponse.getIsolatedSubnetNames()
- Parameters:
isolatedSubnetNames
- Name of isolated subnet groups. Element count: #(isolatedGroups)- Returns:
this
-
isolatedSubnetRouteTableIds
@Stability(Stable) public VpcContextResponse.Builder isolatedSubnetRouteTableIds(List<String> isolatedSubnetRouteTableIds) Sets the value ofVpcContextResponse.getIsolatedSubnetRouteTableIds()
- Parameters:
isolatedSubnetRouteTableIds
- Route Table IDs of isolated subnet groups. Element count: #(availabilityZones) · #(isolatedGroups)- Returns:
this
-
privateSubnetIds
@Stability(Stable) public VpcContextResponse.Builder privateSubnetIds(List<String> privateSubnetIds) Sets the value ofVpcContextResponse.getPrivateSubnetIds()
- Parameters:
privateSubnetIds
- IDs of all private subnets. Element count: #(availabilityZones) · #(privateGroups)- Returns:
this
-
privateSubnetNames
@Stability(Stable) public VpcContextResponse.Builder privateSubnetNames(List<String> privateSubnetNames) Sets the value ofVpcContextResponse.getPrivateSubnetNames()
- Parameters:
privateSubnetNames
- Name of private subnet groups. Element count: #(privateGroups)- Returns:
this
-
privateSubnetRouteTableIds
@Stability(Stable) public VpcContextResponse.Builder privateSubnetRouteTableIds(List<String> privateSubnetRouteTableIds) Sets the value ofVpcContextResponse.getPrivateSubnetRouteTableIds()
- Parameters:
privateSubnetRouteTableIds
- Route Table IDs of private subnet groups. Element count: #(availabilityZones) · #(privateGroups)- Returns:
this
-
publicSubnetIds
Sets the value ofVpcContextResponse.getPublicSubnetIds()
- Parameters:
publicSubnetIds
- IDs of all public subnets. Element count: #(availabilityZones) · #(publicGroups)- Returns:
this
-
publicSubnetNames
@Stability(Stable) public VpcContextResponse.Builder publicSubnetNames(List<String> publicSubnetNames) Sets the value ofVpcContextResponse.getPublicSubnetNames()
- Parameters:
publicSubnetNames
- Name of public subnet groups. Element count: #(publicGroups)- Returns:
this
-
publicSubnetRouteTableIds
@Stability(Stable) public VpcContextResponse.Builder publicSubnetRouteTableIds(List<String> publicSubnetRouteTableIds) Sets the value ofVpcContextResponse.getPublicSubnetRouteTableIds()
- Parameters:
publicSubnetRouteTableIds
- Route Table IDs of public subnet groups. Element count: #(availabilityZones) · #(publicGroups)- Returns:
this
-
subnetGroups
@Stability(Stable) public VpcContextResponse.Builder subnetGroups(List<? extends VpcSubnetGroup> subnetGroups) Sets the value ofVpcContextResponse.getSubnetGroups()
- Parameters:
subnetGroups
- The subnet groups discovered for the given VPC. Unlike the above properties, this will include asymmetric subnets, if the VPC has any. This property will only be populated ifinvalid @link
VpcContextQuery.returnAsymmetricSubnets
- Returns:
this
-
vpcCidrBlock
Sets the value ofVpcContextResponse.getVpcCidrBlock()
- Parameters:
vpcCidrBlock
- VPC cidr.- Returns:
this
-
vpnGatewayId
Sets the value ofVpcContextResponse.getVpnGatewayId()
- Parameters:
vpnGatewayId
- The VPN gateway ID.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VpcContextResponse>
- Returns:
- a new instance of
VpcContextResponse
- Throws:
NullPointerException
- if any required attribute was not provided
-