Class NatGatewayAddress
- java.lang.Object
-
- com.amazonaws.services.ec2.model.NatGatewayAddress
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class NatGatewayAddress extends Object implements Serializable, Cloneable
Describes the IP addresses and network interface associated with a NAT gateway.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NatGatewayAddress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NatGatewayAddress
clone()
boolean
equals(Object obj)
String
getAllocationId()
The allocation ID of the Elastic IP address that's associated with the NAT gateway.String
getNetworkInterfaceId()
The ID of the network interface associated with the NAT gateway.String
getPrivateIp()
The private IP address associated with the Elastic IP address.String
getPublicIp()
The Elastic IP address associated with the NAT gateway.int
hashCode()
void
setAllocationId(String allocationId)
The allocation ID of the Elastic IP address that's associated with the NAT gateway.void
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface associated with the NAT gateway.void
setPrivateIp(String privateIp)
The private IP address associated with the Elastic IP address.void
setPublicIp(String publicIp)
The Elastic IP address associated with the NAT gateway.String
toString()
Returns a string representation of this object; useful for testing and debugging.NatGatewayAddress
withAllocationId(String allocationId)
The allocation ID of the Elastic IP address that's associated with the NAT gateway.NatGatewayAddress
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface associated with the NAT gateway.NatGatewayAddress
withPrivateIp(String privateIp)
The private IP address associated with the Elastic IP address.NatGatewayAddress
withPublicIp(String publicIp)
The Elastic IP address associated with the NAT gateway.
-
-
-
Method Detail
-
setPublicIp
public void setPublicIp(String publicIp)
The Elastic IP address associated with the NAT gateway.
- Parameters:
publicIp
- The Elastic IP address associated with the NAT gateway.
-
getPublicIp
public String getPublicIp()
The Elastic IP address associated with the NAT gateway.
- Returns:
- The Elastic IP address associated with the NAT gateway.
-
withPublicIp
public NatGatewayAddress withPublicIp(String publicIp)
The Elastic IP address associated with the NAT gateway.
- Parameters:
publicIp
- The Elastic IP address associated with the NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAllocationId
public void setAllocationId(String allocationId)
The allocation ID of the Elastic IP address that's associated with the NAT gateway.
- Parameters:
allocationId
- The allocation ID of the Elastic IP address that's associated with the NAT gateway.
-
getAllocationId
public String getAllocationId()
The allocation ID of the Elastic IP address that's associated with the NAT gateway.
- Returns:
- The allocation ID of the Elastic IP address that's associated with the NAT gateway.
-
withAllocationId
public NatGatewayAddress withAllocationId(String allocationId)
The allocation ID of the Elastic IP address that's associated with the NAT gateway.
- Parameters:
allocationId
- The allocation ID of the Elastic IP address that's associated with the NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrivateIp
public void setPrivateIp(String privateIp)
The private IP address associated with the Elastic IP address.
- Parameters:
privateIp
- The private IP address associated with the Elastic IP address.
-
getPrivateIp
public String getPrivateIp()
The private IP address associated with the Elastic IP address.
- Returns:
- The private IP address associated with the Elastic IP address.
-
withPrivateIp
public NatGatewayAddress withPrivateIp(String privateIp)
The private IP address associated with the Elastic IP address.
- Parameters:
privateIp
- The private IP address associated with the Elastic IP address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNetworkInterfaceId
public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface associated with the NAT gateway.
- Parameters:
networkInterfaceId
- The ID of the network interface associated with the NAT gateway.
-
getNetworkInterfaceId
public String getNetworkInterfaceId()
The ID of the network interface associated with the NAT gateway.
- Returns:
- The ID of the network interface associated with the NAT gateway.
-
withNetworkInterfaceId
public NatGatewayAddress withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface associated with the NAT gateway.
- Parameters:
networkInterfaceId
- The ID of the network interface associated with the NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public NatGatewayAddress clone()
-
-