|
|||||||
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
Container for the parameters to the AssociateAddress operation
.
The AssociateAddress operation 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.
AmazonEC2.associateAddress(AssociateAddressRequest)
Constructor Summary | |
---|---|
AssociateAddressRequest()
Default constructor for a new AssociateAddressRequest object. |
|
AssociateAddressRequest(String instanceId,
String publicIp)
Constructs a new AssociateAddressRequest object. |
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()
Returns a string representation of this object; useful for testing and debugging. |
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, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AssociateAddressRequest()
public AssociateAddressRequest(String instanceId, String publicIp)
instanceId
- The instance to associate with the IP address.publicIp
- IP address that you are assigning to the instance.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
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |