Package com.amazonaws.services.ec2.model
Class ImportVolumeRequest
java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ImportVolumeRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ImportVolumeRequest>
,Serializable
,Cloneable
public class ImportVolumeRequest
extends AmazonWebServiceRequest
implements Serializable, Cloneable, DryRunSupportedRequest<ImportVolumeRequest>
Contains the parameters for ImportVolume.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The Availability Zone for the resulting EBS volume.A description of the volume.This method is intended for internal use only.getImage()
The disk image.The volume size.int
hashCode()
void
setAvailabilityZone
(String availabilityZone) The Availability Zone for the resulting EBS volume.void
setDescription
(String description) A description of the volume.void
setImage
(DiskImageDetail image) The disk image.void
setVolume
(VolumeDetail volume) The volume size.toString()
Returns a string representation of this object; useful for testing and debugging.withAvailabilityZone
(String availabilityZone) The Availability Zone for the resulting EBS volume.withDescription
(String description) A description of the volume.withImage
(DiskImageDetail image) The disk image.withVolume
(VolumeDetail volume) The volume size.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
ImportVolumeRequest
public ImportVolumeRequest()
-
-
Method Details
-
setAvailabilityZone
The Availability Zone for the resulting EBS volume.
- Parameters:
availabilityZone
- The Availability Zone for the resulting EBS volume.
-
getAvailabilityZone
The Availability Zone for the resulting EBS volume.
- Returns:
- The Availability Zone for the resulting EBS volume.
-
withAvailabilityZone
The Availability Zone for the resulting EBS volume.
- Parameters:
availabilityZone
- The Availability Zone for the resulting EBS volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setImage
The disk image.
- Parameters:
image
- The disk image.
-
getImage
The disk image.
- Returns:
- The disk image.
-
withImage
The disk image.
- Parameters:
image
- The disk image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
A description of the volume.
- Parameters:
description
- A description of the volume.
-
getDescription
A description of the volume.
- Returns:
- A description of the volume.
-
withDescription
A description of the volume.
- Parameters:
description
- A description of the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVolume
The volume size.
- Parameters:
volume
- The volume size.
-
getVolume
The volume size.
- Returns:
- The volume size.
-
withVolume
The volume size.
- Parameters:
volume
- The volume size.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<ImportVolumeRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-