public class AssignVolumeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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. After you register the volume, you must
call UpdateVolume to specify a mount point before calling
AssignVolume
. 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 .
NOOP
Constructor and Description |
---|
AssignVolumeRequest() |
Modifier and Type | Method and Description |
---|---|
AssignVolumeRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getVolumeId()
public void setVolumeId(String volumeId)
volumeId
- The volume ID.public AssignVolumeRequest withVolumeId(String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId
- The volume ID.public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The instance ID.public AssignVolumeRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The instance ID.public String toString()
toString
in class Object
Object.toString()
public AssignVolumeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.