public class ImageDiskContainer
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the disk container object for an import image task.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description
The description of the disk image.
|
private java.lang.String |
deviceName
The block device mapping for the disk.
|
private java.lang.String |
format
The format of the disk image being imported.
|
private java.lang.String |
snapshotId
The ID of the EBS snapshot to be used for importing the snapshot.
|
private java.lang.String |
url
The URL to the Amazon S3-based disk image being imported.
|
private UserBucket |
userBucket
The S3 bucket for the disk image.
|
Constructor and Description |
---|
ImageDiskContainer() |
Modifier and Type | Method and Description |
---|---|
ImageDiskContainer |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
The description of the disk image.
|
java.lang.String |
getDeviceName()
The block device mapping for the disk.
|
java.lang.String |
getFormat()
The format of the disk image being imported.
|
java.lang.String |
getSnapshotId()
The ID of the EBS snapshot to be used for importing the snapshot.
|
java.lang.String |
getUrl()
The URL to the Amazon S3-based disk image being imported.
|
UserBucket |
getUserBucket()
The S3 bucket for the disk image.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
The description of the disk image.
|
void |
setDeviceName(java.lang.String deviceName)
The block device mapping for the disk.
|
void |
setFormat(java.lang.String format)
The format of the disk image being imported.
|
void |
setSnapshotId(java.lang.String snapshotId)
The ID of the EBS snapshot to be used for importing the snapshot.
|
void |
setUrl(java.lang.String url)
The URL to the Amazon S3-based disk image being imported.
|
void |
setUserBucket(UserBucket userBucket)
The S3 bucket for the disk image.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ImageDiskContainer |
withDescription(java.lang.String description)
The description of the disk image.
|
ImageDiskContainer |
withDeviceName(java.lang.String deviceName)
The block device mapping for the disk.
|
ImageDiskContainer |
withFormat(java.lang.String format)
The format of the disk image being imported.
|
ImageDiskContainer |
withSnapshotId(java.lang.String snapshotId)
The ID of the EBS snapshot to be used for importing the snapshot.
|
ImageDiskContainer |
withUrl(java.lang.String url)
The URL to the Amazon S3-based disk image being imported.
|
ImageDiskContainer |
withUserBucket(UserBucket userBucket)
The S3 bucket for the disk image.
|
private java.lang.String description
The description of the disk image.
private java.lang.String format
The format of the disk image being imported.
Valid values: RAW
| VHD
| VMDK
|
OVA
private java.lang.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://..)
private UserBucket userBucket
The S3 bucket for the disk image.
private java.lang.String deviceName
The block device mapping for the disk.
private java.lang.String snapshotId
The ID of the EBS snapshot to be used for importing the snapshot.
public void setDescription(java.lang.String description)
The description of the disk image.
description
- The description of the disk image.public java.lang.String getDescription()
The description of the disk image.
public ImageDiskContainer withDescription(java.lang.String description)
The description of the disk image.
description
- The description of the disk image.public void setFormat(java.lang.String format)
The format of the disk image being imported.
Valid values: RAW
| VHD
| VMDK
|
OVA
format
- The format of the disk image being imported.
Valid values: RAW
| VHD
|
VMDK
| OVA
public java.lang.String getFormat()
The format of the disk image being imported.
Valid values: RAW
| VHD
| VMDK
|
OVA
Valid values: RAW
| VHD
|
VMDK
| OVA
public ImageDiskContainer withFormat(java.lang.String format)
The format of the disk image being imported.
Valid values: RAW
| VHD
| VMDK
|
OVA
format
- The format of the disk image being imported.
Valid values: RAW
| VHD
|
VMDK
| OVA
public void setUrl(java.lang.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://..)
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://..)public java.lang.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://..)
public ImageDiskContainer withUrl(java.lang.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://..)
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://..)public void setUserBucket(UserBucket userBucket)
The S3 bucket for the disk image.
userBucket
- The S3 bucket for the disk image.public UserBucket getUserBucket()
The S3 bucket for the disk image.
public ImageDiskContainer withUserBucket(UserBucket userBucket)
The S3 bucket for the disk image.
userBucket
- The S3 bucket for the disk image.public void setDeviceName(java.lang.String deviceName)
The block device mapping for the disk.
deviceName
- The block device mapping for the disk.public java.lang.String getDeviceName()
The block device mapping for the disk.
public ImageDiskContainer withDeviceName(java.lang.String deviceName)
The block device mapping for the disk.
deviceName
- The block device mapping for the disk.public void setSnapshotId(java.lang.String snapshotId)
The ID of the EBS snapshot to be used for importing the snapshot.
snapshotId
- The ID of the EBS snapshot to be used for importing the snapshot.public java.lang.String getSnapshotId()
The ID of the EBS snapshot to be used for importing the snapshot.
public ImageDiskContainer withSnapshotId(java.lang.String snapshotId)
The ID of the EBS snapshot to be used for importing the snapshot.
snapshotId
- The ID of the EBS snapshot to be used for importing the snapshot.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ImageDiskContainer clone()
clone
in class java.lang.Object