public class Snapshot extends Object implements Serializable
Constructor and Description |
---|
Snapshot() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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()
Value from an Amazon-maintained list (
amazon | aws-marketplace | microsoft
) of snapshot owners. |
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)
Value from an Amazon-maintained list (
amazon | aws-marketplace | microsoft
) of snapshot owners. |
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() |
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 void setVolumeId(String volumeId)
The ID of the volume that was used to create the snapshot. Snapshots created by the CopySnapshot action have an arbitrary volume ID that should not be used for any purpose.
volumeId
- The ID of the volume that was used to create the snapshot. Snapshots created by the CopySnapshot
action have an arbitrary volume ID that should not be used for any purpose.public String getVolumeId()
The ID of the volume that was used to create the snapshot. Snapshots created by the CopySnapshot action have an arbitrary volume ID that should not be used for any purpose.
public void setState(String state)
The snapshot state.
state
- The snapshot state.SnapshotState
public String getState()
The snapshot state.
SnapshotState
public void setState(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 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 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 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 void setDescription(String description)
The description for the snapshot.
description
- The description for the snapshot.public String getDescription()
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 void setOwnerAlias(String ownerAlias)
Value from an Amazon-maintained list (amazon
| aws-marketplace
| microsoft
) of snapshot owners. Not to be confused with the user-configured AWS account alias, which is set from the IAM
console.
ownerAlias
- Value from an Amazon-maintained list (amazon
| aws-marketplace
|
microsoft
) of snapshot owners. Not to be confused with the user-configured AWS account alias,
which is set from the IAM console.public String getOwnerAlias()
Value from an Amazon-maintained list (amazon
| aws-marketplace
| microsoft
) of snapshot owners. Not to be confused with the user-configured AWS account alias, which is set from the IAM
console.
amazon
| aws-marketplace
|
microsoft
) of snapshot owners. Not to be confused with the user-configured AWS account
alias, which is set from the IAM console.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 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 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 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.
Copyright © 2010–2020. All rights reserved.