public class ElasticIp
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an Elastic IP address.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
domain
The domain.
|
private java.lang.String |
instanceId
The ID of the instance that the address is attached to.
|
private java.lang.String |
ip
The IP address.
|
private java.lang.String |
name
The name.
|
private java.lang.String |
region
The AWS region.
|
Constructor and Description |
---|
ElasticIp() |
Modifier and Type | Method and Description |
---|---|
ElasticIp |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDomain()
The domain.
|
java.lang.String |
getInstanceId()
The ID of the instance that the address is attached to.
|
java.lang.String |
getIp()
The IP address.
|
java.lang.String |
getName()
The name.
|
java.lang.String |
getRegion()
The AWS region.
|
int |
hashCode() |
void |
setDomain(java.lang.String domain)
The domain.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance that the address is attached to.
|
void |
setIp(java.lang.String ip)
The IP address.
|
void |
setName(java.lang.String name)
The name.
|
void |
setRegion(java.lang.String region)
The AWS region.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ElasticIp |
withDomain(java.lang.String domain)
The domain.
|
ElasticIp |
withInstanceId(java.lang.String instanceId)
The ID of the instance that the address is attached to.
|
ElasticIp |
withIp(java.lang.String ip)
The IP address.
|
ElasticIp |
withName(java.lang.String name)
The name.
|
ElasticIp |
withRegion(java.lang.String region)
The AWS region.
|
private java.lang.String ip
The IP address.
private java.lang.String name
The name.
private java.lang.String domain
The domain.
private java.lang.String region
The AWS region. For more information, see Regions and Endpoints.
private java.lang.String instanceId
The ID of the instance that the address is attached to.
public void setIp(java.lang.String ip)
The IP address.
ip
- The IP address.public java.lang.String getIp()
The IP address.
public ElasticIp withIp(java.lang.String ip)
The IP address.
ip
- The IP address.public void setName(java.lang.String name)
The name.
name
- The name.public java.lang.String getName()
The name.
public ElasticIp withName(java.lang.String name)
The name.
name
- The name.public void setDomain(java.lang.String domain)
The domain.
domain
- The domain.public java.lang.String getDomain()
The domain.
public ElasticIp withDomain(java.lang.String domain)
The domain.
domain
- The domain.public void setRegion(java.lang.String region)
The AWS region. For more information, see Regions and Endpoints.
region
- The AWS region. For more information, see Regions and Endpoints.public java.lang.String getRegion()
The AWS region. For more information, see Regions and Endpoints.
public ElasticIp withRegion(java.lang.String region)
The AWS region. For more information, see Regions and Endpoints.
region
- The AWS region. For more information, see Regions and Endpoints.public void setInstanceId(java.lang.String instanceId)
The ID of the instance that the address is attached to.
instanceId
- The ID of the instance that the address is attached to.public java.lang.String getInstanceId()
The ID of the instance that the address is attached to.
public ElasticIp withInstanceId(java.lang.String instanceId)
The ID of the instance that the address is attached to.
instanceId
- The ID of the instance that the address is attached to.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 ElasticIp clone()
clone
in class java.lang.Object