public class Snapshot extends Object implements Serializable
Describes a snapshot.
Constructor and Description |
---|
Snapshot() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDescription()
The description for the snapshot.
|
Boolean |
getEncrypted()
Indicates whether the snapshot is encrypted.
|
String |
getOwnerAlias()
The AWS account alias (for example,
amazon ,
self ) or AWS account ID that owns the snapshot. |
String |
getOwnerId()
The AWS account ID of the Amazon EBS snapshot owner.
|
String |
getProgress()
The progress of the snapshot, as a percentage.
|
String |
getSnapshotId()
The ID of the snapshot.
|
Date |
getStartTime()
The time stamp when the snapshot was initiated.
|
String |
getState()
The snapshot state.
|
List<Tag> |
getTags()
Any tags assigned to the snapshot.
|
String |
getVolumeId()
The ID of the volume.
|
Integer |
getVolumeSize()
The size of the volume, in GiB.
|
int |
hashCode() |
Boolean |
isEncrypted()
Indicates whether the snapshot is encrypted.
|
void |
setDescription(String description)
The description for the snapshot.
|
void |
setEncrypted(Boolean encrypted)
Indicates whether the snapshot is encrypted.
|
void |
setOwnerAlias(String ownerAlias)
The AWS account alias (for example,
amazon ,
self ) or AWS account ID that owns the snapshot. |
void |
setOwnerId(String ownerId)
The AWS account ID of the Amazon EBS snapshot owner.
|
void |
setProgress(String progress)
The progress of the snapshot, as a percentage.
|
void |
setSnapshotId(String snapshotId)
The ID of the snapshot.
|
void |
setStartTime(Date startTime)
The time stamp when the snapshot was initiated.
|
void |
setState(SnapshotState state)
The snapshot state.
|
void |
setState(String state)
The snapshot state.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the snapshot.
|
void |
setVolumeId(String volumeId)
The ID of the volume.
|
void |
setVolumeSize(Integer volumeSize)
The size of the volume, in GiB.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Snapshot |
withDescription(String description)
The description for the snapshot.
|
Snapshot |
withEncrypted(Boolean encrypted)
Indicates whether the snapshot is encrypted.
|
Snapshot |
withOwnerAlias(String ownerAlias)
The AWS account alias (for example,
amazon ,
self ) or AWS account ID that owns the snapshot. |
Snapshot |
withOwnerId(String ownerId)
The AWS account ID of the Amazon EBS snapshot owner.
|
Snapshot |
withProgress(String progress)
The progress of the snapshot, as a percentage.
|
Snapshot |
withSnapshotId(String snapshotId)
The ID of the snapshot.
|
Snapshot |
withStartTime(Date startTime)
The time stamp when the snapshot was initiated.
|
Snapshot |
withState(SnapshotState state)
The snapshot state.
|
Snapshot |
withState(String state)
The snapshot state.
|
Snapshot |
withTags(Collection<Tag> tags)
Any tags assigned to the snapshot.
|
Snapshot |
withTags(Tag... tags)
Any tags assigned to the snapshot.
|
Snapshot |
withVolumeId(String volumeId)
The ID of the volume.
|
Snapshot |
withVolumeSize(Integer volumeSize)
The size of the volume, in GiB.
|
public String getSnapshotId()
public void setSnapshotId(String snapshotId)
snapshotId
- The ID of the snapshot.public Snapshot withSnapshotId(String snapshotId)
Returns a reference to this object so that method calls can be chained together.
snapshotId
- The ID of the snapshot.public String getVolumeId()
public void setVolumeId(String volumeId)
volumeId
- The ID of the volume.public Snapshot withVolumeId(String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId
- The ID of the volume.public String getState()
Constraints:
Allowed Values: pending, completed, error
SnapshotState
public void setState(String state)
Constraints:
Allowed Values: pending, completed, error
state
- The snapshot state.SnapshotState
public Snapshot withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, completed, error
state
- The snapshot state.SnapshotState
public void setState(SnapshotState state)
Constraints:
Allowed Values: pending, completed, error
state
- The snapshot state.SnapshotState
public Snapshot withState(SnapshotState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, completed, error
state
- The snapshot state.SnapshotState
public Date getStartTime()
public void setStartTime(Date startTime)
startTime
- The time stamp when the snapshot was initiated.public Snapshot withStartTime(Date startTime)
Returns a reference to this object so that method calls can be chained together.
startTime
- The time stamp when the snapshot was initiated.public String getProgress()
public void setProgress(String progress)
progress
- The progress of the snapshot, as a percentage.public Snapshot withProgress(String progress)
Returns a reference to this object so that method calls can be chained together.
progress
- The progress of the snapshot, as a percentage.public String getOwnerId()
public void setOwnerId(String ownerId)
ownerId
- The AWS account ID of the Amazon EBS snapshot owner.public Snapshot withOwnerId(String ownerId)
Returns a reference to this object so that method calls can be chained together.
ownerId
- The AWS account ID of the Amazon EBS snapshot owner.public String getDescription()
public void setDescription(String description)
description
- The description for the snapshot.public Snapshot withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- The description for the snapshot.public Integer getVolumeSize()
public void setVolumeSize(Integer volumeSize)
volumeSize
- The size of the volume, in GiB.public Snapshot withVolumeSize(Integer volumeSize)
Returns a reference to this object so that method calls can be chained together.
volumeSize
- The size of the volume, in GiB.public String getOwnerAlias()
amazon
,
self
) or AWS account ID that owns the snapshot.amazon
,
self
) or AWS account ID that owns the snapshot.public void setOwnerAlias(String ownerAlias)
amazon
,
self
) or AWS account ID that owns the snapshot.ownerAlias
- The AWS account alias (for example, amazon
,
self
) or AWS account ID that owns the snapshot.public Snapshot withOwnerAlias(String ownerAlias)
amazon
,
self
) or AWS account ID that owns the snapshot.
Returns a reference to this object so that method calls can be chained together.
ownerAlias
- The AWS account alias (for example, amazon
,
self
) or AWS account ID that owns the snapshot.public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags
- Any tags assigned to the snapshot.public Snapshot withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the snapshot.public Snapshot withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the snapshot.public Boolean isEncrypted()
public void setEncrypted(Boolean encrypted)
encrypted
- Indicates whether the snapshot is encrypted.public Snapshot withEncrypted(Boolean encrypted)
Returns a reference to this object so that method calls can be chained together.
encrypted
- Indicates whether the snapshot is encrypted.public Boolean getEncrypted()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.