@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ElasticIp extends Object implements Serializable, Cloneable, StructuredPojo
Describes an Elastic IP address.
Constructor and Description |
---|
ElasticIp() |
Modifier and Type | Method and Description |
---|---|
ElasticIp |
clone() |
boolean |
equals(Object obj) |
String |
getDomain()
The domain.
|
String |
getInstanceId()
The ID of the instance that the address is attached to.
|
String |
getIp()
The IP address.
|
String |
getName()
The name, which can be a maximum of 32 characters.
|
String |
getRegion()
The Amazon Web Services Region.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDomain(String domain)
The domain.
|
void |
setInstanceId(String instanceId)
The ID of the instance that the address is attached to.
|
void |
setIp(String ip)
The IP address.
|
void |
setName(String name)
The name, which can be a maximum of 32 characters.
|
void |
setRegion(String region)
The Amazon Web Services Region.
|
String |
toString()
Returns a string representation of this object.
|
ElasticIp |
withDomain(String domain)
The domain.
|
ElasticIp |
withInstanceId(String instanceId)
The ID of the instance that the address is attached to.
|
ElasticIp |
withIp(String ip)
The IP address.
|
ElasticIp |
withName(String name)
The name, which can be a maximum of 32 characters.
|
ElasticIp |
withRegion(String region)
The Amazon Web Services Region.
|
public void setIp(String ip)
The IP address.
ip
- The IP address.public String getIp()
The IP address.
public ElasticIp withIp(String ip)
The IP address.
ip
- The IP address.public void setName(String name)
The name, which can be a maximum of 32 characters.
name
- The name, which can be a maximum of 32 characters.public String getName()
The name, which can be a maximum of 32 characters.
public ElasticIp withName(String name)
The name, which can be a maximum of 32 characters.
name
- The name, which can be a maximum of 32 characters.public void setDomain(String domain)
The domain.
domain
- The domain.public String getDomain()
The domain.
public ElasticIp withDomain(String domain)
The domain.
domain
- The domain.public void setRegion(String region)
The Amazon Web Services Region. For more information, see Regions and Endpoints.
region
- The Amazon Web Services Region. For more information, see Regions and Endpoints.public String getRegion()
The Amazon Web Services Region. For more information, see Regions and Endpoints.
public ElasticIp withRegion(String region)
The Amazon Web Services Region. For more information, see Regions and Endpoints.
region
- The Amazon Web Services Region. For more information, see Regions and Endpoints.public void setInstanceId(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 String getInstanceId()
The ID of the instance that the address is attached to.
public ElasticIp withInstanceId(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 String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.