Class CfnNatGateway.AvailabilityZoneAddressProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnNatGateway.AvailabilityZoneAddressProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNatGateway.AvailabilityZoneAddressProperty>
- Enclosing interface:
CfnNatGateway.AvailabilityZoneAddressProperty
@Stability(Stable)
public static final class CfnNatGateway.AvailabilityZoneAddressProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNatGateway.AvailabilityZoneAddressProperty>
A builder for
CfnNatGateway.AvailabilityZoneAddressProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocationIds(List<String> allocationIds) Sets the value ofCfnNatGateway.AvailabilityZoneAddressProperty.getAllocationIds()availabilityZone(String availabilityZone) Sets the value ofCfnNatGateway.AvailabilityZoneAddressProperty.getAvailabilityZone()availabilityZoneId(String availabilityZoneId) Sets the value ofCfnNatGateway.AvailabilityZoneAddressProperty.getAvailabilityZoneId()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocationIds
@Stability(Stable) public CfnNatGateway.AvailabilityZoneAddressProperty.Builder allocationIds(List<String> allocationIds) Sets the value ofCfnNatGateway.AvailabilityZoneAddressProperty.getAllocationIds()- Parameters:
allocationIds- The allocation IDs of the Elastic IP addresses (EIPs) to be used for handling outbound NAT traffic in this specific Availability Zone. This parameter is required.- Returns:
this
-
availabilityZone
@Stability(Stable) public CfnNatGateway.AvailabilityZoneAddressProperty.Builder availabilityZone(String availabilityZone) Sets the value ofCfnNatGateway.AvailabilityZoneAddressProperty.getAvailabilityZone()- Parameters:
availabilityZone- For regional NAT gateways only: The Availability Zone where this specific NAT gateway configuration will be active. Each AZ in a regional NAT gateway has its own configuration to handle outbound NAT traffic from that AZ.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.
- Returns:
this
-
availabilityZoneId
@Stability(Stable) public CfnNatGateway.AvailabilityZoneAddressProperty.Builder availabilityZoneId(String availabilityZoneId) Sets the value ofCfnNatGateway.AvailabilityZoneAddressProperty.getAvailabilityZoneId()- Parameters:
availabilityZoneId- For regional NAT gateways only: The ID of the Availability Zone where this specific NAT gateway configuration will be active. Each AZ in a regional NAT gateway has its own configuration to handle outbound NAT traffic from that AZ. Use this instead of AvailabilityZone for consistent identification of AZs across AWS Regions.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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNatGateway.AvailabilityZoneAddressProperty>- Returns:
- a new instance of
CfnNatGateway.AvailabilityZoneAddressProperty - Throws:
NullPointerException- if any required attribute was not provided
-