public static interface Snapshot.Builder extends SdkPojo, CopyableBuilder<Snapshot.Builder,Snapshot>
Modifier and Type | Method and Description |
---|---|
Snapshot.Builder |
dataEncryptionKeyId(String dataEncryptionKeyId)
The data encryption key identifier for the snapshot.
|
Snapshot.Builder |
description(String description)
The description for the snapshot.
|
Snapshot.Builder |
encrypted(Boolean encrypted)
Indicates whether the snapshot is encrypted.
|
Snapshot.Builder |
kmsKeyId(String kmsKeyId)
The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that was used to protect the
volume encryption key for the parent volume.
|
Snapshot.Builder |
outpostArn(String outpostArn)
The ARN of the Outpost on which the snapshot is stored.
|
Snapshot.Builder |
ownerAlias(String ownerAlias)
The Amazon Web Services owner alias, from an Amazon-maintained list (
amazon ). |
Snapshot.Builder |
ownerId(String ownerId)
The ID of the Amazon Web Services account that owns the EBS snapshot.
|
Snapshot.Builder |
progress(String progress)
The progress of the snapshot, as a percentage.
|
Snapshot.Builder |
restoreExpiryTime(Instant restoreExpiryTime)
Only for archived snapshots that are temporarily restored.
|
Snapshot.Builder |
snapshotId(String snapshotId)
The ID of the snapshot.
|
Snapshot.Builder |
startTime(Instant startTime)
The time stamp when the snapshot was initiated.
|
Snapshot.Builder |
state(SnapshotState state)
The snapshot state.
|
Snapshot.Builder |
state(String state)
The snapshot state.
|
Snapshot.Builder |
stateMessage(String stateMessage)
Encrypted Amazon EBS snapshots are copied asynchronously.
|
Snapshot.Builder |
storageTier(StorageTier storageTier)
The storage tier in which the snapshot is stored.
|
Snapshot.Builder |
storageTier(String storageTier)
The storage tier in which the snapshot is stored.
|
Snapshot.Builder |
tags(Collection<Tag> tags)
Any tags assigned to the snapshot.
|
Snapshot.Builder |
tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the snapshot.
|
Snapshot.Builder |
tags(Tag... tags)
Any tags assigned to the snapshot.
|
Snapshot.Builder |
volumeId(String volumeId)
The ID of the volume that was used to create the snapshot.
|
Snapshot.Builder |
volumeSize(Integer volumeSize)
The size of the volume, in GiB.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
Snapshot.Builder dataEncryptionKeyId(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 DescribeSnapshots.
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 DescribeSnapshots.Snapshot.Builder description(String description)
The description for the snapshot.
description
- The description for the snapshot.Snapshot.Builder encrypted(Boolean encrypted)
Indicates whether the snapshot is encrypted.
encrypted
- Indicates whether the snapshot is encrypted.Snapshot.Builder kmsKeyId(String kmsKeyId)
The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that was used to protect the volume encryption key for the parent volume.
kmsKeyId
- The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS key that was used to protect
the volume encryption key for the parent volume.Snapshot.Builder ownerId(String ownerId)
The ID of the Amazon Web Services account that owns the EBS snapshot.
ownerId
- The ID of the Amazon Web Services account that owns the EBS snapshot.Snapshot.Builder progress(String progress)
The progress of the snapshot, as a percentage.
progress
- The progress of the snapshot, as a percentage.Snapshot.Builder snapshotId(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.Snapshot.Builder startTime(Instant startTime)
The time stamp when the snapshot was initiated.
startTime
- The time stamp when the snapshot was initiated.Snapshot.Builder state(String state)
The snapshot state.
state
- The snapshot state.SnapshotState
,
SnapshotState
Snapshot.Builder state(SnapshotState state)
The snapshot state.
state
- The snapshot state.SnapshotState
,
SnapshotState
Snapshot.Builder stateMessage(String stateMessage)
Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example, if the proper Key Management Service (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 DescribeSnapshots.
stateMessage
- Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for
example, if the proper Key Management Service (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
DescribeSnapshots.Snapshot.Builder volumeId(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.Snapshot.Builder volumeSize(Integer volumeSize)
The size of the volume, in GiB.
volumeSize
- The size of the volume, in GiB.Snapshot.Builder ownerAlias(String ownerAlias)
The Amazon Web Services owner alias, from an Amazon-maintained list (amazon
). This is not the
user-configured Amazon Web Services account alias set using the IAM console.
ownerAlias
- The Amazon Web Services owner alias, from an Amazon-maintained list (amazon
). This is not
the user-configured Amazon Web Services account alias set using the IAM console.Snapshot.Builder outpostArn(String outpostArn)
The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.
outpostArn
- The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local
snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.Snapshot.Builder tags(Collection<Tag> tags)
Any tags assigned to the snapshot.
tags
- Any tags assigned to the snapshot.Snapshot.Builder tags(Tag... tags)
Any tags assigned to the snapshot.
tags
- Any tags assigned to the snapshot.Snapshot.Builder tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the snapshot.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually via
Tag.builder()
.
When the Consumer
completes, SdkBuilder.build()
is
called immediately and its result is passed to #tags(List
.
tags
- a consumer that will call methods on Tag.Builder
#tags(java.util.Collection)
Snapshot.Builder storageTier(String storageTier)
The storage tier in which the snapshot is stored. standard
indicates that the snapshot is stored
in the standard snapshot storage tier and that it is ready for use. archive
indicates that the
snapshot is currently archived and that it must be restored before it can be used.
storageTier
- The storage tier in which the snapshot is stored. standard
indicates that the snapshot is
stored in the standard snapshot storage tier and that it is ready for use. archive
indicates that the snapshot is currently archived and that it must be restored before it can be used.StorageTier
,
StorageTier
Snapshot.Builder storageTier(StorageTier storageTier)
The storage tier in which the snapshot is stored. standard
indicates that the snapshot is stored
in the standard snapshot storage tier and that it is ready for use. archive
indicates that the
snapshot is currently archived and that it must be restored before it can be used.
storageTier
- The storage tier in which the snapshot is stored. standard
indicates that the snapshot is
stored in the standard snapshot storage tier and that it is ready for use. archive
indicates that the snapshot is currently archived and that it must be restored before it can be used.StorageTier
,
StorageTier
Snapshot.Builder restoreExpiryTime(Instant restoreExpiryTime)
Only for archived snapshots that are temporarily restored. Indicates the date and time when a temporarily restored snapshot will be automatically re-archived.
restoreExpiryTime
- Only for archived snapshots that are temporarily restored. Indicates the date and time when a
temporarily restored snapshot will be automatically re-archived.Copyright © 2023. All rights reserved.