|
|||||||
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 | |
---|---|
boolean |
equals(Object obj)
|
String |
getAllocationId()
The allocation ID that AWS returned when you allocated the elastic IP address for use with Amazon VPC. |
String |
getInstanceId()
The instance to associate with the IP address. |
String |
getNetworkInterfaceId()
Returns the value of the NetworkInterfaceId property for this object. |
String |
getPublicIp()
IP address that you are assigning to the instance. |
int |
hashCode()
|
void |
setAllocationId(String allocationId)
The allocation ID that AWS returned when you allocated the elastic IP address for use with Amazon VPC. |
void |
setInstanceId(String instanceId)
The instance to associate with the IP address. |
void |
setNetworkInterfaceId(String networkInterfaceId)
Sets the value of the NetworkInterfaceId property for this object. |
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 |
withAllocationId(String allocationId)
The allocation ID that AWS returned when you allocated the elastic IP address for use with Amazon VPC. |
AssociateAddressRequest |
withInstanceId(String instanceId)
The instance to associate with the IP address. |
AssociateAddressRequest |
withNetworkInterfaceId(String networkInterfaceId)
Sets the value of the NetworkInterfaceId property for this object. |
AssociateAddressRequest |
withPublicIp(String publicIp)
IP address that you are assigning to the instance. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, 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 getAllocationId()
public void setAllocationId(String allocationId)
allocationId
- The allocation ID that AWS returned when you allocated the elastic IP
address for use with Amazon VPC.public AssociateAddressRequest withAllocationId(String allocationId)
Returns a reference to this object so that method calls can be chained together.
allocationId
- The allocation ID that AWS returned when you allocated the elastic IP
address for use with Amazon VPC.
public String getNetworkInterfaceId()
public void setNetworkInterfaceId(String networkInterfaceId)
networkInterfaceId
- The new value for the NetworkInterfaceId property for this object.public AssociateAddressRequest withNetworkInterfaceId(String networkInterfaceId)
Returns a reference to this object so that method calls can be chained together.
networkInterfaceId
- The new value for the NetworkInterfaceId property for this object.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |