public class Snapshot extends Object implements Serializable, Cloneable
Describes a snapshot.
Constructor and Description |
---|
Snapshot() |
Modifier and Type | Method and Description |
---|---|
Snapshot |
clone() |
boolean |
equals(Object obj) |
String |
getDataEncryptionKeyId()
The data encryption key identifier for the snapshot.
|
String |
getDescription()
The description for the snapshot.
|
Boolean |
getEncrypted()
Indicates whether the snapshot is encrypted.
|
String |
getKmsKeyId()
The full ARN of the AWS Key Management Service (AWS KMS) customer master
key (CMK) that was used to protect the volume encryption key for the
parent volume.
|
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 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.
|
String |
getStateMessage()
Encrypted Amazon EBS snapshots are copied asynchronously.
|
List<Tag> |
getTags()
Any tags assigned to the snapshot.
|
String |
getVolumeId()
The ID of the volume that was used to create the snapshot.
|
Integer |
getVolumeSize()
The size of the volume, in GiB.
|
int |
hashCode() |
Boolean |
isEncrypted()
Indicates whether the snapshot is encrypted.
|
void |
setDataEncryptionKeyId(String dataEncryptionKeyId)
The data encryption key identifier for the snapshot.
|
void |
setDescription(String description)
The description for the snapshot.
|
void |
setEncrypted(Boolean encrypted)
Indicates whether the snapshot is encrypted.
|
void |
setKmsKeyId(String kmsKeyId)
The full ARN of the AWS Key Management Service (AWS KMS) customer master
key (CMK) that was used to protect the volume encryption key for the
parent volume.
|
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 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 |
setStateMessage(String stateMessage)
Encrypted Amazon EBS snapshots are copied asynchronously.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the snapshot.
|
void |
setVolumeId(String volumeId)
The ID of the volume that was used to create the snapshot.
|
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 |
withDataEncryptionKeyId(String dataEncryptionKeyId)
The data encryption key identifier for the snapshot.
|
Snapshot |
withDescription(String description)
The description for the snapshot.
|
Snapshot |
withEncrypted(Boolean encrypted)
Indicates whether the snapshot is encrypted.
|
Snapshot |
withKmsKeyId(String kmsKeyId)
The full ARN of the AWS Key Management Service (AWS KMS) customer master
key (CMK) that was used to protect the volume encryption key for the
parent volume.
|
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 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 |
withStateMessage(String stateMessage)
Encrypted Amazon EBS snapshots are copied asynchronously.
|
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 that was used to create the snapshot.
|
Snapshot |
withVolumeSize(Integer volumeSize)
The size of the volume, in GiB.
|
public void setSnapshotId(String snapshotId)
The ID of the snapshot. Each snapshot receives a unique identifier when it is created.
snapshotId
- The ID of the snapshot. Each snapshot receives a unique identifier
when it is created.public String getSnapshotId()
The ID of the snapshot. Each snapshot receives a unique identifier when it is created.
public Snapshot withSnapshotId(String snapshotId)
The ID of the snapshot. Each snapshot receives a unique identifier when it is created.
snapshotId
- The ID of the snapshot. Each snapshot receives a unique identifier
when it is created.public void setVolumeId(String volumeId)
The ID of the volume that was used to create the snapshot.
volumeId
- The ID of the volume that was used to create the snapshot.public String getVolumeId()
The ID of the volume that was used to create the snapshot.
public Snapshot withVolumeId(String volumeId)
The ID of the volume that was used to create the snapshot.
volumeId
- The ID of the volume that was used to create the snapshot.public void setState(String state)
The snapshot state.
state
- The snapshot state.SnapshotState
public String getState()
The snapshot state.
SnapshotState
public Snapshot withState(String state)
The snapshot state.
state
- The snapshot state.SnapshotState
public void setState(SnapshotState state)
The snapshot state.
state
- The snapshot state.SnapshotState
public Snapshot withState(SnapshotState state)
The snapshot state.
state
- The snapshot state.SnapshotState
public void setStateMessage(String stateMessage)
Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example, if the proper AWS Key Management Service (AWS KMS) permissions are not obtained) this field displays error state details to help you diagnose why the error occurred. This parameter is only returned by the DescribeSnapshots API operation.
stateMessage
- Encrypted Amazon EBS snapshots are copied asynchronously. If a
snapshot copy operation fails (for example, if the proper AWS Key
Management Service (AWS KMS) permissions are not obtained) this
field displays error state details to help you diagnose why the
error occurred. This parameter is only returned by the
DescribeSnapshots API operation.public String getStateMessage()
Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example, if the proper AWS Key Management Service (AWS KMS) permissions are not obtained) this field displays error state details to help you diagnose why the error occurred. This parameter is only returned by the DescribeSnapshots API operation.
public Snapshot withStateMessage(String stateMessage)
Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example, if the proper AWS Key Management Service (AWS KMS) permissions are not obtained) this field displays error state details to help you diagnose why the error occurred. This parameter is only returned by the DescribeSnapshots API operation.
stateMessage
- Encrypted Amazon EBS snapshots are copied asynchronously. If a
snapshot copy operation fails (for example, if the proper AWS Key
Management Service (AWS KMS) permissions are not obtained) this
field displays error state details to help you diagnose why the
error occurred. This parameter is only returned by the
DescribeSnapshots API operation.public void setStartTime(Date startTime)
The time stamp when the snapshot was initiated.
startTime
- The time stamp when the snapshot was initiated.public Date getStartTime()
The time stamp when the snapshot was initiated.
public Snapshot withStartTime(Date startTime)
The time stamp when the snapshot was initiated.
startTime
- The time stamp when the snapshot was initiated.public void setProgress(String progress)
The progress of the snapshot, as a percentage.
progress
- The progress of the snapshot, as a percentage.public String getProgress()
The progress of the snapshot, as a percentage.
public Snapshot withProgress(String progress)
The progress of the snapshot, as a percentage.
progress
- The progress of the snapshot, as a percentage.public void setOwnerId(String ownerId)
The AWS account ID of the EBS snapshot owner.
ownerId
- The AWS account ID of the EBS snapshot owner.public String getOwnerId()
The AWS account ID of the EBS snapshot owner.
public Snapshot withOwnerId(String ownerId)
The AWS account ID of the EBS snapshot owner.
ownerId
- The AWS account ID of the EBS snapshot owner.public void setDescription(String description)
The description for the snapshot.
description
- The description for the snapshot.public String getDescription()
The description for the snapshot.
public Snapshot withDescription(String description)
The description for the snapshot.
description
- The description for the snapshot.public void setVolumeSize(Integer volumeSize)
The size of the volume, in GiB.
volumeSize
- The size of the volume, in GiB.public Integer getVolumeSize()
The size of the volume, in GiB.
public Snapshot withVolumeSize(Integer volumeSize)
The size of the volume, in GiB.
volumeSize
- The size of the volume, in GiB.public void setOwnerAlias(String ownerAlias)
The AWS account alias (for example, 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 String getOwnerAlias()
The AWS account alias (for example, amazon
,
self
) or AWS account ID that owns the snapshot.
amazon
,
self
) or AWS account ID that owns the snapshot.public Snapshot withOwnerAlias(String ownerAlias)
The AWS account alias (for example, 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 List<Tag> getTags()
Any tags assigned to the snapshot.
public void setTags(Collection<Tag> tags)
Any tags assigned to the snapshot.
tags
- Any tags assigned to the snapshot.public Snapshot withTags(Tag... tags)
Any tags assigned to the snapshot.
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or
withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the snapshot.public Snapshot withTags(Collection<Tag> tags)
Any tags assigned to the snapshot.
tags
- Any tags assigned to the snapshot.public void setEncrypted(Boolean encrypted)
Indicates whether the snapshot is encrypted.
encrypted
- Indicates whether the snapshot is encrypted.public Boolean getEncrypted()
Indicates whether the snapshot is encrypted.
public Snapshot withEncrypted(Boolean encrypted)
Indicates whether the snapshot is encrypted.
encrypted
- Indicates whether the snapshot is encrypted.public Boolean isEncrypted()
Indicates whether the snapshot is encrypted.
public void setKmsKeyId(String kmsKeyId)
The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the parent volume.
kmsKeyId
- The full ARN of the AWS Key Management Service (AWS KMS) customer
master key (CMK) that was used to protect the volume encryption
key for the parent volume.public String getKmsKeyId()
The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the parent volume.
public Snapshot withKmsKeyId(String kmsKeyId)
The full ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the parent volume.
kmsKeyId
- The full ARN of the AWS Key Management Service (AWS KMS) customer
master key (CMK) that was used to protect the volume encryption
key for the parent volume.public void setDataEncryptionKeyId(String dataEncryptionKeyId)
The data encryption key identifier for the snapshot. This value is a unique identifier that corresponds to the data encryption key that was used to encrypt the original volume or snapshot copy. Because data encryption keys are inherited by volumes created from snapshots, and vice versa, if snapshots share the same data encryption key identifier, then they belong to the same volume/snapshot lineage. This parameter is only returned by the DescribeSnapshots API operation.
dataEncryptionKeyId
- The data encryption key identifier for the snapshot. This value is
a unique identifier that corresponds to the data encryption key
that was used to encrypt the original volume or snapshot copy.
Because data encryption keys are inherited by volumes created from
snapshots, and vice versa, if snapshots share the same data
encryption key identifier, then they belong to the same
volume/snapshot lineage. This parameter is only returned by the
DescribeSnapshots API operation.public String getDataEncryptionKeyId()
The data encryption key identifier for the snapshot. This value is a unique identifier that corresponds to the data encryption key that was used to encrypt the original volume or snapshot copy. Because data encryption keys are inherited by volumes created from snapshots, and vice versa, if snapshots share the same data encryption key identifier, then they belong to the same volume/snapshot lineage. This parameter is only returned by the DescribeSnapshots API operation.
public Snapshot withDataEncryptionKeyId(String dataEncryptionKeyId)
The data encryption key identifier for the snapshot. This value is a unique identifier that corresponds to the data encryption key that was used to encrypt the original volume or snapshot copy. Because data encryption keys are inherited by volumes created from snapshots, and vice versa, if snapshots share the same data encryption key identifier, then they belong to the same volume/snapshot lineage. This parameter is only returned by the DescribeSnapshots API operation.
dataEncryptionKeyId
- The data encryption key identifier for the snapshot. This value is
a unique identifier that corresponds to the data encryption key
that was used to encrypt the original volume or snapshot copy.
Because data encryption keys are inherited by volumes created from
snapshots, and vice versa, if snapshots share the same data
encryption key identifier, then they belong to the same
volume/snapshot lineage. This parameter is only returned by the
DescribeSnapshots API operation.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.