|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.AssociateAddressRequest
public class AssociateAddressRequest
Associates an elastic IP address with an instance. If the IP address is currently assigned to another instance, the IP address is assigned to the new instance.
This is an idempotent operation. If you enter it more than once, Amazon EC2 does not return an error.
Constructor Summary | |
---|---|
AssociateAddressRequest()
|
Method Summary | |
---|---|
String |
getInstanceId()
The instance to associate with the IP address. |
String |
getPublicIp()
IP address that you are assigning to the instance. |
void |
setInstanceId(String instanceId)
The instance to associate with the IP address. |
void |
setPublicIp(String publicIp)
IP address that you are assigning to the instance. |
String |
toString()
|
AssociateAddressRequest |
withInstanceId(String instanceId)
The instance to associate with the IP address. |
AssociateAddressRequest |
withPublicIp(String publicIp)
IP address that you are assigning to the instance. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AssociateAddressRequest()
Method Detail |
---|
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The instance to associate with the IP address.public AssociateAddressRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The instance to associate with the IP address.
public String getPublicIp()
public void setPublicIp(String publicIp)
publicIp
- IP address that you are assigning to the instance.public AssociateAddressRequest withPublicIp(String publicIp)
Returns a reference to this object so that method calls can be chained together.
publicIp
- IP address that you are assigning to the instance.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |