public class ImageDiskContainer
extends java.lang.Object
implements java.io.Serializable
Describes the disk container object for an import image task.
Constructor and Description |
---|
ImageDiskContainer() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The description of the disk image.public ImageDiskContainer withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description
- The description of the disk image.public java.lang.String getFormat()
Valid values:
RAW
| VHD
| VMDK
|
OVA
Valid values:
RAW
| VHD
| VMDK
|
OVA
public void setFormat(java.lang.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(java.lang.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 java.lang.String getUrl()
public void setUrl(java.lang.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(java.lang.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 java.lang.String getDeviceName()
public void setDeviceName(java.lang.String deviceName)
deviceName
- The block device mapping for the disk.public ImageDiskContainer withDeviceName(java.lang.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 java.lang.String getSnapshotId()
public void setSnapshotId(java.lang.String snapshotId)
snapshotId
- The ID of the EBS snapshot to be used for importing the snapshot.public ImageDiskContainer withSnapshotId(java.lang.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 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.