Class Snapshot

    • Method Detail

      • 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.
      • 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.
      • hashCode

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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)