@Generated(value="software.amazon.awssdk:codegen") public final class Snapshot extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Snapshot.Builder,Snapshot>
Describes a snapshot.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Snapshot.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<AccountWithRestoreAccess> |
accountsWithRestoreAccess()
A list of the Amazon Web Services accounts authorized to restore the snapshot.
|
Double |
actualIncrementalBackupSizeInMegaBytes()
The size of the incremental backup.
|
String |
availabilityZone()
The Availability Zone in which the cluster was created.
|
Double |
backupProgressInMegaBytes()
The number of megabytes that have been transferred to the snapshot backup.
|
static Snapshot.Builder |
builder() |
Instant |
clusterCreateTime()
The time (UTC) when the cluster was originally created.
|
String |
clusterIdentifier()
The identifier of the cluster for which the snapshot was taken.
|
String |
clusterVersion()
The version ID of the Amazon Redshift engine that is running on the cluster.
|
Double |
currentBackupRateInMegaBytesPerSecond()
The number of megabytes per second being transferred to the snapshot backup.
|
String |
dbName()
The name of the database that was created when the cluster was created.
|
Long |
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.
|
Boolean |
encrypted()
If
true, the data in the snapshot is encrypted at rest. |
Boolean |
encryptedWithHSM()
A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster.
|
String |
engineFullVersion()
The cluster version of the cluster used to create the snapshot.
|
Boolean |
enhancedVpcRouting()
An option that specifies whether to create the cluster with enhanced VPC routing enabled.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Long |
estimatedSecondsToCompletion()
The estimate of the time remaining before the snapshot backup will complete.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAccountsWithRestoreAccess()
For responses, this returns true if the service returned a value for the AccountsWithRestoreAccess property.
|
int |
hashCode() |
boolean |
hasRestorableNodeTypes()
For responses, this returns true if the service returned a value for the RestorableNodeTypes property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
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.
|
String |
maintenanceTrackName()
The name of the maintenance track for the snapshot.
|
Integer |
manualSnapshotRemainingDays()
The number of days until a manual snapshot will pass its retention period.
|
Integer |
manualSnapshotRetentionPeriod()
The number of days that a manual snapshot is retained.
|
String |
masterPasswordSecretArn()
The Amazon Resource Name (ARN) for the cluster's admin user credentials secret.
|
String |
masterPasswordSecretKmsKeyId()
The ID of the Key Management Service (KMS) key used to encrypt and store the cluster's admin credentials secret.
|
String |
masterUsername()
The admin user name for the cluster.
|
String |
nodeType()
The node type of the nodes in the cluster.
|
Integer |
numberOfNodes()
The number of nodes in the cluster.
|
String |
ownerAccount()
For manual snapshots, the Amazon Web Services account used to create or copy the snapshot.
|
Integer |
port()
The port that the cluster is listening on.
|
List<String> |
restorableNodeTypes()
The list of node types that this cluster snapshot is able to restore into.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Snapshot.Builder> |
serializableBuilderClass() |
Instant |
snapshotCreateTime()
The time (in UTC format) when Amazon Redshift began the snapshot.
|
String |
snapshotIdentifier()
The snapshot identifier that is provided in the request.
|
Instant |
snapshotRetentionStartTime()
A timestamp representing the start of the retention period for the snapshot.
|
String |
snapshotType()
The snapshot type.
|
String |
sourceRegion()
The source region from which the snapshot was copied.
|
String |
status()
The snapshot status.
|
List<Tag> |
tags()
The list of tags for the cluster snapshot.
|
Snapshot.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Double |
totalBackupSizeInMegaBytes()
The size of the complete set of backup data that would be used to restore the cluster.
|
String |
vpcId()
The VPC identifier of the cluster if the snapshot is from a cluster in a VPC.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String snapshotIdentifier()
The snapshot identifier that is provided in the request.
public final String clusterIdentifier()
The identifier of the cluster for which the snapshot was taken.
public final Instant 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.
public final String 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".
CreateClusterSnapshot and CopyClusterSnapshot returns status as "creating".
DescribeClusterSnapshots returns status as "creating", "available", "final snapshot", or "failed".
DeleteClusterSnapshot returns status as "deleted".
public final Integer port()
The port that the cluster is listening on.
public final String availabilityZone()
The Availability Zone in which the cluster was created.
public final Instant clusterCreateTime()
The time (UTC) when the cluster was originally created.
public final String masterUsername()
The admin user name for the cluster.
public final String clusterVersion()
The version ID of the Amazon Redshift engine that is running on the cluster.
public final String engineFullVersion()
The cluster version of the cluster used to create the snapshot. For example, 1.0.15503.
public final String snapshotType()
The snapshot type. Snapshots created using CreateClusterSnapshot and CopyClusterSnapshot are of type "manual".
public final String nodeType()
The node type of the nodes in the cluster.
public final Integer numberOfNodes()
The number of nodes in the cluster.
public final String dbName()
The name of the database that was created when the cluster was created.
public final String 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.
public final Boolean encrypted()
If true, the data in the snapshot is encrypted at rest.
true, the data in the snapshot is encrypted at rest.public 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.
public final Boolean 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.
true indicates that the data is encrypted using HSM keys.public final boolean hasAccountsWithRestoreAccess()
isEmpty() 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.public final List<AccountWithRestoreAccess> 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.
null
if no accounts are authorized. Visible only to the snapshot owner.public final String 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.
public final Double totalBackupSizeInMegaBytes()
The size of the complete set of backup data that would be used to restore the cluster.
public final Double actualIncrementalBackupSizeInMegaBytes()
The size of the incremental backup.
public final Double backupProgressInMegaBytes()
The number of megabytes that have been transferred to the snapshot backup.
public final Double currentBackupRateInMegaBytesPerSecond()
The number of megabytes per second being transferred to the snapshot backup. Returns 0 for a
completed backup.
0 for a
completed backup.public final Long estimatedSecondsToCompletion()
The estimate of the time remaining before the snapshot backup will complete. Returns 0 for a
completed backup.
0 for a
completed backup.public final Long 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.
public final String sourceRegion()
The source region from which the snapshot was copied.
public final boolean hasTags()
isEmpty() 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.public final List<Tag> 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.
public final boolean hasRestorableNodeTypes()
isEmpty() 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.public final List<String> 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.
public final Boolean 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
If this option is true, enhanced VPC routing is enabled.
Default: false
public final String maintenanceTrackName()
The name of the maintenance track for the snapshot.
public final Integer 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.
The value must be either -1 or an integer between 1 and 3,653.
public final Integer manualSnapshotRemainingDays()
The number of days until a manual snapshot will pass its retention period.
public final Instant snapshotRetentionStartTime()
A timestamp representing the start of the retention period for the snapshot.
public final String masterPasswordSecretArn()
The Amazon Resource Name (ARN) for the cluster's admin user credentials secret.
public final String masterPasswordSecretKmsKeyId()
The ID of the Key Management Service (KMS) key used to encrypt and store the cluster's admin credentials secret.
public Snapshot.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Snapshot.Builder,Snapshot>public static Snapshot.Builder builder()
public static Class<? extends Snapshot.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.