public static interface NatGateway.Builder extends CopyableBuilder<NatGateway.Builder,NatGateway>
| Modifier and Type | Method and Description |
|---|---|
NatGateway.Builder |
createTime(Instant createTime)
The date and time the NAT gateway was created.
|
NatGateway.Builder |
deleteTime(Instant deleteTime)
The date and time the NAT gateway was deleted, if applicable.
|
NatGateway.Builder |
failureCode(String failureCode)
If the NAT gateway could not be created, specifies the error code for the failure.
|
NatGateway.Builder |
failureMessage(String failureMessage)
If the NAT gateway could not be created, specifies the error message for the failure, that corresponds to the
error code.
|
NatGateway.Builder |
natGatewayAddresses(Collection<NatGatewayAddress> natGatewayAddresses)
Information about the IP addresses and network interface associated with the NAT gateway.
|
NatGateway.Builder |
natGatewayAddresses(Consumer<NatGatewayAddress.Builder>... natGatewayAddresses)
Information about the IP addresses and network interface associated with the NAT gateway.
|
NatGateway.Builder |
natGatewayAddresses(NatGatewayAddress... natGatewayAddresses)
Information about the IP addresses and network interface associated with the NAT gateway.
|
NatGateway.Builder |
natGatewayId(String natGatewayId)
The ID of the NAT gateway.
|
default NatGateway.Builder |
provisionedBandwidth(Consumer<ProvisionedBandwidth.Builder> provisionedBandwidth)
Reserved.
|
NatGateway.Builder |
provisionedBandwidth(ProvisionedBandwidth provisionedBandwidth)
Reserved.
|
NatGateway.Builder |
state(NatGatewayState state)
The state of the NAT gateway.
|
NatGateway.Builder |
state(String state)
The state of the NAT gateway.
|
NatGateway.Builder |
subnetId(String subnetId)
The ID of the subnet in which the NAT gateway is located.
|
NatGateway.Builder |
tags(Collection<Tag> tags)
The tags for the NAT gateway.
|
NatGateway.Builder |
tags(Consumer<Tag.Builder>... tags)
The tags for the NAT gateway.
|
NatGateway.Builder |
tags(Tag... tags)
The tags for the NAT gateway.
|
NatGateway.Builder |
vpcId(String vpcId)
The ID of the VPC in which the NAT gateway is located.
|
copyapply, buildNatGateway.Builder createTime(Instant createTime)
The date and time the NAT gateway was created.
createTime - The date and time the NAT gateway was created.NatGateway.Builder deleteTime(Instant deleteTime)
The date and time the NAT gateway was deleted, if applicable.
deleteTime - The date and time the NAT gateway was deleted, if applicable.NatGateway.Builder failureCode(String 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)
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)NatGateway.Builder failureMessage(String 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."
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."
NatGateway.Builder natGatewayAddresses(Collection<NatGatewayAddress> natGatewayAddresses)
Information about the IP addresses and network interface associated with the NAT gateway.
natGatewayAddresses - Information about the IP addresses and network interface associated with the NAT gateway.NatGateway.Builder natGatewayAddresses(NatGatewayAddress... natGatewayAddresses)
Information about the IP addresses and network interface associated with the NAT gateway.
natGatewayAddresses - Information about the IP addresses and network interface associated with the NAT gateway.NatGateway.Builder natGatewayAddresses(Consumer<NatGatewayAddress.Builder>... natGatewayAddresses)
Information about the IP addresses and network interface associated with the NAT gateway.
This is a convenience that creates an instance of theList.Builder avoiding the
need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately
and its result is passed to #natGatewayAddresses(List) .natGatewayAddresses - a consumer that will call methods on List.Builder #natGatewayAddresses(List) NatGateway.Builder natGatewayId(String natGatewayId)
The ID of the NAT gateway.
natGatewayId - The ID of the NAT gateway.NatGateway.Builder provisionedBandwidth(ProvisionedBandwidth provisionedBandwidth)
Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.
provisionedBandwidth - Reserved. If you need to sustain traffic greater than the documented
limits, contact us through the Support
Center.default NatGateway.Builder provisionedBandwidth(Consumer<ProvisionedBandwidth.Builder> provisionedBandwidth)
Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.
This is a convenience that creates an instance of theProvisionedBandwidth.Builder avoiding the need
to create one manually via ProvisionedBandwidth.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to provisionedBandwidth(ProvisionedBandwidth).provisionedBandwidth - a consumer that will call methods on ProvisionedBandwidth.BuilderprovisionedBandwidth(ProvisionedBandwidth)NatGateway.Builder state(String 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 the failureCode and
failureMessage fields 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.
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 the failureCode and
failureMessage fields 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.
NatGatewayState,
NatGatewayStateNatGateway.Builder state(NatGatewayState 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 the failureCode and
failureMessage fields 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.
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 the failureCode and
failureMessage fields 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.
NatGatewayState,
NatGatewayStateNatGateway.Builder subnetId(String subnetId)
The ID of the subnet in which the NAT gateway is located.
subnetId - The ID of the subnet in which the NAT gateway is located.NatGateway.Builder vpcId(String vpcId)
The ID of the VPC in which the NAT gateway is located.
vpcId - The ID of the VPC in which the NAT gateway is located.NatGateway.Builder tags(Collection<Tag> tags)
The tags for the NAT gateway.
tags - The tags for the NAT gateway.NatGateway.Builder tags(Tag... tags)
The tags for the NAT gateway.
tags - The tags for the NAT gateway.NatGateway.Builder tags(Consumer<Tag.Builder>... tags)
The tags for the NAT gateway.
This is a convenience that creates an instance of theList.Builder avoiding the need to create
one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its result
is passed to #tags(List) .tags - a consumer that will call methods on List.Builder #tags(List) Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.