/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A snapshot object that contains databases.See Also:
AWS
* API Reference
All of the Amazon Web Services accounts that have access to restore a * snapshot to a provisioned cluster.
*/ inline const Aws::VectorAll of the Amazon Web Services accounts that have access to restore a * snapshot to a provisioned cluster.
*/ inline bool AccountsWithProvisionedRestoreAccessHasBeenSet() const { return m_accountsWithProvisionedRestoreAccessHasBeenSet; } /** *All of the Amazon Web Services accounts that have access to restore a * snapshot to a provisioned cluster.
*/ inline void SetAccountsWithProvisionedRestoreAccess(const Aws::VectorAll of the Amazon Web Services accounts that have access to restore a * snapshot to a provisioned cluster.
*/ inline void SetAccountsWithProvisionedRestoreAccess(Aws::VectorAll of the Amazon Web Services accounts that have access to restore a * snapshot to a provisioned cluster.
*/ inline Snapshot& WithAccountsWithProvisionedRestoreAccess(const Aws::VectorAll of the Amazon Web Services accounts that have access to restore a * snapshot to a provisioned cluster.
*/ inline Snapshot& WithAccountsWithProvisionedRestoreAccess(Aws::VectorAll of the Amazon Web Services accounts that have access to restore a * snapshot to a provisioned cluster.
*/ inline Snapshot& AddAccountsWithProvisionedRestoreAccess(const Aws::String& value) { m_accountsWithProvisionedRestoreAccessHasBeenSet = true; m_accountsWithProvisionedRestoreAccess.push_back(value); return *this; } /** *All of the Amazon Web Services accounts that have access to restore a * snapshot to a provisioned cluster.
*/ inline Snapshot& AddAccountsWithProvisionedRestoreAccess(Aws::String&& value) { m_accountsWithProvisionedRestoreAccessHasBeenSet = true; m_accountsWithProvisionedRestoreAccess.push_back(std::move(value)); return *this; } /** *All of the Amazon Web Services accounts that have access to restore a * snapshot to a provisioned cluster.
*/ inline Snapshot& AddAccountsWithProvisionedRestoreAccess(const char* value) { m_accountsWithProvisionedRestoreAccessHasBeenSet = true; m_accountsWithProvisionedRestoreAccess.push_back(value); return *this; } /** *All of the Amazon Web Services accounts that have access to restore a * snapshot to a namespace.
*/ inline const Aws::VectorAll of the Amazon Web Services accounts that have access to restore a * snapshot to a namespace.
*/ inline bool AccountsWithRestoreAccessHasBeenSet() const { return m_accountsWithRestoreAccessHasBeenSet; } /** *All of the Amazon Web Services accounts that have access to restore a * snapshot to a namespace.
*/ inline void SetAccountsWithRestoreAccess(const Aws::VectorAll of the Amazon Web Services accounts that have access to restore a * snapshot to a namespace.
*/ inline void SetAccountsWithRestoreAccess(Aws::VectorAll of the Amazon Web Services accounts that have access to restore a * snapshot to a namespace.
*/ inline Snapshot& WithAccountsWithRestoreAccess(const Aws::VectorAll of the Amazon Web Services accounts that have access to restore a * snapshot to a namespace.
*/ inline Snapshot& WithAccountsWithRestoreAccess(Aws::VectorAll of the Amazon Web Services accounts that have access to restore a * snapshot to a namespace.
*/ inline Snapshot& AddAccountsWithRestoreAccess(const Aws::String& value) { m_accountsWithRestoreAccessHasBeenSet = true; m_accountsWithRestoreAccess.push_back(value); return *this; } /** *All of the Amazon Web Services accounts that have access to restore a * snapshot to a namespace.
*/ inline Snapshot& AddAccountsWithRestoreAccess(Aws::String&& value) { m_accountsWithRestoreAccessHasBeenSet = true; m_accountsWithRestoreAccess.push_back(std::move(value)); return *this; } /** *All of the Amazon Web Services accounts that have access to restore a * snapshot to a namespace.
*/ inline Snapshot& AddAccountsWithRestoreAccess(const char* value) { m_accountsWithRestoreAccessHasBeenSet = true; m_accountsWithRestoreAccess.push_back(value); return *this; } /** *The size of the incremental backup in megabytes.
*/ inline double GetActualIncrementalBackupSizeInMegaBytes() const{ return m_actualIncrementalBackupSizeInMegaBytes; } /** *The size of the incremental backup in megabytes.
*/ inline bool ActualIncrementalBackupSizeInMegaBytesHasBeenSet() const { return m_actualIncrementalBackupSizeInMegaBytesHasBeenSet; } /** *The size of the incremental backup in megabytes.
*/ inline void SetActualIncrementalBackupSizeInMegaBytes(double value) { m_actualIncrementalBackupSizeInMegaBytesHasBeenSet = true; m_actualIncrementalBackupSizeInMegaBytes = value; } /** *The size of the incremental backup in megabytes.
*/ inline Snapshot& WithActualIncrementalBackupSizeInMegaBytes(double value) { SetActualIncrementalBackupSizeInMegaBytes(value); return *this;} /** *The username of the database within a snapshot.
*/ inline const Aws::String& GetAdminUsername() const{ return m_adminUsername; } /** *The username of the database within a snapshot.
*/ inline bool AdminUsernameHasBeenSet() const { return m_adminUsernameHasBeenSet; } /** *The username of the database within a snapshot.
*/ inline void SetAdminUsername(const Aws::String& value) { m_adminUsernameHasBeenSet = true; m_adminUsername = value; } /** *The username of the database within a snapshot.
*/ inline void SetAdminUsername(Aws::String&& value) { m_adminUsernameHasBeenSet = true; m_adminUsername = std::move(value); } /** *The username of the database within a snapshot.
*/ inline void SetAdminUsername(const char* value) { m_adminUsernameHasBeenSet = true; m_adminUsername.assign(value); } /** *The username of the database within a snapshot.
*/ inline Snapshot& WithAdminUsername(const Aws::String& value) { SetAdminUsername(value); return *this;} /** *The username of the database within a snapshot.
*/ inline Snapshot& WithAdminUsername(Aws::String&& value) { SetAdminUsername(std::move(value)); return *this;} /** *The username of the database within a snapshot.
*/ inline Snapshot& WithAdminUsername(const char* value) { SetAdminUsername(value); return *this;} /** *The size in megabytes of the data that has been backed up to a snapshot.
*/ inline double GetBackupProgressInMegaBytes() const{ return m_backupProgressInMegaBytes; } /** *The size in megabytes of the data that has been backed up to a snapshot.
*/ inline bool BackupProgressInMegaBytesHasBeenSet() const { return m_backupProgressInMegaBytesHasBeenSet; } /** *The size in megabytes of the data that has been backed up to a snapshot.
*/ inline void SetBackupProgressInMegaBytes(double value) { m_backupProgressInMegaBytesHasBeenSet = true; m_backupProgressInMegaBytes = value; } /** *The size in megabytes of the data that has been backed up to a snapshot.
*/ inline Snapshot& WithBackupProgressInMegaBytes(double value) { SetBackupProgressInMegaBytes(value); return *this;} /** *The rate at which data is backed up into a snapshot in megabytes per * second.
*/ inline double GetCurrentBackupRateInMegaBytesPerSecond() const{ return m_currentBackupRateInMegaBytesPerSecond; } /** *The rate at which data is backed up into a snapshot in megabytes per * second.
*/ inline bool CurrentBackupRateInMegaBytesPerSecondHasBeenSet() const { return m_currentBackupRateInMegaBytesPerSecondHasBeenSet; } /** *The rate at which data is backed up into a snapshot in megabytes per * second.
*/ inline void SetCurrentBackupRateInMegaBytesPerSecond(double value) { m_currentBackupRateInMegaBytesPerSecondHasBeenSet = true; m_currentBackupRateInMegaBytesPerSecond = value; } /** *The rate at which data is backed up into a snapshot in megabytes per * second.
*/ inline Snapshot& WithCurrentBackupRateInMegaBytesPerSecond(double value) { SetCurrentBackupRateInMegaBytesPerSecond(value); return *this;} /** *The amount of time it took to back up data into a snapshot.
*/ inline long long GetElapsedTimeInSeconds() const{ return m_elapsedTimeInSeconds; } /** *The amount of time it took to back up data into a snapshot.
*/ inline bool ElapsedTimeInSecondsHasBeenSet() const { return m_elapsedTimeInSecondsHasBeenSet; } /** *The amount of time it took to back up data into a snapshot.
*/ inline void SetElapsedTimeInSeconds(long long value) { m_elapsedTimeInSecondsHasBeenSet = true; m_elapsedTimeInSeconds = value; } /** *The amount of time it took to back up data into a snapshot.
*/ inline Snapshot& WithElapsedTimeInSeconds(long long value) { SetElapsedTimeInSeconds(value); return *this;} /** *The estimated amount of seconds until the snapshot completes backup.
*/ inline long long GetEstimatedSecondsToCompletion() const{ return m_estimatedSecondsToCompletion; } /** *The estimated amount of seconds until the snapshot completes backup.
*/ inline bool EstimatedSecondsToCompletionHasBeenSet() const { return m_estimatedSecondsToCompletionHasBeenSet; } /** *The estimated amount of seconds until the snapshot completes backup.
*/ inline void SetEstimatedSecondsToCompletion(long long value) { m_estimatedSecondsToCompletionHasBeenSet = true; m_estimatedSecondsToCompletion = value; } /** *The estimated amount of seconds until the snapshot completes backup.
*/ inline Snapshot& WithEstimatedSecondsToCompletion(long long value) { SetEstimatedSecondsToCompletion(value); return *this;} /** *The unique identifier of the KMS key used to encrypt the snapshot.
*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *The unique identifier of the KMS key used to encrypt the snapshot.
*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *The unique identifier of the KMS key used to encrypt the snapshot.
*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *The unique identifier of the KMS key used to encrypt the snapshot.
*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *The unique identifier of the KMS key used to encrypt the snapshot.
*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *The unique identifier of the KMS key used to encrypt the snapshot.
*/ inline Snapshot& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *The unique identifier of the KMS key used to encrypt the snapshot.
*/ inline Snapshot& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *The unique identifier of the KMS key used to encrypt the snapshot.
*/ inline Snapshot& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *The Amazon Resource Name (ARN) of the namespace the snapshot was created * from.
*/ inline const Aws::String& GetNamespaceArn() const{ return m_namespaceArn; } /** *The Amazon Resource Name (ARN) of the namespace the snapshot was created * from.
*/ inline bool NamespaceArnHasBeenSet() const { return m_namespaceArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the namespace the snapshot was created * from.
*/ inline void SetNamespaceArn(const Aws::String& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = value; } /** *The Amazon Resource Name (ARN) of the namespace the snapshot was created * from.
*/ inline void SetNamespaceArn(Aws::String&& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the namespace the snapshot was created * from.
*/ inline void SetNamespaceArn(const char* value) { m_namespaceArnHasBeenSet = true; m_namespaceArn.assign(value); } /** *The Amazon Resource Name (ARN) of the namespace the snapshot was created * from.
*/ inline Snapshot& WithNamespaceArn(const Aws::String& value) { SetNamespaceArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the namespace the snapshot was created * from.
*/ inline Snapshot& WithNamespaceArn(Aws::String&& value) { SetNamespaceArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the namespace the snapshot was created * from.
*/ inline Snapshot& WithNamespaceArn(const char* value) { SetNamespaceArn(value); return *this;} /** *The name of the namepsace.
*/ inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; } /** *The name of the namepsace.
*/ inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; } /** *The name of the namepsace.
*/ inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; } /** *The name of the namepsace.
*/ inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); } /** *The name of the namepsace.
*/ inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); } /** *The name of the namepsace.
*/ inline Snapshot& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;} /** *The name of the namepsace.
*/ inline Snapshot& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;} /** *The name of the namepsace.
*/ inline Snapshot& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;} /** *The owner Amazon Web Services; account of the snapshot.
*/ inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; } /** *The owner Amazon Web Services; account of the snapshot.
*/ inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; } /** *The owner Amazon Web Services; account of the snapshot.
*/ inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; } /** *The owner Amazon Web Services; account of the snapshot.
*/ inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::move(value); } /** *The owner Amazon Web Services; account of the snapshot.
*/ inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); } /** *The owner Amazon Web Services; account of the snapshot.
*/ inline Snapshot& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;} /** *The owner Amazon Web Services; account of the snapshot.
*/ inline Snapshot& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;} /** *The owner Amazon Web Services; account of the snapshot.
*/ inline Snapshot& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;} /** *The Amazon Resource Name (ARN) of the snapshot.
*/ inline const Aws::String& GetSnapshotArn() const{ return m_snapshotArn; } /** *The Amazon Resource Name (ARN) of the snapshot.
*/ inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the snapshot.
*/ inline void SetSnapshotArn(const Aws::String& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = value; } /** *The Amazon Resource Name (ARN) of the snapshot.
*/ inline void SetSnapshotArn(Aws::String&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the snapshot.
*/ inline void SetSnapshotArn(const char* value) { m_snapshotArnHasBeenSet = true; m_snapshotArn.assign(value); } /** *The Amazon Resource Name (ARN) of the snapshot.
*/ inline Snapshot& WithSnapshotArn(const Aws::String& value) { SetSnapshotArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the snapshot.
*/ inline Snapshot& WithSnapshotArn(Aws::String&& value) { SetSnapshotArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the snapshot.
*/ inline Snapshot& WithSnapshotArn(const char* value) { SetSnapshotArn(value); return *this;} /** *The timestamp of when the snapshot was created.
*/ inline const Aws::Utils::DateTime& GetSnapshotCreateTime() const{ return m_snapshotCreateTime; } /** *The timestamp of when the snapshot was created.
*/ inline bool SnapshotCreateTimeHasBeenSet() const { return m_snapshotCreateTimeHasBeenSet; } /** *The timestamp of when the snapshot was created.
*/ inline void SetSnapshotCreateTime(const Aws::Utils::DateTime& value) { m_snapshotCreateTimeHasBeenSet = true; m_snapshotCreateTime = value; } /** *The timestamp of when the snapshot was created.
*/ inline void SetSnapshotCreateTime(Aws::Utils::DateTime&& value) { m_snapshotCreateTimeHasBeenSet = true; m_snapshotCreateTime = std::move(value); } /** *The timestamp of when the snapshot was created.
*/ inline Snapshot& WithSnapshotCreateTime(const Aws::Utils::DateTime& value) { SetSnapshotCreateTime(value); return *this;} /** *The timestamp of when the snapshot was created.
*/ inline Snapshot& WithSnapshotCreateTime(Aws::Utils::DateTime&& value) { SetSnapshotCreateTime(std::move(value)); return *this;} /** *The name of the snapshot.
*/ inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; } /** *The name of the snapshot.
*/ inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; } /** *The name of the snapshot.
*/ inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; } /** *The name of the snapshot.
*/ inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); } /** *The name of the snapshot.
*/ inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); } /** *The name of the snapshot.
*/ inline Snapshot& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;} /** *The name of the snapshot.
*/ inline Snapshot& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;} /** *The name of the snapshot.
*/ inline Snapshot& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;} /** *The amount of days until the snapshot is deleted.
*/ inline int GetSnapshotRemainingDays() const{ return m_snapshotRemainingDays; } /** *The amount of days until the snapshot is deleted.
*/ inline bool SnapshotRemainingDaysHasBeenSet() const { return m_snapshotRemainingDaysHasBeenSet; } /** *The amount of days until the snapshot is deleted.
*/ inline void SetSnapshotRemainingDays(int value) { m_snapshotRemainingDaysHasBeenSet = true; m_snapshotRemainingDays = value; } /** *The amount of days until the snapshot is deleted.
*/ inline Snapshot& WithSnapshotRemainingDays(int value) { SetSnapshotRemainingDays(value); return *this;} /** *The period of time, in days, of how long the snapshot is retained.
*/ inline int GetSnapshotRetentionPeriod() const{ return m_snapshotRetentionPeriod; } /** *The period of time, in days, of how long the snapshot is retained.
*/ inline bool SnapshotRetentionPeriodHasBeenSet() const { return m_snapshotRetentionPeriodHasBeenSet; } /** *The period of time, in days, of how long the snapshot is retained.
*/ inline void SetSnapshotRetentionPeriod(int value) { m_snapshotRetentionPeriodHasBeenSet = true; m_snapshotRetentionPeriod = value; } /** *The period of time, in days, of how long the snapshot is retained.
*/ inline Snapshot& WithSnapshotRetentionPeriod(int value) { SetSnapshotRetentionPeriod(value); return *this;} /** *The timestamp of when data within the snapshot started getting retained.
*/ inline const Aws::Utils::DateTime& GetSnapshotRetentionStartTime() const{ return m_snapshotRetentionStartTime; } /** *The timestamp of when data within the snapshot started getting retained.
*/ inline bool SnapshotRetentionStartTimeHasBeenSet() const { return m_snapshotRetentionStartTimeHasBeenSet; } /** *The timestamp of when data within the snapshot started getting retained.
*/ inline void SetSnapshotRetentionStartTime(const Aws::Utils::DateTime& value) { m_snapshotRetentionStartTimeHasBeenSet = true; m_snapshotRetentionStartTime = value; } /** *The timestamp of when data within the snapshot started getting retained.
*/ inline void SetSnapshotRetentionStartTime(Aws::Utils::DateTime&& value) { m_snapshotRetentionStartTimeHasBeenSet = true; m_snapshotRetentionStartTime = std::move(value); } /** *The timestamp of when data within the snapshot started getting retained.
*/ inline Snapshot& WithSnapshotRetentionStartTime(const Aws::Utils::DateTime& value) { SetSnapshotRetentionStartTime(value); return *this;} /** *The timestamp of when data within the snapshot started getting retained.
*/ inline Snapshot& WithSnapshotRetentionStartTime(Aws::Utils::DateTime&& value) { SetSnapshotRetentionStartTime(std::move(value)); return *this;} /** *The status of the snapshot.
*/ inline const SnapshotStatus& GetStatus() const{ return m_status; } /** *The status of the snapshot.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the snapshot.
*/ inline void SetStatus(const SnapshotStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the snapshot.
*/ inline void SetStatus(SnapshotStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the snapshot.
*/ inline Snapshot& WithStatus(const SnapshotStatus& value) { SetStatus(value); return *this;} /** *The status of the snapshot.
*/ inline Snapshot& WithStatus(SnapshotStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The total size, in megabytes, of how big the snapshot is.
*/ inline double GetTotalBackupSizeInMegaBytes() const{ return m_totalBackupSizeInMegaBytes; } /** *The total size, in megabytes, of how big the snapshot is.
*/ inline bool TotalBackupSizeInMegaBytesHasBeenSet() const { return m_totalBackupSizeInMegaBytesHasBeenSet; } /** *The total size, in megabytes, of how big the snapshot is.
*/ inline void SetTotalBackupSizeInMegaBytes(double value) { m_totalBackupSizeInMegaBytesHasBeenSet = true; m_totalBackupSizeInMegaBytes = value; } /** *The total size, in megabytes, of how big the snapshot is.
*/ inline Snapshot& WithTotalBackupSizeInMegaBytes(double value) { SetTotalBackupSizeInMegaBytes(value); return *this;} private: Aws::Vector