public class PrivateIpAddressSpecification
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a secondary private IP address for a network interface.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
primary
Indicates whether the private IP address is the primary private IP
address.
|
private java.lang.String |
privateIpAddress
The private IP addresses.
|
Constructor and Description |
---|
PrivateIpAddressSpecification() |
Modifier and Type | Method and Description |
---|---|
PrivateIpAddressSpecification |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getPrimary()
Indicates whether the private IP address is the primary private IP
address.
|
java.lang.String |
getPrivateIpAddress()
The private IP addresses.
|
int |
hashCode() |
java.lang.Boolean |
isPrimary()
Indicates whether the private IP address is the primary private IP
address.
|
void |
setPrimary(java.lang.Boolean primary)
Indicates whether the private IP address is the primary private IP
address.
|
void |
setPrivateIpAddress(java.lang.String privateIpAddress)
The private IP addresses.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PrivateIpAddressSpecification |
withPrimary(java.lang.Boolean primary)
Indicates whether the private IP address is the primary private IP
address.
|
PrivateIpAddressSpecification |
withPrivateIpAddress(java.lang.String privateIpAddress)
The private IP addresses.
|
private java.lang.String privateIpAddress
The private IP addresses.
private java.lang.Boolean primary
Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.
public void setPrivateIpAddress(java.lang.String privateIpAddress)
The private IP addresses.
privateIpAddress
- The private IP addresses.public java.lang.String getPrivateIpAddress()
The private IP addresses.
public PrivateIpAddressSpecification withPrivateIpAddress(java.lang.String privateIpAddress)
The private IP addresses.
privateIpAddress
- The private IP addresses.public void setPrimary(java.lang.Boolean primary)
Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.
primary
- Indicates whether the private IP address is the primary private IP
address. Only one IP address can be designated as primary.public java.lang.Boolean getPrimary()
Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.
public PrivateIpAddressSpecification withPrimary(java.lang.Boolean primary)
Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.
primary
- Indicates whether the private IP address is the primary private IP
address. Only one IP address can be designated as primary.public java.lang.Boolean isPrimary()
Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.
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 PrivateIpAddressSpecification clone()
clone
in class java.lang.Object