Class CfnNatGatewayMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNatGatewayMixinProps>
- Enclosing interface:
CfnNatGatewayMixinProps
CfnNatGatewayMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocationId(String allocationId) Sets the value ofCfnNatGatewayMixinProps.getAllocationId()availabilityMode(String availabilityMode) Sets the value ofCfnNatGatewayMixinProps.getAvailabilityMode()availabilityZoneAddresses(List<? extends Object> availabilityZoneAddresses) Sets the value ofCfnNatGatewayMixinProps.getAvailabilityZoneAddresses()availabilityZoneAddresses(IResolvable availabilityZoneAddresses) Sets the value ofCfnNatGatewayMixinProps.getAvailabilityZoneAddresses()build()Builds the configured instance.connectivityType(String connectivityType) Sets the value ofCfnNatGatewayMixinProps.getConnectivityType()maxDrainDurationSeconds(Number maxDrainDurationSeconds) Sets the value ofCfnNatGatewayMixinProps.getMaxDrainDurationSeconds()privateIpAddress(String privateIpAddress) Sets the value ofCfnNatGatewayMixinProps.getPrivateIpAddress()secondaryAllocationIds(List<String> secondaryAllocationIds) Sets the value ofCfnNatGatewayMixinProps.getSecondaryAllocationIds()secondaryPrivateIpAddressCount(Number secondaryPrivateIpAddressCount) Sets the value ofCfnNatGatewayMixinProps.getSecondaryPrivateIpAddressCount()secondaryPrivateIpAddresses(List<String> secondaryPrivateIpAddresses) Sets the value ofCfnNatGatewayMixinProps.getSecondaryPrivateIpAddresses()Sets the value ofCfnNatGatewayMixinProps.getSubnetId()Sets the value ofCfnNatGatewayMixinProps.getTags()Sets the value ofCfnNatGatewayMixinProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocationId
Sets the value ofCfnNatGatewayMixinProps.getAllocationId()- Parameters:
allocationId- [Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway. This property is required for a public NAT gateway and cannot be specified with a private NAT gateway.- Returns:
this
-
availabilityMode
Sets the value ofCfnNatGatewayMixinProps.getAvailabilityMode()- Parameters:
availabilityMode- Indicates whether this is a zonal (single-AZ) or regional (multi-AZ) NAT gateway. A zonal NAT gateway is a NAT Gateway that provides redundancy and scalability within a single availability zone. A regional NAT gateway is a single NAT Gateway that works across multiple availability zones (AZs) in your VPC, providing redundancy, scalability and availability across all the AZs in a Region.For more information, see Regional NAT gateways for automatic multi-AZ expansion in the Amazon VPC User Guide .
- Returns:
this
-
availabilityZoneAddresses
@Stability(Stable) public CfnNatGatewayMixinProps.Builder availabilityZoneAddresses(IResolvable availabilityZoneAddresses) Sets the value ofCfnNatGatewayMixinProps.getAvailabilityZoneAddresses()- Parameters:
availabilityZoneAddresses- For regional NAT gateways only: Specifies which Availability Zones you want the NAT gateway to support and the Elastic IP addresses (EIPs) to use in each AZ. The regional NAT gateway uses these EIPs to handle outbound NAT traffic from their respective AZs. If not specified, the NAT gateway will automatically expand to new AZs and associate EIPs upon detection of an elastic network interface. If you specify this parameter, auto-expansion is disabled and you must manually manage AZ coverage.A regional NAT gateway is a single NAT Gateway that works across multiple availability zones (AZs) in your VPC, providing redundancy, scalability and availability across all the AZs in a Region.
For more information, see Regional NAT gateways for automatic multi-AZ expansion in the Amazon VPC User Guide .
- Returns:
this
-
availabilityZoneAddresses
@Stability(Stable) public CfnNatGatewayMixinProps.Builder availabilityZoneAddresses(List<? extends Object> availabilityZoneAddresses) Sets the value ofCfnNatGatewayMixinProps.getAvailabilityZoneAddresses()- Parameters:
availabilityZoneAddresses- For regional NAT gateways only: Specifies which Availability Zones you want the NAT gateway to support and the Elastic IP addresses (EIPs) to use in each AZ. The regional NAT gateway uses these EIPs to handle outbound NAT traffic from their respective AZs. If not specified, the NAT gateway will automatically expand to new AZs and associate EIPs upon detection of an elastic network interface. If you specify this parameter, auto-expansion is disabled and you must manually manage AZ coverage.A regional NAT gateway is a single NAT Gateway that works across multiple availability zones (AZs) in your VPC, providing redundancy, scalability and availability across all the AZs in a Region.
For more information, see Regional NAT gateways for automatic multi-AZ expansion in the Amazon VPC User Guide .
- Returns:
this
-
connectivityType
Sets the value ofCfnNatGatewayMixinProps.getConnectivityType()- Parameters:
connectivityType- Indicates whether the NAT gateway supports public or private connectivity. The default is public connectivity.- Returns:
this
-
maxDrainDurationSeconds
@Stability(Stable) public CfnNatGatewayMixinProps.Builder maxDrainDurationSeconds(Number maxDrainDurationSeconds) Sets the value ofCfnNatGatewayMixinProps.getMaxDrainDurationSeconds()- Parameters:
maxDrainDurationSeconds- The maximum amount of time to wait (in seconds) before forcibly releasing the IP addresses if connections are still in progress. Default value is 350 seconds.- Returns:
this
-
privateIpAddress
Sets the value ofCfnNatGatewayMixinProps.getPrivateIpAddress()- Parameters:
privateIpAddress- The private IPv4 address to assign to the NAT gateway. If you don't provide an address, a private IPv4 address will be automatically assigned.- Returns:
this
-
secondaryAllocationIds
@Stability(Stable) public CfnNatGatewayMixinProps.Builder secondaryAllocationIds(List<String> secondaryAllocationIds) Sets the value ofCfnNatGatewayMixinProps.getSecondaryAllocationIds()- Parameters:
secondaryAllocationIds- Secondary EIP allocation IDs. For more information, see Create a NAT gateway in the Amazon VPC User Guide .- Returns:
this
-
secondaryPrivateIpAddressCount
@Stability(Stable) public CfnNatGatewayMixinProps.Builder secondaryPrivateIpAddressCount(Number secondaryPrivateIpAddressCount) Sets the value ofCfnNatGatewayMixinProps.getSecondaryPrivateIpAddressCount()- Parameters:
secondaryPrivateIpAddressCount- [Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway. For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide .SecondaryPrivateIpAddressCountandSecondaryPrivateIpAddressescannot be set at the same time.- Returns:
this
-
secondaryPrivateIpAddresses
@Stability(Stable) public CfnNatGatewayMixinProps.Builder secondaryPrivateIpAddresses(List<String> secondaryPrivateIpAddresses) Sets the value ofCfnNatGatewayMixinProps.getSecondaryPrivateIpAddresses()- Parameters:
secondaryPrivateIpAddresses- Secondary private IPv4 addresses. For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide .SecondaryPrivateIpAddressCountandSecondaryPrivateIpAddressescannot be set at the same time.- Returns:
this
-
subnetId
Sets the value ofCfnNatGatewayMixinProps.getSubnetId()- Parameters:
subnetId- The ID of the subnet in which the NAT gateway is located.- Returns:
this
-
tags
Sets the value ofCfnNatGatewayMixinProps.getTags()- Parameters:
tags- The tags for the NAT gateway.- Returns:
this
-
vpcId
Sets the value ofCfnNatGatewayMixinProps.getVpcId()- Parameters:
vpcId- The ID of the VPC in which the NAT gateway is located.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNatGatewayMixinProps>- Returns:
- a new instance of
CfnNatGatewayMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-