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:
  • Constructor Details

    • ImportVolumeRequest

      public ImportVolumeRequest()
  • Method Details

    • setAvailabilityZone

      public void setAvailabilityZone(String availabilityZone)

      The Availability Zone for the resulting EBS volume.

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

      public String getAvailabilityZone()

      The Availability Zone for the resulting EBS volume.

      Returns:
      The Availability Zone for the resulting EBS volume.
    • withAvailabilityZone

      public ImportVolumeRequest withAvailabilityZone(String availabilityZone)

      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

      public void setImage(DiskImageDetail image)

      The disk image.

      Parameters:
      image - The disk image.
    • getImage

      public DiskImageDetail getImage()

      The disk image.

      Returns:
      The disk image.
    • withImage

      public ImportVolumeRequest withImage(DiskImageDetail image)

      The disk image.

      Parameters:
      image - The disk image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDescription

      public void setDescription(String description)

      A description of the volume.

      Parameters:
      description - A description of the volume.
    • getDescription

      public String getDescription()

      A description of the volume.

      Returns:
      A description of the volume.
    • withDescription

      public ImportVolumeRequest withDescription(String description)

      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

      public void setVolume(VolumeDetail volume)

      The volume size.

      Parameters:
      volume - The volume size.
    • getVolume

      public VolumeDetail getVolume()

      The volume size.

      Returns:
      The volume size.
    • withVolume

      public ImportVolumeRequest withVolume(VolumeDetail volume)

      The volume size.

      Parameters:
      volume - The volume size.
      Returns:
      Returns a reference to this 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 String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ImportVolumeRequest 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 class AmazonWebServiceRequest
      See Also: