com.amazonaws.services.opsworks.model
Class AssignVolumeRequest

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

public class AssignVolumeRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the AssignVolume operation.

Assigns one of the stack's registered Amazon EBS volumes to a specified instance. The volume must first be registered with the stack by calling RegisterVolume. 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.assignVolume(AssignVolumeRequest), Serialized Form

Constructor Summary
AssignVolumeRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getInstanceId()
          The instance ID.
 String getVolumeId()
          The volume ID.
 int hashCode()
           
 void setInstanceId(String instanceId)
          The instance ID.
 void setVolumeId(String volumeId)
          The volume ID.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AssignVolumeRequest withInstanceId(String instanceId)
          The instance ID.
 AssignVolumeRequest withVolumeId(String volumeId)
          The volume 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

AssignVolumeRequest

public AssignVolumeRequest()
Method Detail

getVolumeId

public String getVolumeId()
The volume ID.

Returns:
The volume ID.

setVolumeId

public void setVolumeId(String volumeId)
The volume ID.

Parameters:
volumeId - The volume ID.

withVolumeId

public AssignVolumeRequest withVolumeId(String volumeId)
The volume ID.

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

Parameters:
volumeId - The volume ID.
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 AssignVolumeRequest 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.