Interface NatGateway.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<NatGateway.Builder,,NatGateway> SdkBuilder<NatGateway.Builder,,NatGateway> SdkPojo
- Enclosing class:
NatGateway
-
Method Summary
Modifier and TypeMethodDescriptionattachedAppliances(Collection<NatGatewayAttachedAppliance> attachedAppliances) The proxy appliances attached to the NAT Gateway for filtering and inspecting traffic to prevent data exfiltration.attachedAppliances(Consumer<NatGatewayAttachedAppliance.Builder>... attachedAppliances) The proxy appliances attached to the NAT Gateway for filtering and inspecting traffic to prevent data exfiltration.attachedAppliances(NatGatewayAttachedAppliance... attachedAppliances) The proxy appliances attached to the NAT Gateway for filtering and inspecting traffic to prevent data exfiltration.autoProvisionZones(String autoProvisionZones) For regional NAT gateways only: Indicates whether Amazon Web Services automatically manages AZ coverage.autoProvisionZones(AutoProvisionZonesState autoProvisionZones) For regional NAT gateways only: Indicates whether Amazon Web Services automatically manages AZ coverage.autoScalingIps(String autoScalingIps) For regional NAT gateways only: Indicates whether Amazon Web Services automatically allocates additional Elastic IP addresses (EIPs) in an AZ when the NAT gateway needs more ports due to increased concurrent connections to a single destination from that AZ.autoScalingIps(AutoScalingIpsState autoScalingIps) For regional NAT gateways only: Indicates whether Amazon Web Services automatically allocates additional Elastic IP addresses (EIPs) in an AZ when the NAT gateway needs more ports due to increased concurrent connections to a single destination from that AZ.availabilityMode(String availabilityMode) Indicates whether this is a zonal (single-AZ) or regional (multi-AZ) NAT gateway.availabilityMode(AvailabilityMode availabilityMode) Indicates whether this is a zonal (single-AZ) or regional (multi-AZ) NAT gateway.connectivityType(String connectivityType) Indicates whether the NAT gateway supports public or private connectivity.connectivityType(ConnectivityType connectivityType) Indicates whether the NAT gateway supports public or private connectivity.createTime(Instant createTime) The date and time the NAT gateway was created.deleteTime(Instant deleteTime) The date and time the NAT gateway was deleted, if applicable.failureCode(String failureCode) If the NAT gateway could not be created, specifies the error code for the failure.failureMessage(String failureMessage) If the NAT gateway could not be created, specifies the error message for the failure, that corresponds to the error code.natGatewayAddresses(Collection<NatGatewayAddress> natGatewayAddresses) Information about the IP addresses and network interface associated with the NAT gateway.natGatewayAddresses(Consumer<NatGatewayAddress.Builder>... natGatewayAddresses) Information about the IP addresses and network interface associated with the NAT gateway.natGatewayAddresses(NatGatewayAddress... natGatewayAddresses) Information about the IP addresses and network interface associated with the NAT gateway.natGatewayId(String natGatewayId) The ID of the NAT gateway.default NatGateway.BuilderprovisionedBandwidth(Consumer<ProvisionedBandwidth.Builder> provisionedBandwidth) Reserved.provisionedBandwidth(ProvisionedBandwidth provisionedBandwidth) Reserved.routeTableId(String routeTableId) For regional NAT gateways only, this is the ID of the NAT gateway.The state of the NAT gateway.state(NatGatewayState state) The state of the NAT gateway.The ID of the subnet in which the NAT gateway is located.tags(Collection<Tag> tags) The tags for the NAT gateway.tags(Consumer<Tag.Builder>... tags) The tags for the NAT gateway.The tags for the NAT gateway.The ID of the VPC in which the NAT gateway is located.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
createTime
The date and time the NAT gateway was created.
- Parameters:
createTime- The date and time the NAT gateway was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deleteTime
The date and time the NAT gateway was deleted, if applicable.
- Parameters:
deleteTime- The date and time the NAT gateway was deleted, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureCode
If the NAT gateway could not be created, specifies the error code for the failure. (
InsufficientFreeAddressesInSubnet|Gateway.NotAttached|InvalidAllocationID.NotFound|Resource.AlreadyAssociated|InternalError|InvalidSubnetID.NotFound)- Parameters:
failureCode- If the NAT gateway could not be created, specifies the error code for the failure. (InsufficientFreeAddressesInSubnet|Gateway.NotAttached|InvalidAllocationID.NotFound|Resource.AlreadyAssociated|InternalError|InvalidSubnetID.NotFound)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureMessage
If the NAT gateway could not be created, specifies the error message for the failure, that corresponds to the error code.
-
For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses to create this NAT gateway"
-
For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway attached"
-
For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway"
-
For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx is already associated"
-
For InternalError: "Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again."
-
For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does not exist or could not be found."
- Parameters:
failureMessage- If the NAT gateway could not be created, specifies the error message for the failure, that corresponds to the error code.-
For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses to create this NAT gateway"
-
For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway attached"
-
For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway"
-
For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx is already associated"
-
For InternalError: "Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again."
-
For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does not exist or could not be found."
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
natGatewayAddresses
Information about the IP addresses and network interface associated with the NAT gateway.
- Parameters:
natGatewayAddresses- Information about the IP addresses and network interface associated with the NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
natGatewayAddresses
Information about the IP addresses and network interface associated with the NAT gateway.
- Parameters:
natGatewayAddresses- Information about the IP addresses and network interface associated with the NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
natGatewayAddresses
Information about the IP addresses and network interface associated with the NAT gateway.
This is a convenience method that creates an instance of theNatGatewayAddress.Builderavoiding the need to create one manually viaNatGatewayAddress.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonatGatewayAddresses(List<NatGatewayAddress>).- Parameters:
natGatewayAddresses- a consumer that will call methods onNatGatewayAddress.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
natGatewayId
The ID of the NAT gateway.
- Parameters:
natGatewayId- The ID of the NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
provisionedBandwidth
Reserved. If you need to sustain traffic greater than the documented limits, contact Amazon Web Services Support.
- Parameters:
provisionedBandwidth- Reserved. If you need to sustain traffic greater than the documented limits, contact Amazon Web Services Support.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
provisionedBandwidth
default NatGateway.Builder provisionedBandwidth(Consumer<ProvisionedBandwidth.Builder> provisionedBandwidth) Reserved. If you need to sustain traffic greater than the documented limits, contact Amazon Web Services Support.
This is a convenience method that creates an instance of theProvisionedBandwidth.Builderavoiding the need to create one manually viaProvisionedBandwidth.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprovisionedBandwidth(ProvisionedBandwidth).- Parameters:
provisionedBandwidth- a consumer that will call methods onProvisionedBandwidth.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the NAT gateway.
-
pending: The NAT gateway is being created and is not ready to process traffic. -
failed: The NAT gateway could not be created. Check thefailureCodeandfailureMessagefields for the reason. -
available: The NAT gateway is able to process traffic. This status remains until you delete the NAT gateway, and does not indicate the health of the NAT gateway. -
deleting: The NAT gateway is in the process of being terminated and may still be processing traffic. -
deleted: The NAT gateway has been terminated and is no longer processing traffic.
- Parameters:
state- The state of the NAT gateway.-
pending: The NAT gateway is being created and is not ready to process traffic. -
failed: The NAT gateway could not be created. Check thefailureCodeandfailureMessagefields for the reason. -
available: The NAT gateway is able to process traffic. This status remains until you delete the NAT gateway, and does not indicate the health of the NAT gateway. -
deleting: The NAT gateway is in the process of being terminated and may still be processing traffic. -
deleted: The NAT gateway has been terminated and is no longer processing traffic.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
state
The state of the NAT gateway.
-
pending: The NAT gateway is being created and is not ready to process traffic. -
failed: The NAT gateway could not be created. Check thefailureCodeandfailureMessagefields for the reason. -
available: The NAT gateway is able to process traffic. This status remains until you delete the NAT gateway, and does not indicate the health of the NAT gateway. -
deleting: The NAT gateway is in the process of being terminated and may still be processing traffic. -
deleted: The NAT gateway has been terminated and is no longer processing traffic.
- Parameters:
state- The state of the NAT gateway.-
pending: The NAT gateway is being created and is not ready to process traffic. -
failed: The NAT gateway could not be created. Check thefailureCodeandfailureMessagefields for the reason. -
available: The NAT gateway is able to process traffic. This status remains until you delete the NAT gateway, and does not indicate the health of the NAT gateway. -
deleting: The NAT gateway is in the process of being terminated and may still be processing traffic. -
deleted: The NAT gateway has been terminated and is no longer processing traffic.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
subnetId
The ID of the subnet in which the NAT gateway is located.
- Parameters:
subnetId- The ID of the subnet in which the NAT gateway is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
The ID of the VPC in which the NAT gateway is located.
- Parameters:
vpcId- The ID of the VPC in which the NAT gateway is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the NAT gateway.
- Parameters:
tags- The tags for the NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the NAT gateway.
- Parameters:
tags- The tags for the NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the NAT gateway.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
connectivityType
Indicates whether the NAT gateway supports public or private connectivity.
- Parameters:
connectivityType- Indicates whether the NAT gateway supports public or private connectivity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
connectivityType
Indicates whether the NAT gateway supports public or private connectivity.
- Parameters:
connectivityType- Indicates whether the NAT gateway supports public or private connectivity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
autoScalingIps
For regional NAT gateways only: Indicates whether Amazon Web Services automatically allocates additional Elastic IP addresses (EIPs) in an AZ when the NAT gateway needs more ports due to increased concurrent connections to a single destination from that AZ.
For more information, see Regional NAT gateways for automatic multi-AZ expansion in the Amazon VPC User Guide.
- Parameters:
autoScalingIps- For regional NAT gateways only: Indicates whether Amazon Web Services automatically allocates additional Elastic IP addresses (EIPs) in an AZ when the NAT gateway needs more ports due to increased concurrent connections to a single destination from that AZ.For more information, see Regional NAT gateways for automatic multi-AZ expansion in the Amazon VPC User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
autoScalingIps
For regional NAT gateways only: Indicates whether Amazon Web Services automatically allocates additional Elastic IP addresses (EIPs) in an AZ when the NAT gateway needs more ports due to increased concurrent connections to a single destination from that AZ.
For more information, see Regional NAT gateways for automatic multi-AZ expansion in the Amazon VPC User Guide.
- Parameters:
autoScalingIps- For regional NAT gateways only: Indicates whether Amazon Web Services automatically allocates additional Elastic IP addresses (EIPs) in an AZ when the NAT gateway needs more ports due to increased concurrent connections to a single destination from that AZ.For more information, see Regional NAT gateways for automatic multi-AZ expansion in the Amazon VPC User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
autoProvisionZones
For regional NAT gateways only: Indicates whether Amazon Web Services automatically manages AZ coverage. When enabled, the NAT gateway associates EIPs in all AZs where your VPC has subnets to handle outbound NAT traffic, expands to new AZs when you create subnets there, and retracts from AZs where you've removed all subnets. When disabled, you must manually manage which AZs the NAT gateway supports and their corresponding EIPs.
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.
- Parameters:
autoProvisionZones- For regional NAT gateways only: Indicates whether Amazon Web Services automatically manages AZ coverage. When enabled, the NAT gateway associates EIPs in all AZs where your VPC has subnets to handle outbound NAT traffic, expands to new AZs when you create subnets there, and retracts from AZs where you've removed all subnets. When disabled, you must manually manage which AZs the NAT gateway supports and their corresponding EIPs.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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
autoProvisionZones
For regional NAT gateways only: Indicates whether Amazon Web Services automatically manages AZ coverage. When enabled, the NAT gateway associates EIPs in all AZs where your VPC has subnets to handle outbound NAT traffic, expands to new AZs when you create subnets there, and retracts from AZs where you've removed all subnets. When disabled, you must manually manage which AZs the NAT gateway supports and their corresponding EIPs.
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.
- Parameters:
autoProvisionZones- For regional NAT gateways only: Indicates whether Amazon Web Services automatically manages AZ coverage. When enabled, the NAT gateway associates EIPs in all AZs where your VPC has subnets to handle outbound NAT traffic, expands to new AZs when you create subnets there, and retracts from AZs where you've removed all subnets. When disabled, you must manually manage which AZs the NAT gateway supports and their corresponding EIPs.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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
attachedAppliances
The proxy appliances attached to the NAT Gateway for filtering and inspecting traffic to prevent data exfiltration.
- Parameters:
attachedAppliances- The proxy appliances attached to the NAT Gateway for filtering and inspecting traffic to prevent data exfiltration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachedAppliances
The proxy appliances attached to the NAT Gateway for filtering and inspecting traffic to prevent data exfiltration.
- Parameters:
attachedAppliances- The proxy appliances attached to the NAT Gateway for filtering and inspecting traffic to prevent data exfiltration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachedAppliances
NatGateway.Builder attachedAppliances(Consumer<NatGatewayAttachedAppliance.Builder>... attachedAppliances) The proxy appliances attached to the NAT Gateway for filtering and inspecting traffic to prevent data exfiltration.
This is a convenience method that creates an instance of theNatGatewayAttachedAppliance.Builderavoiding the need to create one manually viaNatGatewayAttachedAppliance.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toattachedAppliances(List<NatGatewayAttachedAppliance>).- Parameters:
attachedAppliances- a consumer that will call methods onNatGatewayAttachedAppliance.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
routeTableId
For regional NAT gateways only, this is the ID of the NAT gateway.
- Parameters:
routeTableId- For regional NAT gateways only, this is the ID of the NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-