public class DiskImageDescription
extends java.lang.Object
implements java.io.Serializable
Describes a disk image.
Constructor and Description |
---|
DiskImageDescription() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getChecksum()
The checksum computed for the disk image.
|
java.lang.String |
getFormat()
The disk image format.
|
java.lang.String |
getImportManifestUrl()
A presigned URL for the import manifest stored in Amazon S3.
|
java.lang.Long |
getSize()
The size of the disk image, in GiB.
|
int |
hashCode() |
void |
setChecksum(java.lang.String checksum)
The checksum computed for the disk image.
|
void |
setFormat(DiskImageFormat format)
The disk image format.
|
void |
setFormat(java.lang.String format)
The disk image format.
|
void |
setImportManifestUrl(java.lang.String importManifestUrl)
A presigned URL for the import manifest stored in Amazon S3.
|
void |
setSize(java.lang.Long size)
The size of the disk image, in GiB.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DiskImageDescription |
withChecksum(java.lang.String checksum)
The checksum computed for the disk image.
|
DiskImageDescription |
withFormat(DiskImageFormat format)
The disk image format.
|
DiskImageDescription |
withFormat(java.lang.String format)
The disk image format.
|
DiskImageDescription |
withImportManifestUrl(java.lang.String importManifestUrl)
A presigned URL for the import manifest stored in Amazon S3.
|
DiskImageDescription |
withSize(java.lang.Long size)
The size of the disk image, in GiB.
|
public java.lang.String getFormat()
Constraints:
Allowed Values: VMDK, RAW, VHD
DiskImageFormat
public void setFormat(java.lang.String format)
Constraints:
Allowed Values: VMDK, RAW, VHD
format
- The disk image format.DiskImageFormat
public DiskImageDescription withFormat(java.lang.String format)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: VMDK, RAW, VHD
format
- The disk image format.DiskImageFormat
public void setFormat(DiskImageFormat format)
Constraints:
Allowed Values: VMDK, RAW, VHD
format
- The disk image format.DiskImageFormat
public DiskImageDescription withFormat(DiskImageFormat format)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: VMDK, RAW, VHD
format
- The disk image format.DiskImageFormat
public java.lang.Long getSize()
public void setSize(java.lang.Long size)
size
- The size of the disk image, in GiB.public DiskImageDescription withSize(java.lang.Long size)
Returns a reference to this object so that method calls can be chained together.
size
- The size of the disk image, in GiB.public java.lang.String getImportManifestUrl()
For information about the import manifest referenced by this API action, see VM Import Manifest.
For information about the import manifest referenced by this API action, see VM Import Manifest.
public void setImportManifestUrl(java.lang.String importManifestUrl)
For information about the import manifest referenced by this API action, see VM Import Manifest.
importManifestUrl
- A presigned URL for the import manifest stored in Amazon S3. For
information about creating a presigned URL for an Amazon S3 object,
read the "Query String Request Authentication Alternative" section of
the Authenticating
REST Requests topic in the Amazon Simple Storage Service
Developer Guide. For information about the import manifest referenced by this API action, see VM Import Manifest.
public DiskImageDescription withImportManifestUrl(java.lang.String importManifestUrl)
For information about the import manifest referenced by this API action, see VM Import Manifest.
Returns a reference to this object so that method calls can be chained together.
importManifestUrl
- A presigned URL for the import manifest stored in Amazon S3. For
information about creating a presigned URL for an Amazon S3 object,
read the "Query String Request Authentication Alternative" section of
the Authenticating
REST Requests topic in the Amazon Simple Storage Service
Developer Guide. For information about the import manifest referenced by this API action, see VM Import Manifest.
public java.lang.String getChecksum()
public void setChecksum(java.lang.String checksum)
checksum
- The checksum computed for the disk image.public DiskImageDescription withChecksum(java.lang.String checksum)
Returns a reference to this object so that method calls can be chained together.
checksum
- The checksum computed for the disk image.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
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.