public class ImportVolumeRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<ImportVolumeRequest>
ImportVolume operation
.
Creates an import volume task using metadata from the specified disk image. After importing the image, you then upload it using the ec2-import-volume command in the Amazon EC2 command-line interface (CLI) tools. For more information, see Using the Command Line Tools to Import Your Virtual Machine to Amazon EC2 in the Amazon Elastic Compute Cloud User Guide .
NOOP
Constructor and Description |
---|
ImportVolumeRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone for the resulting Amazon EBS volume.
|
String |
getDescription()
An optional description for the volume being imported.
|
Request<ImportVolumeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
DiskImageDetail |
getImage() |
VolumeDetail |
getVolume() |
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone for the resulting Amazon EBS volume.
|
void |
setDescription(String description)
An optional description for the volume being imported.
|
void |
setImage(DiskImageDetail image) |
void |
setVolume(VolumeDetail volume) |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ImportVolumeRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone for the resulting Amazon EBS volume.
|
ImportVolumeRequest |
withDescription(String description)
An optional description for the volume being imported.
|
ImportVolumeRequest |
withImage(DiskImageDetail image)
Returns a reference to this object so that method calls can be chained together.
|
ImportVolumeRequest |
withVolume(VolumeDetail volume)
Returns a reference to this object so that method calls can be chained together.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The Availability Zone for the resulting Amazon EBS volume.public ImportVolumeRequest withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Availability Zone for the resulting Amazon EBS volume.public DiskImageDetail getImage()
public void setImage(DiskImageDetail image)
image
- public ImportVolumeRequest withImage(DiskImageDetail image)
Returns a reference to this object so that method calls can be chained together.
image
- public String getDescription()
public void setDescription(String description)
description
- An optional description for the volume being imported.public ImportVolumeRequest withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- An optional description for the volume being imported.public VolumeDetail getVolume()
public void setVolume(VolumeDetail volume)
volume
- public ImportVolumeRequest withVolume(VolumeDetail volume)
Returns a reference to this object so that method calls can be chained together.
volume
- public Request<ImportVolumeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ImportVolumeRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.