Class SnapshotDiskContainer
- java.lang.Object
-
- com.amazonaws.services.ec2.model.SnapshotDiskContainer
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class SnapshotDiskContainer extends Object implements Serializable, Cloneable
The disk container object for the import snapshot request.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SnapshotDiskContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnapshotDiskContainer
clone()
boolean
equals(Object obj)
String
getDescription()
The description of the disk image being imported.String
getFormat()
The format of the disk image being imported.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 being imported.void
setFormat(String format)
The format of the disk image being imported.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.SnapshotDiskContainer
withDescription(String description)
The description of the disk image being imported.SnapshotDiskContainer
withFormat(String format)
The format of the disk image being imported.SnapshotDiskContainer
withUrl(String url)
The URL to the Amazon S3-based disk image being imported.SnapshotDiskContainer
withUserBucket(UserBucket userBucket)
The S3 bucket for the disk image.
-
-
-
Method Detail
-
setDescription
public void setDescription(String description)
The description of the disk image being imported.
- Parameters:
description
- The description of the disk image being imported.
-
getDescription
public String getDescription()
The description of the disk image being imported.
- Returns:
- The description of the disk image being imported.
-
withDescription
public SnapshotDiskContainer withDescription(String description)
The description of the disk image being imported.
- Parameters:
description
- The description of the disk image being imported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFormat
public void setFormat(String format)
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
public String 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
public SnapshotDiskContainer withFormat(String format)
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
public void setUrl(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://..).
- Parameters:
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://..).
-
getUrl
public 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://..).
- Returns:
- 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://..).
-
withUrl
public SnapshotDiskContainer withUrl(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://..).
- Parameters:
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://..).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUserBucket
public void setUserBucket(UserBucket userBucket)
The S3 bucket for the disk image.
- Parameters:
userBucket
- The S3 bucket for the disk image.
-
getUserBucket
public UserBucket getUserBucket()
The S3 bucket for the disk image.
- Returns:
- The S3 bucket for the disk image.
-
withUserBucket
public SnapshotDiskContainer withUserBucket(UserBucket userBucket)
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.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SnapshotDiskContainer clone()
-
-