public class InstancePrivateIpAddress
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a private IP address.
Modifier and Type | Field and Description |
---|---|
private InstanceNetworkInterfaceAssociation |
association
The association information for an Elastic IP address for the network
interface.
|
private java.lang.Boolean |
primary
Indicates whether this IP address is the primary private IP address of
the network interface.
|
private java.lang.String |
privateDnsName
The private DNS name.
|
private java.lang.String |
privateIpAddress
The private IP address of the network interface.
|
Constructor and Description |
---|
InstancePrivateIpAddress() |
Modifier and Type | Method and Description |
---|---|
InstancePrivateIpAddress |
clone() |
boolean |
equals(java.lang.Object obj) |
InstanceNetworkInterfaceAssociation |
getAssociation()
The association information for an Elastic IP address for the network
interface.
|
java.lang.Boolean |
getPrimary()
Indicates whether this IP address is the primary private IP address of
the network interface.
|
java.lang.String |
getPrivateDnsName()
The private DNS name.
|
java.lang.String |
getPrivateIpAddress()
The private IP address of the network interface.
|
int |
hashCode() |
java.lang.Boolean |
isPrimary()
Indicates whether this IP address is the primary private IP address of
the network interface.
|
void |
setAssociation(InstanceNetworkInterfaceAssociation association)
The association information for an Elastic IP address for the network
interface.
|
void |
setPrimary(java.lang.Boolean primary)
Indicates whether this IP address is the primary private IP address of
the network interface.
|
void |
setPrivateDnsName(java.lang.String privateDnsName)
The private DNS name.
|
void |
setPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address of the network interface.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstancePrivateIpAddress |
withAssociation(InstanceNetworkInterfaceAssociation association)
The association information for an Elastic IP address for the network
interface.
|
InstancePrivateIpAddress |
withPrimary(java.lang.Boolean primary)
Indicates whether this IP address is the primary private IP address of
the network interface.
|
InstancePrivateIpAddress |
withPrivateDnsName(java.lang.String privateDnsName)
The private DNS name.
|
InstancePrivateIpAddress |
withPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address of the network interface.
|
private java.lang.String privateIpAddress
The private IP address of the network interface.
private java.lang.String privateDnsName
The private DNS name.
private java.lang.Boolean primary
Indicates whether this IP address is the primary private IP address of the network interface.
private InstanceNetworkInterfaceAssociation association
The association information for an Elastic IP address for the network interface.
public void setPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address of the network interface.
privateIpAddress
- The private IP address of the network interface.public java.lang.String getPrivateIpAddress()
The private IP address of the network interface.
public InstancePrivateIpAddress withPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address of the network interface.
privateIpAddress
- The private IP address of the network interface.public void setPrivateDnsName(java.lang.String privateDnsName)
The private DNS name.
privateDnsName
- The private DNS name.public java.lang.String getPrivateDnsName()
The private DNS name.
public InstancePrivateIpAddress withPrivateDnsName(java.lang.String privateDnsName)
The private DNS name.
privateDnsName
- The private DNS name.public void setPrimary(java.lang.Boolean primary)
Indicates whether this IP address is the primary private IP address of the network interface.
primary
- Indicates whether this IP address is the primary private IP
address of the network interface.public java.lang.Boolean getPrimary()
Indicates whether this IP address is the primary private IP address of the network interface.
public InstancePrivateIpAddress withPrimary(java.lang.Boolean primary)
Indicates whether this IP address is the primary private IP address of the network interface.
primary
- Indicates whether this IP address is the primary private IP
address of the network interface.public java.lang.Boolean isPrimary()
Indicates whether this IP address is the primary private IP address of the network interface.
public void setAssociation(InstanceNetworkInterfaceAssociation association)
The association information for an Elastic IP address for the network interface.
association
- The association information for an Elastic IP address for the
network interface.public InstanceNetworkInterfaceAssociation getAssociation()
The association information for an Elastic IP address for the network interface.
public InstancePrivateIpAddress withAssociation(InstanceNetworkInterfaceAssociation association)
The association information for an Elastic IP address for the network interface.
association
- The association information for an Elastic IP address for the
network interface.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 InstancePrivateIpAddress clone()
clone
in class java.lang.Object