Class SnapshotDiskContainer

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

public class SnapshotDiskContainer extends Object implements Serializable, Cloneable

The disk container object for the import snapshot request.

See Also:
  • Constructor Details

    • SnapshotDiskContainer

      public SnapshotDiskContainer()
  • Method Details

    • setDescription

      public void setDescription(String description)

      The description of the disk image being imported.

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

      public String getDescription()

      The description of the disk image being imported.

      Returns:
      The description of the disk image being imported.
    • withDescription

      public SnapshotDiskContainer withDescription(String description)

      The description of the disk image being imported.

      Parameters:
      description - The description of the disk image being imported.
      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 SnapshotDiskContainer 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. It 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. It 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. It 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. It can either be a https URL (https://..) or an Amazon S3 URL (s3://..).
    • withUrl

      public SnapshotDiskContainer withUrl(String url)

      The URL to the Amazon S3-based disk image being imported. It 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. It 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 SnapshotDiskContainer 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.
    • 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 SnapshotDiskContainer clone()
      Overrides:
      clone in class Object