Class ImageDiskContainer
- All Implemented Interfaces:
Serializable
,Cloneable
Describes the disk container object for an import image task.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The description of the disk image.The block device mapping for the disk.The format of the disk image being imported.The ID of the EBS snapshot to be used for importing the snapshot.getUrl()
The URL to the Amazon S3-based disk image being imported.The S3 bucket for the disk image.int
hashCode()
void
setDescription
(String description) The description of the disk image.void
setDeviceName
(String deviceName) The block device mapping for the disk.void
The format of the disk image being imported.void
setSnapshotId
(String snapshotId) The ID of the EBS snapshot to be used for importing the snapshot.void
The URL to the Amazon S3-based disk image being imported.void
setUserBucket
(UserBucket userBucket) The S3 bucket for the disk image.toString()
Returns a string representation of this object; useful for testing and debugging.withDescription
(String description) The description of the disk image.withDeviceName
(String deviceName) The block device mapping for the disk.withFormat
(String format) The format of the disk image being imported.withSnapshotId
(String snapshotId) The ID of the EBS snapshot to be used for importing the snapshot.The URL to the Amazon S3-based disk image being imported.withUserBucket
(UserBucket userBucket) The S3 bucket for the disk image.
-
Constructor Details
-
ImageDiskContainer
public ImageDiskContainer()
-
-
Method Details
-
setDescription
The description of the disk image.
- Parameters:
description
- The description of the disk image.
-
getDescription
The description of the disk image.
- Returns:
- The description of the disk image.
-
withDescription
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
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
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
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
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
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
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
The S3 bucket for the disk image.
- Parameters:
userBucket
- The S3 bucket for the disk image.
-
getUserBucket
The S3 bucket for the disk image.
- Returns:
- The S3 bucket for the disk image.
-
withUserBucket
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
The block device mapping for the disk.
- Parameters:
deviceName
- The block device mapping for the disk.
-
getDeviceName
The block device mapping for the disk.
- Returns:
- The block device mapping for the disk.
-
withDeviceName
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-