Class ConfigureNatOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.ConfigureNatOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ConfigureNatOptions>
- Enclosing interface:
- ConfigureNatOptions
@Stability(Stable)
public static final class ConfigureNatOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ConfigureNatOptions>
A builder for
ConfigureNatOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.natSubnets(List<? extends PublicSubnet> natSubnets) Sets the value ofConfigureNatOptions.getNatSubnets()privateSubnets(List<? extends PrivateSubnet> privateSubnets) Sets the value ofConfigureNatOptions.getPrivateSubnets()Sets the value ofConfigureNatOptions.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
natSubnets
@Stability(Stable) public ConfigureNatOptions.Builder natSubnets(List<? extends PublicSubnet> natSubnets) Sets the value ofConfigureNatOptions.getNatSubnets()- Parameters:
natSubnets- The public subnets where the NAT providers need to be placed. This parameter is required.- Returns:
this
-
privateSubnets
@Stability(Stable) public ConfigureNatOptions.Builder privateSubnets(List<? extends PrivateSubnet> privateSubnets) Sets the value ofConfigureNatOptions.getPrivateSubnets()- Parameters:
privateSubnets- The private subnets that need to route through the NAT providers. This parameter is required. There may be more private subnets than public subnets with NAT providers.- Returns:
this
-
vpc
Sets the value ofConfigureNatOptions.getVpc()- Parameters:
vpc- The VPC we're configuring NAT for. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ConfigureNatOptions>- Returns:
- a new instance of
ConfigureNatOptions - Throws:
NullPointerException- if any required attribute was not provided
-