Class ElasticIp
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.ElasticIp
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ElasticIp extends Object implements Serializable, Cloneable
Describes an Elastic IP address.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElasticIp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.String
getRegion()
The AWS region.int
hashCode()
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.void
setRegion(String region)
The AWS region.String
toString()
Returns a string representation of this object; useful for testing and debugging.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.ElasticIp
withRegion(String region)
The AWS region.
-
-
-
Method Detail
-
setIp
public void setIp(String ip)
The IP address.
- Parameters:
ip
- The IP address.
-
getIp
public String getIp()
The IP address.
- Returns:
- The IP address.
-
withIp
public ElasticIp withIp(String ip)
The IP address.
- Parameters:
ip
- The IP address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
public void setName(String name)
The name.
- Parameters:
name
- The name.
-
getName
public String getName()
The name.
- Returns:
- The name.
-
withName
public ElasticIp withName(String name)
The name.
- Parameters:
name
- The name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDomain
public void setDomain(String domain)
The domain.
- Parameters:
domain
- The domain.
-
getDomain
public String getDomain()
The domain.
- Returns:
- The domain.
-
withDomain
public ElasticIp withDomain(String domain)
The domain.
- Parameters:
domain
- The domain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRegion
public void setRegion(String region)
The AWS region. For more information, see Regions and Endpoints.
- Parameters:
region
- The AWS region. For more information, see Regions and Endpoints.
-
getRegion
public String getRegion()
The AWS region. For more information, see Regions and Endpoints.
- Returns:
- The AWS region. For more information, see Regions and Endpoints.
-
withRegion
public ElasticIp withRegion(String region)
The AWS region. For more information, see Regions and Endpoints.
- Parameters:
region
- The AWS region. For more information, see Regions and Endpoints.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of the instance that the address is attached to.
- Parameters:
instanceId
- The ID of the instance that the address is attached to.
-
getInstanceId
public String getInstanceId()
The ID of the instance that the address is attached to.
- Returns:
- The ID of the instance that the address is attached to.
-
withInstanceId
public ElasticIp withInstanceId(String instanceId)
The ID of the instance that the address is attached to.
- Parameters:
instanceId
- The ID of the instance that the address is attached to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-