com.amazonaws.services.ec2.model
Class ImportVolumeRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.ImportVolumeRequest
All Implemented Interfaces:
DryRunSupportedRequest<ImportVolumeRequest>, java.io.Serializable

public class ImportVolumeRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<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 .

See Also:
AmazonEC2.importVolume(ImportVolumeRequest), Serialized Form

Constructor 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

ImportVolumeRequest

public ImportVolumeRequest()
Method Detail

getAvailabilityZone

public java.lang.String getAvailabilityZone()
The Availability Zone for the resulting Amazon EBS volume.

Returns:
The Availability Zone for the resulting Amazon EBS volume.

setAvailabilityZone

public void setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the resulting Amazon EBS volume.

Parameters:
availabilityZone - The Availability Zone for the resulting Amazon EBS volume.

withAvailabilityZone

public ImportVolumeRequest withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the resulting Amazon EBS volume.

Returns a reference to this object so that method calls can be chained together.

Parameters:
availabilityZone - The Availability Zone for the resulting Amazon EBS volume.
Returns:
A reference to this updated object so that method calls can be chained together.

getImage

public DiskImageDetail getImage()
Returns:

setImage

public void setImage(DiskImageDetail image)
Parameters:
image -

withImage

public ImportVolumeRequest withImage(DiskImageDetail image)

Returns a reference to this object so that method calls can be chained together.

Parameters:
image -
Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public java.lang.String getDescription()
An optional description for the volume being imported.

Returns:
An optional description for the volume being imported.

setDescription

public void setDescription(java.lang.String description)
An optional description for the volume being imported.

Parameters:
description - An optional description for the volume being imported.

withDescription

public ImportVolumeRequest withDescription(java.lang.String description)
An optional description for the volume being imported.

Returns a reference to this object so that method calls can be chained together.

Parameters:
description - An optional description for the volume being imported.
Returns:
A reference to this updated object so that method calls can be chained together.

getVolume

public VolumeDetail getVolume()
Returns:

setVolume

public void setVolume(VolumeDetail volume)
Parameters:
volume -

withVolume

public ImportVolumeRequest withVolume(VolumeDetail volume)

Returns a reference to this object so that method calls can be chained together.

Parameters:
volume -
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<ImportVolumeRequest> 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 interface DryRunSupportedRequest<ImportVolumeRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.