Class ImageDiskContainer

java.lang.Object
com.amazonaws.services.ec2.model.ImageDiskContainer
All Implemented Interfaces:
Serializable, Cloneable

public class ImageDiskContainer extends Object implements Serializable, Cloneable

Describes the disk container object for an import image task.

See Also:
  • Constructor Details

    • ImageDiskContainer

      public ImageDiskContainer()
  • Method Details

    • setDescription

      public void setDescription(String description)

      The description of the disk image.

      Parameters:
      description - The description of the disk image.
    • getDescription

      public String getDescription()

      The description of the disk image.

      Returns:
      The description of the disk image.
    • withDescription

      public ImageDiskContainer withDescription(String description)

      The description of the disk image.

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

      public void setFormat(String format)

      The format of the disk image being imported.

      Valid values: RAW | VHD | VMDK | OVA

      Parameters:
      format - The format of the disk image being imported.

      Valid values: RAW | VHD | VMDK | OVA

    • getFormat

      public String getFormat()

      The format of the disk image being imported.

      Valid values: RAW | VHD | VMDK | OVA

      Returns:
      The format of the disk image being imported.

      Valid values: RAW | VHD | VMDK | OVA

    • withFormat

      public ImageDiskContainer withFormat(String format)

      The format of the disk image being imported.

      Valid values: RAW | VHD | VMDK | OVA

      Parameters:
      format - The format of the disk image being imported.

      Valid values: RAW | VHD | VMDK | OVA

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

      public void setUrl(String url)

      The URL to the Amazon S3-based disk image being imported. The URL can either be a https URL (https://..) or an Amazon S3 URL (s3://..)

      Parameters:
      url - The URL to the Amazon S3-based disk image being imported. The URL can either be a https URL (https://..) or an Amazon S3 URL (s3://..)
    • getUrl

      public String getUrl()

      The URL to the Amazon S3-based disk image being imported. The URL can either be a https URL (https://..) or an Amazon S3 URL (s3://..)

      Returns:
      The URL to the Amazon S3-based disk image being imported. The URL can either be a https URL (https://..) or an Amazon S3 URL (s3://..)
    • withUrl

      public ImageDiskContainer withUrl(String url)

      The URL to the Amazon S3-based disk image being imported. The URL can either be a https URL (https://..) or an Amazon S3 URL (s3://..)

      Parameters:
      url - The URL to the Amazon S3-based disk image being imported. The URL can either be a https URL (https://..) or an Amazon S3 URL (s3://..)
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setUserBucket

      public void setUserBucket(UserBucket userBucket)

      The S3 bucket for the disk image.

      Parameters:
      userBucket - The S3 bucket for the disk image.
    • getUserBucket

      public UserBucket getUserBucket()

      The S3 bucket for the disk image.

      Returns:
      The S3 bucket for the disk image.
    • withUserBucket

      public ImageDiskContainer withUserBucket(UserBucket userBucket)

      The S3 bucket for the disk image.

      Parameters:
      userBucket - The S3 bucket for the disk image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDeviceName

      public void setDeviceName(String deviceName)

      The block device mapping for the disk.

      Parameters:
      deviceName - The block device mapping for the disk.
    • getDeviceName

      public String getDeviceName()

      The block device mapping for the disk.

      Returns:
      The block device mapping for the disk.
    • withDeviceName

      public ImageDiskContainer withDeviceName(String deviceName)

      The block device mapping for the disk.

      Parameters:
      deviceName - The block device mapping for the disk.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSnapshotId

      public void setSnapshotId(String snapshotId)

      The ID of the EBS snapshot to be used for importing the snapshot.

      Parameters:
      snapshotId - The ID of the EBS snapshot to be used for importing the snapshot.
    • getSnapshotId

      public String getSnapshotId()

      The ID of the EBS snapshot to be used for importing the snapshot.

      Returns:
      The ID of the EBS snapshot to be used for importing the snapshot.
    • withSnapshotId

      public ImageDiskContainer withSnapshotId(String snapshotId)

      The ID of the EBS snapshot to be used for importing the snapshot.

      Parameters:
      snapshotId - The ID of the EBS snapshot to be used for importing the snapshot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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 ImageDiskContainer clone()
      Overrides:
      clone in class Object