public class NatGatewayAddress
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the IP addresses and network interface associated with a NAT gateway.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
allocationId
The allocation ID of the Elastic IP address that's associated with the
NAT gateway.
|
private java.lang.String |
networkInterfaceId
The ID of the network interface associated with the NAT gateway.
|
private java.lang.String |
privateIp
The private IP address associated with the Elastic IP address.
|
private java.lang.String |
publicIp
The Elastic IP address associated with the NAT gateway.
|
Constructor and Description |
---|
NatGatewayAddress() |
Modifier and Type | Method and Description |
---|---|
NatGatewayAddress |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAllocationId()
The allocation ID of the Elastic IP address that's associated with the
NAT gateway.
|
java.lang.String |
getNetworkInterfaceId()
The ID of the network interface associated with the NAT gateway.
|
java.lang.String |
getPrivateIp()
The private IP address associated with the Elastic IP address.
|
java.lang.String |
getPublicIp()
The Elastic IP address associated with the NAT gateway.
|
int |
hashCode() |
void |
setAllocationId(java.lang.String allocationId)
The allocation ID of the Elastic IP address that's associated with the
NAT gateway.
|
void |
setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface associated with the NAT gateway.
|
void |
setPrivateIp(java.lang.String privateIp)
The private IP address associated with the Elastic IP address.
|
void |
setPublicIp(java.lang.String publicIp)
The Elastic IP address associated with the NAT gateway.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
NatGatewayAddress |
withAllocationId(java.lang.String allocationId)
The allocation ID of the Elastic IP address that's associated with the
NAT gateway.
|
NatGatewayAddress |
withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface associated with the NAT gateway.
|
NatGatewayAddress |
withPrivateIp(java.lang.String privateIp)
The private IP address associated with the Elastic IP address.
|
NatGatewayAddress |
withPublicIp(java.lang.String publicIp)
The Elastic IP address associated with the NAT gateway.
|
private java.lang.String publicIp
The Elastic IP address associated with the NAT gateway.
private java.lang.String allocationId
The allocation ID of the Elastic IP address that's associated with the NAT gateway.
private java.lang.String privateIp
The private IP address associated with the Elastic IP address.
private java.lang.String networkInterfaceId
The ID of the network interface associated with the NAT gateway.
public void setPublicIp(java.lang.String publicIp)
The Elastic IP address associated with the NAT gateway.
publicIp
- The Elastic IP address associated with the NAT gateway.public java.lang.String getPublicIp()
The Elastic IP address associated with the NAT gateway.
public NatGatewayAddress withPublicIp(java.lang.String publicIp)
The Elastic IP address associated with the NAT gateway.
publicIp
- The Elastic IP address associated with the NAT gateway.public void setAllocationId(java.lang.String allocationId)
The allocation ID of the Elastic IP address that's associated with the NAT gateway.
allocationId
- The allocation ID of the Elastic IP address that's associated with
the NAT gateway.public java.lang.String getAllocationId()
The allocation ID of the Elastic IP address that's associated with the NAT gateway.
public NatGatewayAddress withAllocationId(java.lang.String allocationId)
The allocation ID of the Elastic IP address that's associated with the NAT gateway.
allocationId
- The allocation ID of the Elastic IP address that's associated with
the NAT gateway.public void setPrivateIp(java.lang.String privateIp)
The private IP address associated with the Elastic IP address.
privateIp
- The private IP address associated with the Elastic IP address.public java.lang.String getPrivateIp()
The private IP address associated with the Elastic IP address.
public NatGatewayAddress withPrivateIp(java.lang.String privateIp)
The private IP address associated with the Elastic IP address.
privateIp
- The private IP address associated with the Elastic IP address.public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface associated with the NAT gateway.
networkInterfaceId
- The ID of the network interface associated with the NAT gateway.public java.lang.String getNetworkInterfaceId()
The ID of the network interface associated with the NAT gateway.
public NatGatewayAddress withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface associated with the NAT gateway.
networkInterfaceId
- The ID of the network interface associated with the NAT gateway.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public NatGatewayAddress clone()
clone
in class java.lang.Object