java.lang.Object
software.amazon.awssdk.services.redshiftserverless.model.Snapshot
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<Snapshot.Builder,Snapshot>

@Generated("software.amazon.awssdk:codegen") public final class Snapshot extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Snapshot.Builder,Snapshot>

A snapshot object that contains databases.

See Also:
  • Method Details

    • hasAccountsWithProvisionedRestoreAccess

      public final boolean hasAccountsWithProvisionedRestoreAccess()
      For responses, this returns true if the service returned a value for the AccountsWithProvisionedRestoreAccess property. This DOES NOT check that the value is non-empty (for which, you should check the 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.
    • accountsWithProvisionedRestoreAccess

      public final List<String> accountsWithProvisionedRestoreAccess()

      All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.

      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 hasAccountsWithProvisionedRestoreAccess() method.

      Returns:
      All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
    • 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 the 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.
    • accountsWithRestoreAccess

      public final List<String> accountsWithRestoreAccess()

      All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.

      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:
      All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
    • actualIncrementalBackupSizeInMegaBytes

      public final Double actualIncrementalBackupSizeInMegaBytes()

      The size of the incremental backup in megabytes.

      Returns:
      The size of the incremental backup in megabytes.
    • adminPasswordSecretArn

      public final String adminPasswordSecretArn()

      The Amazon Resource Name (ARN) for the namespace's admin user credentials secret.

      Returns:
      The Amazon Resource Name (ARN) for the namespace's admin user credentials secret.
    • adminPasswordSecretKmsKeyId

      public final String adminPasswordSecretKmsKeyId()

      The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.

      Returns:
      The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.
    • adminUsername

      public final String adminUsername()

      The username of the database within a snapshot.

      Returns:
      The username of the database within a snapshot.
    • backupProgressInMegaBytes

      public final Double backupProgressInMegaBytes()

      The size in megabytes of the data that has been backed up to a snapshot.

      Returns:
      The size in megabytes of the data that has been backed up to a snapshot.
    • currentBackupRateInMegaBytesPerSecond

      public final Double currentBackupRateInMegaBytesPerSecond()

      The rate at which data is backed up into a snapshot in megabytes per second.

      Returns:
      The rate at which data is backed up into a snapshot in megabytes per second.
    • elapsedTimeInSeconds

      public final Long elapsedTimeInSeconds()

      The amount of time it took to back up data into a snapshot.

      Returns:
      The amount of time it took to back up data into a snapshot.
    • estimatedSecondsToCompletion

      public final Long estimatedSecondsToCompletion()

      The estimated amount of seconds until the snapshot completes backup.

      Returns:
      The estimated amount of seconds until the snapshot completes backup.
    • kmsKeyId

      public final String kmsKeyId()

      The unique identifier of the KMS key used to encrypt the snapshot.

      Returns:
      The unique identifier of the KMS key used to encrypt the snapshot.
    • namespaceArn

      public final String namespaceArn()

      The Amazon Resource Name (ARN) of the namespace the snapshot was created from.

      Returns:
      The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
    • namespaceName

      public final String namespaceName()

      The name of the namepsace.

      Returns:
      The name of the namepsace.
    • ownerAccount

      public final String ownerAccount()

      The owner Amazon Web Services; account of the snapshot.

      Returns:
      The owner Amazon Web Services; account of the snapshot.
    • snapshotArn

      public final String snapshotArn()

      The Amazon Resource Name (ARN) of the snapshot.

      Returns:
      The Amazon Resource Name (ARN) of the snapshot.
    • snapshotCreateTime

      public final Instant snapshotCreateTime()

      The timestamp of when the snapshot was created.

      Returns:
      The timestamp of when the snapshot was created.
    • snapshotName

      public final String snapshotName()

      The name of the snapshot.

      Returns:
      The name of the snapshot.
    • snapshotRemainingDays

      public final Integer snapshotRemainingDays()

      The amount of days until the snapshot is deleted.

      Returns:
      The amount of days until the snapshot is deleted.
    • snapshotRetentionPeriod

      public final Integer snapshotRetentionPeriod()

      The period of time, in days, of how long the snapshot is retained.

      Returns:
      The period of time, in days, of how long the snapshot is retained.
    • snapshotRetentionStartTime

      public final Instant snapshotRetentionStartTime()

      The timestamp of when data within the snapshot started getting retained.

      Returns:
      The timestamp of when data within the snapshot started getting retained.
    • status

      public final SnapshotStatus status()

      The status of the snapshot.

      If the service returns an enum value that is not available in the current SDK version, status will return SnapshotStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The status of the snapshot.
      See Also:
    • statusAsString

      public final String statusAsString()

      The status of the snapshot.

      If the service returns an enum value that is not available in the current SDK version, status will return SnapshotStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The status of the snapshot.
      See Also:
    • totalBackupSizeInMegaBytes

      public final Double totalBackupSizeInMegaBytes()

      The total size, in megabytes, of how big the snapshot is.

      Returns:
      The total size, in megabytes, of how big the snapshot is.
    • toBuilder

      public Snapshot.Builder 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 interface ToCopyableBuilder<Snapshot.Builder,Snapshot>
      Returns:
      a builder for type T
    • builder

      public static Snapshot.Builder builder()
    • serializableBuilderClass

      public static Class<? extends Snapshot.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      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 an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.