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 ElasticIpclone()booleanequals(Object obj)StringgetDomain()The domain.StringgetInstanceId()The ID of the instance that the address is attached to.StringgetIp()The IP address.StringgetName()The name.StringgetRegion()The AWS region.inthashCode()voidsetDomain(String domain)The domain.voidsetInstanceId(String instanceId)The ID of the instance that the address is attached to.voidsetIp(String ip)The IP address.voidsetName(String name)The name.voidsetRegion(String region)The AWS region.StringtoString()Returns a string representation of this object; useful for testing and debugging.ElasticIpwithDomain(String domain)The domain.ElasticIpwithInstanceId(String instanceId)The ID of the instance that the address is attached to.ElasticIpwithIp(String ip)The IP address.ElasticIpwithName(String name)The name.ElasticIpwithRegion(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-