|
||||||||||
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.AttachVolumeRequest
public class AttachVolumeRequest
Request to attach an Amazon EBS volume to a running instance and expose it as the specified device.
Constructor Summary | |
---|---|
AttachVolumeRequest()
|
Method Summary | |
---|---|
String |
getDevice()
Specifies how the device is exposed to the instance (e.g., /dev/sdh). |
String |
getInstanceId()
The ID of the instance to which the volume attaches. |
String |
getVolumeId()
The ID of the Amazon EBS volume. |
void |
setDevice(String device)
Specifies how the device is exposed to the instance (e.g., /dev/sdh). |
void |
setInstanceId(String instanceId)
The ID of the instance to which the volume attaches. |
void |
setVolumeId(String volumeId)
The ID of the Amazon EBS volume. |
String |
toString()
|
AttachVolumeRequest |
withDevice(String device)
Specifies how the device is exposed to the instance (e.g., /dev/sdh). |
AttachVolumeRequest |
withInstanceId(String instanceId)
The ID of the instance to which the volume attaches. |
AttachVolumeRequest |
withVolumeId(String volumeId)
The ID of the Amazon EBS volume. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttachVolumeRequest()
Method Detail |
---|
public String getVolumeId()
public void setVolumeId(String volumeId)
volumeId
- The ID of the Amazon EBS volume. The volume and instance must be
within the same Availability Zone and the instance must be running.public AttachVolumeRequest withVolumeId(String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId
- The ID of the Amazon EBS volume. The volume and instance must be
within the same Availability Zone and the instance must be running.
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of the instance to which the volume attaches. The volume and
instance must be within the same Availability Zone and the instance
must be running.public AttachVolumeRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the instance to which the volume attaches. The volume and
instance must be within the same Availability Zone and the instance
must be running.
public String getDevice()
public void setDevice(String device)
device
- Specifies how the device is exposed to the instance (e.g., /dev/sdh).public AttachVolumeRequest withDevice(String device)
Returns a reference to this object so that method calls can be chained together.
device
- Specifies how the device is exposed to the instance (e.g., /dev/sdh).
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |