Class Snapshot
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Snapshot.Builder,Snapshot>
Describes a snapshot.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Snapshot.Builderbuilder()final StringThe data encryption key identifier for the snapshot.final StringThe description for the snapshot.final BooleanIndicates whether the snapshot is encrypted.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final StringkmsKeyId()The Amazon Resource Name (ARN) of the KMS key that was used to protect the volume encryption key for the parent volume.final StringThe ARN of the Outpost on which the snapshot is stored.final StringThe Amazon Web Services owner alias, from an Amazon-maintained list (amazon).final StringownerId()The ID of the Amazon Web Services account that owns the EBS snapshot.final Stringprogress()The progress of the snapshot, as a percentage.final InstantOnly for archived snapshots that are temporarily restored.static Class<? extends Snapshot.Builder> final StringThe ID of the snapshot.final SSETypesseType()Reserved for future use.final StringReserved for future use.final InstantThe time stamp when the snapshot was initiated.final SnapshotStatestate()The snapshot state.final StringThe snapshot state.final StringEncrypted Amazon EBS snapshots are copied asynchronously.final StorageTierThe storage tier in which the snapshot is stored.final StringThe storage tier in which the snapshot is stored.tags()Any tags assigned to the snapshot.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringvolumeId()The ID of the volume that was used to create the snapshot.final IntegerThe size of the volume, in GiB.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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.- Returns:
- 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.
-
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 EBS User Guide.
- Returns:
- The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local snapshots on Outposts in the Amazon EBS User Guide.
-
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
tags
Any tags assigned to the snapshot.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- Any tags assigned to the snapshot.
-
storageTier
The storage tier in which the snapshot is stored.
standardindicates that the snapshot is stored in the standard snapshot storage tier and that it is ready for use.archiveindicates that the snapshot is currently archived and that it must be restored before it can be used.If the service returns an enum value that is not available in the current SDK version,
storageTierwill returnStorageTier.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstorageTierAsString().- Returns:
- The storage tier in which the snapshot is stored.
standardindicates that the snapshot is stored in the standard snapshot storage tier and that it is ready for use.archiveindicates that the snapshot is currently archived and that it must be restored before it can be used. - See Also:
-
storageTierAsString
The storage tier in which the snapshot is stored.
standardindicates that the snapshot is stored in the standard snapshot storage tier and that it is ready for use.archiveindicates that the snapshot is currently archived and that it must be restored before it can be used.If the service returns an enum value that is not available in the current SDK version,
storageTierwill returnStorageTier.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstorageTierAsString().- Returns:
- The storage tier in which the snapshot is stored.
standardindicates that the snapshot is stored in the standard snapshot storage tier and that it is ready for use.archiveindicates that the snapshot is currently archived and that it must be restored before it can be used. - See Also:
-
restoreExpiryTime
Only for archived snapshots that are temporarily restored. Indicates the date and time when a temporarily restored snapshot will be automatically re-archived.
- Returns:
- Only for archived snapshots that are temporarily restored. Indicates the date and time when a temporarily restored snapshot will be automatically re-archived.
-
sseType
Reserved for future use.
If the service returns an enum value that is not available in the current SDK version,
sseTypewill returnSSEType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsseTypeAsString().- Returns:
- Reserved for future use.
- See Also:
-
sseTypeAsString
Reserved for future use.
If the service returns an enum value that is not available in the current SDK version,
sseTypewill returnSSEType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsseTypeAsString().- Returns:
- Reserved for future use.
- See Also:
-
snapshotId
The ID of the snapshot. Each snapshot receives a unique identifier when it is created.
- Returns:
- The ID of the snapshot. Each snapshot receives a unique identifier when it is created.
-
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.
- Returns:
- 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.
-
state
The snapshot state.
If the service returns an enum value that is not available in the current SDK version,
statewill returnSnapshotState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The snapshot state.
- See Also:
-
stateAsString
The snapshot state.
If the service returns an enum value that is not available in the current SDK version,
statewill returnSnapshotState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The snapshot state.
- See Also:
-
stateMessage
Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example, if the proper 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.
- Returns:
- Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example, if the proper 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.
-
startTime
The time stamp when the snapshot was initiated.
- Returns:
- The time stamp when the snapshot was initiated.
-
progress
The progress of the snapshot, as a percentage.
- Returns:
- The progress of the snapshot, as a percentage.
-
ownerId
The ID of the Amazon Web Services account that owns the EBS snapshot.
- Returns:
- The ID of the Amazon Web Services account that owns the EBS snapshot.
-
description
The description for the snapshot.
- Returns:
- The description for the snapshot.
-
volumeSize
The size of the volume, in GiB.
- Returns:
- The size of the volume, in GiB.
-
encrypted
Indicates whether the snapshot is encrypted.
- Returns:
- Indicates whether the snapshot is encrypted.
-
kmsKeyId
The Amazon Resource Name (ARN) of the KMS key that was used to protect the volume encryption key for the parent volume.
- Returns:
- The Amazon Resource Name (ARN) of the KMS key that was used to protect the volume encryption key for the parent volume.
-
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.
- Returns:
- 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.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Snapshot.Builder,Snapshot> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-