Class SnapshotDetail
- java.lang.Object
-
- com.amazonaws.services.ec2.model.SnapshotDetail
-
- All Implemented Interfaces:
Serializable,Cloneable
public class SnapshotDetail extends Object implements Serializable, Cloneable
Describes the snapshot created from the imported disk.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SnapshotDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnapshotDetailclone()booleanequals(Object obj)StringgetDescription()A description for the snapshot.StringgetDeviceName()The block device mapping for the snapshot.DoublegetDiskImageSize()The size of the disk in the snapshot, in GiB.StringgetFormat()The format of the disk image from which the snapshot is created.StringgetProgress()The percentage of progress for the task.StringgetSnapshotId()The snapshot ID of the disk being imported.StringgetStatus()A brief status of the snapshot creation.StringgetStatusMessage()A detailed status message for the snapshot creation.StringgetUrl()The URL used to access the disk image.UserBucketDetailsgetUserBucket()The S3 bucket for the disk image.inthashCode()voidsetDescription(String description)A description for the snapshot.voidsetDeviceName(String deviceName)The block device mapping for the snapshot.voidsetDiskImageSize(Double diskImageSize)The size of the disk in the snapshot, in GiB.voidsetFormat(String format)The format of the disk image from which the snapshot is created.voidsetProgress(String progress)The percentage of progress for the task.voidsetSnapshotId(String snapshotId)The snapshot ID of the disk being imported.voidsetStatus(String status)A brief status of the snapshot creation.voidsetStatusMessage(String statusMessage)A detailed status message for the snapshot creation.voidsetUrl(String url)The URL used to access the disk image.voidsetUserBucket(UserBucketDetails userBucket)The S3 bucket for the disk image.StringtoString()Returns a string representation of this object; useful for testing and debugging.SnapshotDetailwithDescription(String description)A description for the snapshot.SnapshotDetailwithDeviceName(String deviceName)The block device mapping for the snapshot.SnapshotDetailwithDiskImageSize(Double diskImageSize)The size of the disk in the snapshot, in GiB.SnapshotDetailwithFormat(String format)The format of the disk image from which the snapshot is created.SnapshotDetailwithProgress(String progress)The percentage of progress for the task.SnapshotDetailwithSnapshotId(String snapshotId)The snapshot ID of the disk being imported.SnapshotDetailwithStatus(String status)A brief status of the snapshot creation.SnapshotDetailwithStatusMessage(String statusMessage)A detailed status message for the snapshot creation.SnapshotDetailwithUrl(String url)The URL used to access the disk image.SnapshotDetailwithUserBucket(UserBucketDetails userBucket)The S3 bucket for the disk image.
-
-
-
Method Detail
-
setDiskImageSize
public void setDiskImageSize(Double diskImageSize)
The size of the disk in the snapshot, in GiB.
- Parameters:
diskImageSize- The size of the disk in the snapshot, in GiB.
-
getDiskImageSize
public Double getDiskImageSize()
The size of the disk in the snapshot, in GiB.
- Returns:
- The size of the disk in the snapshot, in GiB.
-
withDiskImageSize
public SnapshotDetail withDiskImageSize(Double diskImageSize)
The size of the disk in the snapshot, in GiB.
- Parameters:
diskImageSize- The size of the disk in the snapshot, in GiB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
A description for the snapshot.
- Parameters:
description- A description for the snapshot.
-
getDescription
public String getDescription()
A description for the snapshot.
- Returns:
- A description for the snapshot.
-
withDescription
public SnapshotDetail withDescription(String description)
A description for the snapshot.
- Parameters:
description- A description for the snapshot.- 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 from which the snapshot is created.
- Parameters:
format- The format of the disk image from which the snapshot is created.
-
getFormat
public String getFormat()
The format of the disk image from which the snapshot is created.
- Returns:
- The format of the disk image from which the snapshot is created.
-
withFormat
public SnapshotDetail withFormat(String format)
The format of the disk image from which the snapshot is created.
- Parameters:
format- The format of the disk image from which the snapshot is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUrl
public void setUrl(String url)
The URL used to access the disk image.
- Parameters:
url- The URL used to access the disk image.
-
getUrl
public String getUrl()
The URL used to access the disk image.
- Returns:
- The URL used to access the disk image.
-
withUrl
public SnapshotDetail withUrl(String url)
The URL used to access the disk image.
- Parameters:
url- The URL used to access the disk image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUserBucket
public void setUserBucket(UserBucketDetails userBucket)
The S3 bucket for the disk image.
- Parameters:
userBucket- The S3 bucket for the disk image.
-
getUserBucket
public UserBucketDetails getUserBucket()
The S3 bucket for the disk image.
- Returns:
- The S3 bucket for the disk image.
-
withUserBucket
public SnapshotDetail withUserBucket(UserBucketDetails 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 snapshot.
- Parameters:
deviceName- The block device mapping for the snapshot.
-
getDeviceName
public String getDeviceName()
The block device mapping for the snapshot.
- Returns:
- The block device mapping for the snapshot.
-
withDeviceName
public SnapshotDetail withDeviceName(String deviceName)
The block device mapping for the snapshot.
- Parameters:
deviceName- The block device mapping for the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSnapshotId
public void setSnapshotId(String snapshotId)
The snapshot ID of the disk being imported.
- Parameters:
snapshotId- The snapshot ID of the disk being imported.
-
getSnapshotId
public String getSnapshotId()
The snapshot ID of the disk being imported.
- Returns:
- The snapshot ID of the disk being imported.
-
withSnapshotId
public SnapshotDetail withSnapshotId(String snapshotId)
The snapshot ID of the disk being imported.
- Parameters:
snapshotId- The snapshot ID of the disk being imported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProgress
public void setProgress(String progress)
The percentage of progress for the task.
- Parameters:
progress- The percentage of progress for the task.
-
getProgress
public String getProgress()
The percentage of progress for the task.
- Returns:
- The percentage of progress for the task.
-
withProgress
public SnapshotDetail withProgress(String progress)
The percentage of progress for the task.
- Parameters:
progress- The percentage of progress for the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatusMessage
public void setStatusMessage(String statusMessage)
A detailed status message for the snapshot creation.
- Parameters:
statusMessage- A detailed status message for the snapshot creation.
-
getStatusMessage
public String getStatusMessage()
A detailed status message for the snapshot creation.
- Returns:
- A detailed status message for the snapshot creation.
-
withStatusMessage
public SnapshotDetail withStatusMessage(String statusMessage)
A detailed status message for the snapshot creation.
- Parameters:
statusMessage- A detailed status message for the snapshot creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
A brief status of the snapshot creation.
- Parameters:
status- A brief status of the snapshot creation.
-
getStatus
public String getStatus()
A brief status of the snapshot creation.
- Returns:
- A brief status of the snapshot creation.
-
withStatus
public SnapshotDetail withStatus(String status)
A brief status of the snapshot creation.
- Parameters:
status- A brief status of the snapshot creation.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SnapshotDetail clone()
-
-