public class SnapshotDiskContainer
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The disk container object for the import snapshot request.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description
The description of the disk image being imported.
|
private java.lang.String |
format
The format of the disk image being imported.
|
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 |
---|
SnapshotDiskContainer() |
Modifier and Type | Method and Description |
---|---|
SnapshotDiskContainer |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
The description of the disk image being imported.
|
java.lang.String |
getFormat()
The format of the disk image being imported.
|
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 being imported.
|
void |
setFormat(java.lang.String format)
The format of the disk image being imported.
|
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.
|
SnapshotDiskContainer |
withDescription(java.lang.String description)
The description of the disk image being imported.
|
SnapshotDiskContainer |
withFormat(java.lang.String format)
The format of the disk image being imported.
|
SnapshotDiskContainer |
withUrl(java.lang.String url)
The URL to the Amazon S3-based disk image being imported.
|
SnapshotDiskContainer |
withUserBucket(UserBucket userBucket)
The S3 bucket for the disk image.
|
private java.lang.String description
The description of the disk image being imported.
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. It can either be a https URL (https://..) or an Amazon S3 URL (s3://..).
private UserBucket userBucket
The S3 bucket for the disk image.
public void setDescription(java.lang.String description)
The description of the disk image being imported.
description
- The description of the disk image being imported.public java.lang.String getDescription()
The description of the disk image being imported.
public SnapshotDiskContainer withDescription(java.lang.String description)
The description of the disk image being imported.
description
- The description of the disk image being imported.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 SnapshotDiskContainer 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. It 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. It 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. It can either be a https URL (https://..) or an Amazon S3 URL (s3://..).
public SnapshotDiskContainer withUrl(java.lang.String url)
The URL to the Amazon S3-based disk image being imported. It 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. It 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 SnapshotDiskContainer withUserBucket(UserBucket userBucket)
The S3 bucket for the disk image.
userBucket
- The S3 bucket for the disk image.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 SnapshotDiskContainer clone()
clone
in class java.lang.Object