public class SnapshotDetail
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the snapshot created from the imported disk.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description
A description for the snapshot.
|
private java.lang.String |
deviceName
The block device mapping for the snapshot.
|
private java.lang.Double |
diskImageSize
The size of the disk in the snapshot, in GiB.
|
private java.lang.String |
format
The format of the disk image from which the snapshot is created.
|
private java.lang.String |
progress
The percentage of progress for the task.
|
private java.lang.String |
snapshotId
The snapshot ID of the disk being imported.
|
private java.lang.String |
status
A brief status of the snapshot creation.
|
private java.lang.String |
statusMessage
A detailed status message for the snapshot creation.
|
private java.lang.String |
url
The URL used to access the disk image.
|
private UserBucketDetails |
userBucket
The S3 bucket for the disk image.
|
Constructor and Description |
---|
SnapshotDetail() |
Modifier and Type | Method and Description |
---|---|
SnapshotDetail |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
A description for the snapshot.
|
java.lang.String |
getDeviceName()
The block device mapping for the snapshot.
|
java.lang.Double |
getDiskImageSize()
The size of the disk in the snapshot, in GiB.
|
java.lang.String |
getFormat()
The format of the disk image from which the snapshot is created.
|
java.lang.String |
getProgress()
The percentage of progress for the task.
|
java.lang.String |
getSnapshotId()
The snapshot ID of the disk being imported.
|
java.lang.String |
getStatus()
A brief status of the snapshot creation.
|
java.lang.String |
getStatusMessage()
A detailed status message for the snapshot creation.
|
java.lang.String |
getUrl()
The URL used to access the disk image.
|
UserBucketDetails |
getUserBucket()
The S3 bucket for the disk image.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
A description for the snapshot.
|
void |
setDeviceName(java.lang.String deviceName)
The block device mapping for the snapshot.
|
void |
setDiskImageSize(java.lang.Double diskImageSize)
The size of the disk in the snapshot, in GiB.
|
void |
setFormat(java.lang.String format)
The format of the disk image from which the snapshot is created.
|
void |
setProgress(java.lang.String progress)
The percentage of progress for the task.
|
void |
setSnapshotId(java.lang.String snapshotId)
The snapshot ID of the disk being imported.
|
void |
setStatus(java.lang.String status)
A brief status of the snapshot creation.
|
void |
setStatusMessage(java.lang.String statusMessage)
A detailed status message for the snapshot creation.
|
void |
setUrl(java.lang.String url)
The URL used to access the disk image.
|
void |
setUserBucket(UserBucketDetails userBucket)
The S3 bucket for the disk image.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SnapshotDetail |
withDescription(java.lang.String description)
A description for the snapshot.
|
SnapshotDetail |
withDeviceName(java.lang.String deviceName)
The block device mapping for the snapshot.
|
SnapshotDetail |
withDiskImageSize(java.lang.Double diskImageSize)
The size of the disk in the snapshot, in GiB.
|
SnapshotDetail |
withFormat(java.lang.String format)
The format of the disk image from which the snapshot is created.
|
SnapshotDetail |
withProgress(java.lang.String progress)
The percentage of progress for the task.
|
SnapshotDetail |
withSnapshotId(java.lang.String snapshotId)
The snapshot ID of the disk being imported.
|
SnapshotDetail |
withStatus(java.lang.String status)
A brief status of the snapshot creation.
|
SnapshotDetail |
withStatusMessage(java.lang.String statusMessage)
A detailed status message for the snapshot creation.
|
SnapshotDetail |
withUrl(java.lang.String url)
The URL used to access the disk image.
|
SnapshotDetail |
withUserBucket(UserBucketDetails userBucket)
The S3 bucket for the disk image.
|
private java.lang.Double diskImageSize
The size of the disk in the snapshot, in GiB.
private java.lang.String description
A description for the snapshot.
private java.lang.String format
The format of the disk image from which the snapshot is created.
private java.lang.String url
The URL used to access the disk image.
private UserBucketDetails userBucket
The S3 bucket for the disk image.
private java.lang.String deviceName
The block device mapping for the snapshot.
private java.lang.String snapshotId
The snapshot ID of the disk being imported.
private java.lang.String progress
The percentage of progress for the task.
private java.lang.String statusMessage
A detailed status message for the snapshot creation.
private java.lang.String status
A brief status of the snapshot creation.
public void setDiskImageSize(java.lang.Double diskImageSize)
The size of the disk in the snapshot, in GiB.
diskImageSize
- The size of the disk in the snapshot, in GiB.public java.lang.Double getDiskImageSize()
The size of the disk in the snapshot, in GiB.
public SnapshotDetail withDiskImageSize(java.lang.Double diskImageSize)
The size of the disk in the snapshot, in GiB.
diskImageSize
- The size of the disk in the snapshot, in GiB.public void setDescription(java.lang.String description)
A description for the snapshot.
description
- A description for the snapshot.public java.lang.String getDescription()
A description for the snapshot.
public SnapshotDetail withDescription(java.lang.String description)
A description for the snapshot.
description
- A description for the snapshot.public void setFormat(java.lang.String format)
The format of the disk image from which the snapshot is created.
format
- The format of the disk image from which the snapshot is created.public java.lang.String getFormat()
The format of the disk image from which the snapshot is created.
public SnapshotDetail withFormat(java.lang.String format)
The format of the disk image from which the snapshot is created.
format
- The format of the disk image from which the snapshot is created.public void setUrl(java.lang.String url)
The URL used to access the disk image.
url
- The URL used to access the disk image.public java.lang.String getUrl()
The URL used to access the disk image.
public SnapshotDetail withUrl(java.lang.String url)
The URL used to access the disk image.
url
- The URL used to access the disk image.public void setUserBucket(UserBucketDetails userBucket)
The S3 bucket for the disk image.
userBucket
- The S3 bucket for the disk image.public UserBucketDetails getUserBucket()
The S3 bucket for the disk image.
public SnapshotDetail withUserBucket(UserBucketDetails userBucket)
The S3 bucket for the disk image.
userBucket
- The S3 bucket for the disk image.public void setDeviceName(java.lang.String deviceName)
The block device mapping for the snapshot.
deviceName
- The block device mapping for the snapshot.public java.lang.String getDeviceName()
The block device mapping for the snapshot.
public SnapshotDetail withDeviceName(java.lang.String deviceName)
The block device mapping for the snapshot.
deviceName
- The block device mapping for the snapshot.public void setSnapshotId(java.lang.String snapshotId)
The snapshot ID of the disk being imported.
snapshotId
- The snapshot ID of the disk being imported.public java.lang.String getSnapshotId()
The snapshot ID of the disk being imported.
public SnapshotDetail withSnapshotId(java.lang.String snapshotId)
The snapshot ID of the disk being imported.
snapshotId
- The snapshot ID of the disk being imported.public void setProgress(java.lang.String progress)
The percentage of progress for the task.
progress
- The percentage of progress for the task.public java.lang.String getProgress()
The percentage of progress for the task.
public SnapshotDetail withProgress(java.lang.String progress)
The percentage of progress for the task.
progress
- The percentage of progress for the task.public void setStatusMessage(java.lang.String statusMessage)
A detailed status message for the snapshot creation.
statusMessage
- A detailed status message for the snapshot creation.public java.lang.String getStatusMessage()
A detailed status message for the snapshot creation.
public SnapshotDetail withStatusMessage(java.lang.String statusMessage)
A detailed status message for the snapshot creation.
statusMessage
- A detailed status message for the snapshot creation.public void setStatus(java.lang.String status)
A brief status of the snapshot creation.
status
- A brief status of the snapshot creation.public java.lang.String getStatus()
A brief status of the snapshot creation.
public SnapshotDetail withStatus(java.lang.String status)
A brief status of the snapshot creation.
status
- A brief status of the snapshot creation.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 SnapshotDetail clone()
clone
in class java.lang.Object