Class ImageDiskContainer
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ImageDiskContainer
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ImageDiskContainer extends Object implements Serializable, Cloneable
Describes the disk container object for an import image task.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImageDiskContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setDescription
public void setDescription(String description)
The description of the disk image.
- Parameters:
description
- The description of the disk image.
-
getDescription
public String getDescription()
The description of the disk image.
- Returns:
- The description of the disk image.
-
withDescription
public ImageDiskContainer withDescription(String description)
The description of the disk image.
- Parameters:
description
- The description of the disk image.- 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 ImageDiskContainer 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. The URL 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. The URL 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. The URL 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. The URL can either be a https URL (https://..) or an Amazon S3 URL (s3://..)
-
withUrl
public ImageDiskContainer withUrl(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://..)
- Parameters:
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://..)- 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 ImageDiskContainer 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.
-
setDeviceName
public void setDeviceName(String deviceName)
The block device mapping for the disk.
- Parameters:
deviceName
- The block device mapping for the disk.
-
getDeviceName
public String getDeviceName()
The block device mapping for the disk.
- Returns:
- The block device mapping for the disk.
-
withDeviceName
public ImageDiskContainer withDeviceName(String deviceName)
The block device mapping for the disk.
- Parameters:
deviceName
- The block device mapping for the disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSnapshotId
public void setSnapshotId(String snapshotId)
The ID of the EBS snapshot to be used for importing the snapshot.
- Parameters:
snapshotId
- The ID of the EBS snapshot to be used for importing the snapshot.
-
getSnapshotId
public String getSnapshotId()
The ID of the EBS snapshot to be used for importing the snapshot.
- Returns:
- The ID of the EBS snapshot to be used for importing the snapshot.
-
withSnapshotId
public ImageDiskContainer withSnapshotId(String snapshotId)
The ID of the EBS snapshot to be used for importing the snapshot.
- Parameters:
snapshotId
- The ID of the EBS snapshot to be used for importing the snapshot.- 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 ImageDiskContainer clone()
-
-