@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttachVolumeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AttachVolumeRequest>
NOOP
Constructor and Description |
---|
AttachVolumeRequest()
Default constructor for AttachVolumeRequest object.
|
AttachVolumeRequest(String volumeId,
String instanceId,
String device)
Constructs a new AttachVolumeRequest object.
|
Modifier and Type | Method and Description |
---|---|
AttachVolumeRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDevice()
The device name (for example,
/dev/sdh or xvdh ). |
Request<AttachVolumeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getInstanceId()
The ID of the instance.
|
String |
getVolumeId()
The ID of the EBS volume.
|
int |
hashCode() |
void |
setDevice(String device)
The device name (for example,
/dev/sdh or xvdh ). |
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setVolumeId(String volumeId)
The ID of the EBS volume.
|
String |
toString()
Returns a string representation of this object.
|
AttachVolumeRequest |
withDevice(String device)
The device name (for example,
/dev/sdh or xvdh ). |
AttachVolumeRequest |
withInstanceId(String instanceId)
The ID of the instance.
|
AttachVolumeRequest |
withVolumeId(String volumeId)
The ID of the EBS volume.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public AttachVolumeRequest()
public AttachVolumeRequest(String volumeId, String instanceId, 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 (for example, /dev/sdh
or xvdh
).public void setDevice(String device)
The device name (for example, /dev/sdh
or xvdh
).
device
- The device name (for example, /dev/sdh
or xvdh
).public String getDevice()
The device name (for example, /dev/sdh
or xvdh
).
/dev/sdh
or xvdh
).public AttachVolumeRequest withDevice(String device)
The device name (for example, /dev/sdh
or xvdh
).
device
- The device name (for example, /dev/sdh
or xvdh
).public void setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public AttachVolumeRequest withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setVolumeId(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 String getVolumeId()
The ID of the EBS volume. The volume and instance must be within the same Availability Zone.
public AttachVolumeRequest withVolumeId(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 Request<AttachVolumeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AttachVolumeRequest>
public String toString()
toString
in class Object
Object.toString()
public AttachVolumeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()