public class ImportVolumeRequest extends AmazonWebServiceRequest implements java.io.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 .
For information about the import manifest referenced by this API action, see VM Import Manifest .
Constructor and Description |
---|
ImportVolumeRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAvailabilityZone()
The Availability Zone for the resulting EBS volume.
|
java.lang.String |
getDescription()
A description of the volume.
|
Request<ImportVolumeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
DiskImageDetail |
getImage()
The disk image.
|
VolumeDetail |
getVolume()
The volume size.
|
int |
hashCode() |
void |
setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the resulting EBS volume.
|
void |
setDescription(java.lang.String description)
A description of the volume.
|
void |
setImage(DiskImageDetail image)
The disk image.
|
void |
setVolume(VolumeDetail volume)
The volume size.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ImportVolumeRequest |
withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the resulting EBS volume.
|
ImportVolumeRequest |
withDescription(java.lang.String description)
A description of the volume.
|
ImportVolumeRequest |
withImage(DiskImageDetail image)
The disk image.
|
ImportVolumeRequest |
withVolume(VolumeDetail volume)
The volume size.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone
- The Availability Zone for the resulting EBS volume.public ImportVolumeRequest withAvailabilityZone(java.lang.String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Availability Zone for the resulting EBS volume.public DiskImageDetail getImage()
public void setImage(DiskImageDetail image)
image
- The disk image.public ImportVolumeRequest withImage(DiskImageDetail image)
Returns a reference to this object so that method calls can be chained together.
image
- The disk image.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- A description of the volume.public ImportVolumeRequest withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description
- A description of the volume.public VolumeDetail getVolume()
public void setVolume(VolumeDetail volume)
volume
- The volume size.public ImportVolumeRequest withVolume(VolumeDetail volume)
Returns a reference to this object so that method calls can be chained together.
volume
- The volume size.public Request<ImportVolumeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ImportVolumeRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.