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