Class AvailabilityZoneAddress.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.AvailabilityZoneAddress.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AvailabilityZoneAddress>
- Enclosing interface:
AvailabilityZoneAddress
@Stability(Stable)
public static final class AvailabilityZoneAddress.Builder
extends Object
implements software.amazon.jsii.Builder<AvailabilityZoneAddress>
A builder for
AvailabilityZoneAddress-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocationIds(List<String> allocationIds) Sets the value ofAvailabilityZoneAddress.getAllocationIds()availabilityZone(String availabilityZone) Sets the value ofAvailabilityZoneAddress.getAvailabilityZone()availabilityZoneId(String availabilityZoneId) Sets the value ofAvailabilityZoneAddress.getAvailabilityZoneId()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocationIds
Sets the value ofAvailabilityZoneAddress.getAllocationIds()- Parameters:
allocationIds- The allocation IDs of the Elastic IP addresses to be used for handling outbound NAT traffic in this specific Availability Zone. This parameter is required.- Returns:
this
-
availabilityZone
Sets the value ofAvailabilityZoneAddress.getAvailabilityZone()- Parameters:
availabilityZone- The Availability Zone where this specific NAT gateway configuration will be active. EitheravailabilityZoneoravailabilityZoneIdmust be specified.- Returns:
this
-
availabilityZoneId
@Stability(Stable) public AvailabilityZoneAddress.Builder availabilityZoneId(String availabilityZoneId) Sets the value ofAvailabilityZoneAddress.getAvailabilityZoneId()- Parameters:
availabilityZoneId- The ID of the Availability Zone where this specific NAT gateway configuration will be active. EitheravailabilityZoneoravailabilityZoneIdmust be specified.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AvailabilityZoneAddress>- Returns:
- a new instance of
AvailabilityZoneAddress - Throws:
NullPointerException- if any required attribute was not provided
-