public class PrivateIpAddressSpecification
extends java.lang.Object
implements java.io.Serializable
Describes a secondary private IP address for a network interface.
Constructor and Description |
---|
PrivateIpAddressSpecification() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getPrivateIpAddress()
public void setPrivateIpAddress(java.lang.String privateIpAddress)
privateIpAddress
- The private IP addresses.public PrivateIpAddressSpecification withPrivateIpAddress(java.lang.String privateIpAddress)
Returns a reference to this object so that method calls can be chained together.
privateIpAddress
- The private IP addresses.public java.lang.Boolean isPrimary()
public void setPrimary(java.lang.Boolean primary)
primary
- 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)
Returns a reference to this object so that method calls can be chained together.
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()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.