Class DiskImageDescription
- java.lang.Object
-
- com.amazonaws.services.ec2.model.DiskImageDescription
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DiskImageDescription extends Object implements Serializable, Cloneable
Describes a disk image.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DiskImageDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiskImageDescription
clone()
boolean
equals(Object obj)
String
getChecksum()
The checksum computed for the disk image.String
getFormat()
The disk image format.String
getImportManifestUrl()
A presigned URL for the import manifest stored in Amazon S3.Long
getSize()
The size of the disk image, in GiB.int
hashCode()
void
setChecksum(String checksum)
The checksum computed for the disk image.void
setFormat(DiskImageFormat format)
The disk image format.void
setFormat(String format)
The disk image format.void
setImportManifestUrl(String importManifestUrl)
A presigned URL for the import manifest stored in Amazon S3.void
setSize(Long size)
The size of the disk image, in GiB.String
toString()
Returns a string representation of this object; useful for testing and debugging.DiskImageDescription
withChecksum(String checksum)
The checksum computed for the disk image.DiskImageDescription
withFormat(DiskImageFormat format)
The disk image format.DiskImageDescription
withFormat(String format)
The disk image format.DiskImageDescription
withImportManifestUrl(String importManifestUrl)
A presigned URL for the import manifest stored in Amazon S3.DiskImageDescription
withSize(Long size)
The size of the disk image, in GiB.
-
-
-
Method Detail
-
setFormat
public void setFormat(String format)
The disk image format.
- Parameters:
format
- The disk image format.- See Also:
DiskImageFormat
-
getFormat
public String getFormat()
The disk image format.
- Returns:
- The disk image format.
- See Also:
DiskImageFormat
-
withFormat
public DiskImageDescription withFormat(String format)
The disk image format.
- Parameters:
format
- The disk image format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DiskImageFormat
-
setFormat
public void setFormat(DiskImageFormat format)
The disk image format.
- Parameters:
format
- The disk image format.- See Also:
DiskImageFormat
-
withFormat
public DiskImageDescription withFormat(DiskImageFormat format)
The disk image format.
- Parameters:
format
- The disk image format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DiskImageFormat
-
setSize
public void setSize(Long size)
The size of the disk image, in GiB.
- Parameters:
size
- The size of the disk image, in GiB.
-
getSize
public Long getSize()
The size of the disk image, in GiB.
- Returns:
- The size of the disk image, in GiB.
-
withSize
public DiskImageDescription withSize(Long size)
The size of the disk image, in GiB.
- Parameters:
size
- The size of the disk image, in GiB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setImportManifestUrl
public void setImportManifestUrl(String 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.
- Parameters:
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.
-
getImportManifestUrl
public String getImportManifestUrl()
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.
- Returns:
- 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.
-
withImportManifestUrl
public DiskImageDescription withImportManifestUrl(String 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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setChecksum
public void setChecksum(String checksum)
The checksum computed for the disk image.
- Parameters:
checksum
- The checksum computed for the disk image.
-
getChecksum
public String getChecksum()
The checksum computed for the disk image.
- Returns:
- The checksum computed for the disk image.
-
withChecksum
public DiskImageDescription withChecksum(String checksum)
The checksum computed for the disk image.
- Parameters:
checksum
- The checksum computed 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DiskImageDescription clone()
-
-