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