public class AttachVolumeRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<AttachVolumeRequest>
Contains the parameters for AttachVolume.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
device
The device name to expose to the instance (for example,
/dev/sdh or xvdh ). |
private java.lang.String |
instanceId
The ID of the instance.
|
private java.lang.String |
volumeId
The ID of the EBS volume.
|
NOOP
Constructor and Description |
---|
AttachVolumeRequest()
Default constructor for AttachVolumeRequest object.
|
AttachVolumeRequest(java.lang.String volumeId,
java.lang.String instanceId,
java.lang.String device)
Constructs a new AttachVolumeRequest object.
|
Modifier and Type | Method and Description |
---|---|
AttachVolumeRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDevice()
The device name to expose to the instance (for example,
/dev/sdh or xvdh ). |
Request<AttachVolumeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
java.lang.String |
getVolumeId()
The ID of the EBS volume.
|
int |
hashCode() |
void |
setDevice(java.lang.String device)
The device name to expose to the instance (for example,
/dev/sdh or xvdh ). |
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
void |
setVolumeId(java.lang.String volumeId)
The ID of the EBS volume.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachVolumeRequest |
withDevice(java.lang.String device)
The device name to expose to the instance (for example,
/dev/sdh or xvdh ). |
AttachVolumeRequest |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
AttachVolumeRequest |
withVolumeId(java.lang.String volumeId)
The ID of the EBS volume.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String volumeId
The ID of the EBS volume. The volume and instance must be within the same Availability Zone.
private java.lang.String instanceId
The ID of the instance.
private java.lang.String device
The device name to expose to the instance (for example,
/dev/sdh
or xvdh
).
public AttachVolumeRequest()
public AttachVolumeRequest(java.lang.String volumeId, java.lang.String instanceId, java.lang.String device)
volumeId
- The ID of the EBS volume. The volume and instance must be within
the same Availability Zone.instanceId
- The ID of the instance.device
- The device name to expose to the instance (for example,
/dev/sdh
or xvdh
).public void setVolumeId(java.lang.String volumeId)
The ID of the EBS volume. The volume and instance must be within the same Availability Zone.
volumeId
- The ID of the EBS volume. The volume and instance must be within
the same Availability Zone.public java.lang.String getVolumeId()
The ID of the EBS volume. The volume and instance must be within the same Availability Zone.
public AttachVolumeRequest withVolumeId(java.lang.String volumeId)
The ID of the EBS volume. The volume and instance must be within the same Availability Zone.
volumeId
- The ID of the EBS volume. The volume and instance must be within
the same Availability Zone.public void setInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public java.lang.String getInstanceId()
The ID of the instance.
public AttachVolumeRequest withInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setDevice(java.lang.String device)
The device name to expose to the instance (for example,
/dev/sdh
or xvdh
).
device
- The device name to expose to the instance (for example,
/dev/sdh
or xvdh
).public java.lang.String getDevice()
The device name to expose to the instance (for example,
/dev/sdh
or xvdh
).
/dev/sdh
or xvdh
).public AttachVolumeRequest withDevice(java.lang.String device)
The device name to expose to the instance (for example,
/dev/sdh
or xvdh
).
device
- The device name to expose to the instance (for example,
/dev/sdh
or xvdh
).public Request<AttachVolumeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AttachVolumeRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AttachVolumeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()