com.amazonaws.services.opsworks.model
Class AssociateElasticIpRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.opsworks.model.AssociateElasticIpRequest
All Implemented Interfaces:
Serializable

public class AssociateElasticIpRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the AssociateElasticIp operation.

Associates one of the stack's registered Elastic IP addresses with a specified instance. The address must first be registered with the stack by calling RegisterElasticIp. For more information, see Resource Management .

Required Permissions : To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .

See Also:
AWSOpsWorks.associateElasticIp(AssociateElasticIpRequest), Serialized Form

Constructor Summary
AssociateElasticIpRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getElasticIp()
          The Elastic IP address.
 String getInstanceId()
          The instance ID.
 int hashCode()
           
 void setElasticIp(String elasticIp)
          The Elastic IP address.
 void setInstanceId(String instanceId)
          The instance ID.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AssociateElasticIpRequest withElasticIp(String elasticIp)
          The Elastic IP address.
 AssociateElasticIpRequest withInstanceId(String instanceId)
          The instance ID.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssociateElasticIpRequest

public AssociateElasticIpRequest()
Method Detail

getElasticIp

public String getElasticIp()
The Elastic IP address.

Returns:
The Elastic IP address.

setElasticIp

public void setElasticIp(String elasticIp)
The Elastic IP address.

Parameters:
elasticIp - The Elastic IP address.

withElasticIp

public AssociateElasticIpRequest withElasticIp(String elasticIp)
The Elastic IP address.

Returns a reference to this object so that method calls can be chained together.

Parameters:
elasticIp - The Elastic IP address.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceId

public String getInstanceId()
The instance ID.

Returns:
The instance ID.

setInstanceId

public void setInstanceId(String instanceId)
The instance ID.

Parameters:
instanceId - The instance ID.

withInstanceId

public AssociateElasticIpRequest withInstanceId(String instanceId)
The instance ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceId - The instance ID.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.