|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ImportVolumeRequest
public class ImportVolumeRequest
Container for the parameters to the 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 .
AmazonEC2.importVolume(ImportVolumeRequest)
,
Serialized FormConstructor Summary | |
---|---|
ImportVolumeRequest()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAvailabilityZone()
The Availability Zone for the resulting Amazon EBS volume. |
java.lang.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(java.lang.String availabilityZone)
The Availability Zone for the resulting Amazon EBS volume. |
void |
setDescription(java.lang.String description)
An optional description for the volume being imported. |
void |
setImage(DiskImageDetail image)
|
void |
setVolume(VolumeDetail volume)
|
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 Amazon EBS volume. |
ImportVolumeRequest |
withDescription(java.lang.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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImportVolumeRequest()
Method Detail |
---|
public java.lang.String getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone
- The Availability Zone for the resulting Amazon 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 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 java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- An optional description for the volume being imported.public ImportVolumeRequest withDescription(java.lang.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 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
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |