Class Snapshot
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Snapshot.Builder,
Snapshot>
Describes a snapshot.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal List
<AccountWithRestoreAccess> A list of the Amazon Web Services accounts authorized to restore the snapshot.final Double
The size of the incremental backup.final String
The Availability Zone in which the cluster was created.final Double
The number of megabytes that have been transferred to the snapshot backup.static Snapshot.Builder
builder()
final Instant
The time (UTC) when the cluster was originally created.final String
The identifier of the cluster for which the snapshot was taken.final String
The version ID of the Amazon Redshift engine that is running on the cluster.final Double
The number of megabytes per second being transferred to the snapshot backup.final String
dbName()
The name of the database that was created when the cluster was created.final Long
The amount of time an in-progress snapshot backup has been running, or the amount of time it took a completed backup to finish.final Boolean
Iftrue
, the data in the snapshot is encrypted at rest.final Boolean
A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster.final String
The cluster version of the cluster used to create the snapshot.final Boolean
An option that specifies whether to create the cluster with enhanced VPC routing enabled.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Long
The estimate of the time remaining before the snapshot backup will complete.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final boolean
For responses, this returns true if the service returned a value for the AccountsWithRestoreAccess property.final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the RestorableNodeTypes property.final boolean
hasTags()
For responses, this returns true if the service returned a value for the Tags property.final String
kmsKeyId()
The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.final String
The name of the maintenance track for the snapshot.final Integer
The number of days until a manual snapshot will pass its retention period.final Integer
The number of days that a manual snapshot is retained.final String
The Amazon Resource Name (ARN) for the cluster's admin user credentials secret.final String
The ID of the Key Management Service (KMS) key used to encrypt and store the cluster's admin credentials secret.final String
The admin user name for the cluster.final String
nodeType()
The node type of the nodes in the cluster.final Integer
The number of nodes in the cluster.final String
For manual snapshots, the Amazon Web Services account used to create or copy the snapshot.final Integer
port()
The port that the cluster is listening on.The list of node types that this cluster snapshot is able to restore into.static Class
<? extends Snapshot.Builder> final String
The Amazon Resource Name (ARN) of the snapshot.final Instant
The time (in UTC format) when Amazon Redshift began the snapshot.final String
The snapshot identifier that is provided in the request.final Instant
A timestamp representing the start of the retention period for the snapshot.final String
The snapshot type.final String
The source region from which the snapshot was copied.final String
status()
The snapshot status.tags()
The list of tags for the cluster snapshot.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final Double
The size of the complete set of backup data that would be used to restore the cluster.final String
vpcId()
The VPC identifier of the cluster if the snapshot is from a cluster in a VPC.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
snapshotIdentifier
The snapshot identifier that is provided in the request.
- Returns:
- The snapshot identifier that is provided in the request.
-
clusterIdentifier
The identifier of the cluster for which the snapshot was taken.
- Returns:
- The identifier of the cluster for which the snapshot was taken.
-
snapshotCreateTime
The time (in UTC format) when Amazon Redshift began the snapshot. A snapshot contains a copy of the cluster data as of this exact time.
- Returns:
- The time (in UTC format) when Amazon Redshift began the snapshot. A snapshot contains a copy of the cluster data as of this exact time.
-
status
The snapshot status. The value of the status depends on the API operation used:
-
CreateClusterSnapshot and CopyClusterSnapshot returns status as "creating".
-
DescribeClusterSnapshots returns status as "creating", "available", "final snapshot", or "failed".
-
DeleteClusterSnapshot returns status as "deleted".
- Returns:
- The snapshot status. The value of the status depends on the API operation used:
-
CreateClusterSnapshot and CopyClusterSnapshot returns status as "creating".
-
DescribeClusterSnapshots returns status as "creating", "available", "final snapshot", or "failed".
-
DeleteClusterSnapshot returns status as "deleted".
-
-
-
port
The port that the cluster is listening on.
- Returns:
- The port that the cluster is listening on.
-
availabilityZone
The Availability Zone in which the cluster was created.
- Returns:
- The Availability Zone in which the cluster was created.
-
clusterCreateTime
The time (UTC) when the cluster was originally created.
- Returns:
- The time (UTC) when the cluster was originally created.
-
masterUsername
The admin user name for the cluster.
- Returns:
- The admin user name for the cluster.
-
clusterVersion
The version ID of the Amazon Redshift engine that is running on the cluster.
- Returns:
- The version ID of the Amazon Redshift engine that is running on the cluster.
-
engineFullVersion
The cluster version of the cluster used to create the snapshot. For example, 1.0.15503.
- Returns:
- The cluster version of the cluster used to create the snapshot. For example, 1.0.15503.
-
snapshotType
The snapshot type. Snapshots created using CreateClusterSnapshot and CopyClusterSnapshot are of type "manual".
- Returns:
- The snapshot type. Snapshots created using CreateClusterSnapshot and CopyClusterSnapshot are of type "manual".
-
nodeType
The node type of the nodes in the cluster.
- Returns:
- The node type of the nodes in the cluster.
-
numberOfNodes
The number of nodes in the cluster.
- Returns:
- The number of nodes in the cluster.
-
dbName
The name of the database that was created when the cluster was created.
- Returns:
- The name of the database that was created when the cluster was created.
-
vpcId
The VPC identifier of the cluster if the snapshot is from a cluster in a VPC. Otherwise, this field is not in the output.
- Returns:
- The VPC identifier of the cluster if the snapshot is from a cluster in a VPC. Otherwise, this field is not in the output.
-
encrypted
If
true
, the data in the snapshot is encrypted at rest.- Returns:
- If
true
, the data in the snapshot is encrypted at rest.
-
kmsKeyId
The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
- Returns:
- The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
-
encryptedWithHSM
A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster.
true
indicates that the data is encrypted using HSM keys.- Returns:
- A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster.
true
indicates that the data is encrypted using HSM keys.
-
hasAccountsWithRestoreAccess
public final boolean hasAccountsWithRestoreAccess()For responses, this returns true if the service returned a value for the AccountsWithRestoreAccess 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. -
accountsWithRestoreAccess
A list of the Amazon Web Services accounts authorized to restore the snapshot. Returns
null
if no accounts are authorized. Visible only to the snapshot owner.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
hasAccountsWithRestoreAccess()
method.- Returns:
- A list of the Amazon Web Services accounts authorized to restore the snapshot. Returns
null
if no accounts are authorized. Visible only to the snapshot owner.
-
ownerAccount
For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
- Returns:
- For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
-
totalBackupSizeInMegaBytes
The size of the complete set of backup data that would be used to restore the cluster.
- Returns:
- The size of the complete set of backup data that would be used to restore the cluster.
-
actualIncrementalBackupSizeInMegaBytes
The size of the incremental backup.
- Returns:
- The size of the incremental backup.
-
backupProgressInMegaBytes
The number of megabytes that have been transferred to the snapshot backup.
- Returns:
- The number of megabytes that have been transferred to the snapshot backup.
-
currentBackupRateInMegaBytesPerSecond
The number of megabytes per second being transferred to the snapshot backup. Returns
0
for a completed backup.- Returns:
- The number of megabytes per second being transferred to the snapshot backup. Returns
0
for a completed backup.
-
estimatedSecondsToCompletion
The estimate of the time remaining before the snapshot backup will complete. Returns
0
for a completed backup.- Returns:
- The estimate of the time remaining before the snapshot backup will complete. Returns
0
for a completed backup.
-
elapsedTimeInSeconds
The amount of time an in-progress snapshot backup has been running, or the amount of time it took a completed backup to finish.
- Returns:
- The amount of time an in-progress snapshot backup has been running, or the amount of time it took a completed backup to finish.
-
sourceRegion
The source region from which the snapshot was copied.
- Returns:
- The source region from which the snapshot was copied.
-
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
The list of tags for the cluster 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:
- The list of tags for the cluster snapshot.
-
hasRestorableNodeTypes
public final boolean hasRestorableNodeTypes()For responses, this returns true if the service returned a value for the RestorableNodeTypes 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. -
restorableNodeTypes
The list of node types that this cluster snapshot is able to restore into.
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
hasRestorableNodeTypes()
method.- Returns:
- The list of node types that this cluster snapshot is able to restore into.
-
enhancedVpcRouting
An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.
If this option is
true
, enhanced VPC routing is enabled.Default: false
- Returns:
- An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a
cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC
Routing in the Amazon Redshift Cluster Management Guide.
If this option is
true
, enhanced VPC routing is enabled.Default: false
-
maintenanceTrackName
The name of the maintenance track for the snapshot.
- Returns:
- The name of the maintenance track for the snapshot.
-
manualSnapshotRetentionPeriod
The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
- Returns:
- The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is
retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
-
manualSnapshotRemainingDays
The number of days until a manual snapshot will pass its retention period.
- Returns:
- The number of days until a manual snapshot will pass its retention period.
-
snapshotRetentionStartTime
A timestamp representing the start of the retention period for the snapshot.
- Returns:
- A timestamp representing the start of the retention period for the snapshot.
-
masterPasswordSecretArn
The Amazon Resource Name (ARN) for the cluster's admin user credentials secret.
- Returns:
- The Amazon Resource Name (ARN) for the cluster's admin user credentials secret.
-
masterPasswordSecretKmsKeyId
The ID of the Key Management Service (KMS) key used to encrypt and store the cluster's admin credentials secret.
- Returns:
- The ID of the Key Management Service (KMS) key used to encrypt and store the cluster's admin credentials secret.
-
snapshotArn
The Amazon Resource Name (ARN) of the snapshot.
- Returns:
- The Amazon Resource Name (ARN) of the snapshot.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Snapshot.Builder,
Snapshot> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-