Class NatGatewayAddress
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.NatGatewayAddress
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<NatGatewayAddress.Builder,NatGatewayAddress>
@Generated("software.amazon.awssdk:codegen") public final class NatGatewayAddress extends Object implements SdkPojo, Serializable, ToCopyableBuilder<NatGatewayAddress.Builder,NatGatewayAddress>
Describes the IP addresses and network interface associated with a NAT gateway.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNatGatewayAddress.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringallocationId()[Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.StringassociationId()[Public NAT gateway only] The association ID of the Elastic IP address that's associated with the NAT gateway.StringavailabilityZone()The Availability Zone where this Elastic IP address (EIP) is being used to handle outbound NAT traffic.StringavailabilityZoneId()The ID of the Availability Zone where this Elastic IP address (EIP) is being used to handle outbound NAT traffic.static NatGatewayAddress.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfailureMessage()The address failure message.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleanisPrimary()Defines if the IP address is the primary address.StringnetworkInterfaceId()The ID of the network interface associated with the NAT gateway.StringprivateIp()The private IP address associated with the NAT gateway.StringpublicIp()[Public NAT gateway only] The Elastic IP address associated with the NAT gateway.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends NatGatewayAddress.Builder>serializableBuilderClass()NatGatewayAddressStatusstatus()The address status.StringstatusAsString()The address status.NatGatewayAddress.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
allocationId
public final String allocationId()
[Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.
- Returns:
- [Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.
-
networkInterfaceId
public final String networkInterfaceId()
The ID of the network interface associated with the NAT gateway.
- Returns:
- The ID of the network interface associated with the NAT gateway.
-
privateIp
public final String privateIp()
The private IP address associated with the NAT gateway.
- Returns:
- The private IP address associated with the NAT gateway.
-
publicIp
public final String publicIp()
[Public NAT gateway only] The Elastic IP address associated with the NAT gateway.
- Returns:
- [Public NAT gateway only] The Elastic IP address associated with the NAT gateway.
-
associationId
public final String associationId()
[Public NAT gateway only] The association ID of the Elastic IP address that's associated with the NAT gateway.
- Returns:
- [Public NAT gateway only] The association ID of the Elastic IP address that's associated with the NAT gateway.
-
isPrimary
public final Boolean isPrimary()
Defines if the IP address is the primary address.
- Returns:
- Defines if the IP address is the primary address.
-
failureMessage
public final String failureMessage()
The address failure message.
- Returns:
- The address failure message.
-
status
public final NatGatewayAddressStatus status()
The address status.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnNatGatewayAddressStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The address status.
- See Also:
NatGatewayAddressStatus
-
statusAsString
public final String statusAsString()
The address status.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnNatGatewayAddressStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The address status.
- See Also:
NatGatewayAddressStatus
-
availabilityZone
public final String availabilityZone()
The Availability Zone where this Elastic IP address (EIP) is being used to handle outbound NAT traffic.
- Returns:
- The Availability Zone where this Elastic IP address (EIP) is being used to handle outbound NAT traffic.
-
availabilityZoneId
public final String availabilityZoneId()
The ID of the Availability Zone where this Elastic IP address (EIP) is being used to handle outbound NAT traffic. Use this instead of AvailabilityZone for consistent identification of AZs across Amazon Web Services Regions.
- Returns:
- The ID of the Availability Zone where this Elastic IP address (EIP) is being used to handle outbound NAT traffic. Use this instead of AvailabilityZone for consistent identification of AZs across Amazon Web Services Regions.
-
toBuilder
public NatGatewayAddress.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<NatGatewayAddress.Builder,NatGatewayAddress>
-
builder
public static NatGatewayAddress.Builder builder()
-
serializableBuilderClass
public static Class<? extends NatGatewayAddress.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-