/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Information about the status of a cluster restore action. It only applies if * the cluster was created by restoring a snapshot.

See Also:

AWS * API Reference

*/ class AwsRedshiftClusterRestoreStatus { public: AWS_SECURITYHUB_API AwsRedshiftClusterRestoreStatus(); AWS_SECURITYHUB_API AwsRedshiftClusterRestoreStatus(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsRedshiftClusterRestoreStatus& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The number of megabytes per second being transferred from the backup storage. * Returns the average rate for a completed backup.

This field is only * updated when you restore to DC2 and DS2 node types.

*/ inline double GetCurrentRestoreRateInMegaBytesPerSecond() const{ return m_currentRestoreRateInMegaBytesPerSecond; } /** *

The number of megabytes per second being transferred from the backup storage. * Returns the average rate for a completed backup.

This field is only * updated when you restore to DC2 and DS2 node types.

*/ inline bool CurrentRestoreRateInMegaBytesPerSecondHasBeenSet() const { return m_currentRestoreRateInMegaBytesPerSecondHasBeenSet; } /** *

The number of megabytes per second being transferred from the backup storage. * Returns the average rate for a completed backup.

This field is only * updated when you restore to DC2 and DS2 node types.

*/ inline void SetCurrentRestoreRateInMegaBytesPerSecond(double value) { m_currentRestoreRateInMegaBytesPerSecondHasBeenSet = true; m_currentRestoreRateInMegaBytesPerSecond = value; } /** *

The number of megabytes per second being transferred from the backup storage. * Returns the average rate for a completed backup.

This field is only * updated when you restore to DC2 and DS2 node types.

*/ inline AwsRedshiftClusterRestoreStatus& WithCurrentRestoreRateInMegaBytesPerSecond(double value) { SetCurrentRestoreRateInMegaBytesPerSecond(value); return *this;} /** *

The amount of time an in-progress restore has been running, or the amount of * time it took a completed restore to finish.

This field is only updated * when you restore to DC2 and DS2 node types.

*/ inline long long GetElapsedTimeInSeconds() const{ return m_elapsedTimeInSeconds; } /** *

The amount of time an in-progress restore has been running, or the amount of * time it took a completed restore to finish.

This field is only updated * when you restore to DC2 and DS2 node types.

*/ inline bool ElapsedTimeInSecondsHasBeenSet() const { return m_elapsedTimeInSecondsHasBeenSet; } /** *

The amount of time an in-progress restore has been running, or the amount of * time it took a completed restore to finish.

This field is only updated * when you restore to DC2 and DS2 node types.

*/ inline void SetElapsedTimeInSeconds(long long value) { m_elapsedTimeInSecondsHasBeenSet = true; m_elapsedTimeInSeconds = value; } /** *

The amount of time an in-progress restore has been running, or the amount of * time it took a completed restore to finish.

This field is only updated * when you restore to DC2 and DS2 node types.

*/ inline AwsRedshiftClusterRestoreStatus& WithElapsedTimeInSeconds(long long value) { SetElapsedTimeInSeconds(value); return *this;} /** *

The estimate of the time remaining before the restore is complete. Returns 0 * for a completed restore.

This field is only updated when you restore to * DC2 and DS2 node types.

*/ inline long long GetEstimatedTimeToCompletionInSeconds() const{ return m_estimatedTimeToCompletionInSeconds; } /** *

The estimate of the time remaining before the restore is complete. Returns 0 * for a completed restore.

This field is only updated when you restore to * DC2 and DS2 node types.

*/ inline bool EstimatedTimeToCompletionInSecondsHasBeenSet() const { return m_estimatedTimeToCompletionInSecondsHasBeenSet; } /** *

The estimate of the time remaining before the restore is complete. Returns 0 * for a completed restore.

This field is only updated when you restore to * DC2 and DS2 node types.

*/ inline void SetEstimatedTimeToCompletionInSeconds(long long value) { m_estimatedTimeToCompletionInSecondsHasBeenSet = true; m_estimatedTimeToCompletionInSeconds = value; } /** *

The estimate of the time remaining before the restore is complete. Returns 0 * for a completed restore.

This field is only updated when you restore to * DC2 and DS2 node types.

*/ inline AwsRedshiftClusterRestoreStatus& WithEstimatedTimeToCompletionInSeconds(long long value) { SetEstimatedTimeToCompletionInSeconds(value); return *this;} /** *

The number of megabytes that were transferred from snapshot storage.

*

This field is only updated when you restore to DC2 and DS2 node types.

*/ inline long long GetProgressInMegaBytes() const{ return m_progressInMegaBytes; } /** *

The number of megabytes that were transferred from snapshot storage.

*

This field is only updated when you restore to DC2 and DS2 node types.

*/ inline bool ProgressInMegaBytesHasBeenSet() const { return m_progressInMegaBytesHasBeenSet; } /** *

The number of megabytes that were transferred from snapshot storage.

*

This field is only updated when you restore to DC2 and DS2 node types.

*/ inline void SetProgressInMegaBytes(long long value) { m_progressInMegaBytesHasBeenSet = true; m_progressInMegaBytes = value; } /** *

The number of megabytes that were transferred from snapshot storage.

*

This field is only updated when you restore to DC2 and DS2 node types.

*/ inline AwsRedshiftClusterRestoreStatus& WithProgressInMegaBytes(long long value) { SetProgressInMegaBytes(value); return *this;} /** *

The size of the set of snapshot data that was used to restore the * cluster.

This field is only updated when you restore to DC2 and DS2 node * types.

*/ inline long long GetSnapshotSizeInMegaBytes() const{ return m_snapshotSizeInMegaBytes; } /** *

The size of the set of snapshot data that was used to restore the * cluster.

This field is only updated when you restore to DC2 and DS2 node * types.

*/ inline bool SnapshotSizeInMegaBytesHasBeenSet() const { return m_snapshotSizeInMegaBytesHasBeenSet; } /** *

The size of the set of snapshot data that was used to restore the * cluster.

This field is only updated when you restore to DC2 and DS2 node * types.

*/ inline void SetSnapshotSizeInMegaBytes(long long value) { m_snapshotSizeInMegaBytesHasBeenSet = true; m_snapshotSizeInMegaBytes = value; } /** *

The size of the set of snapshot data that was used to restore the * cluster.

This field is only updated when you restore to DC2 and DS2 node * types.

*/ inline AwsRedshiftClusterRestoreStatus& WithSnapshotSizeInMegaBytes(long long value) { SetSnapshotSizeInMegaBytes(value); return *this;} /** *

The status of the restore action.

Valid values: starting * | restoring | completed | failed

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the restore action.

Valid values: starting * | restoring | completed | failed

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the restore action.

Valid values: starting * | restoring | completed | failed

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the restore action.

Valid values: starting * | restoring | completed | failed

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the restore action.

Valid values: starting * | restoring | completed | failed

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the restore action.

Valid values: starting * | restoring | completed | failed

*/ inline AwsRedshiftClusterRestoreStatus& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the restore action.

Valid values: starting * | restoring | completed | failed

*/ inline AwsRedshiftClusterRestoreStatus& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the restore action.

Valid values: starting * | restoring | completed | failed

*/ inline AwsRedshiftClusterRestoreStatus& WithStatus(const char* value) { SetStatus(value); return *this;} private: double m_currentRestoreRateInMegaBytesPerSecond; bool m_currentRestoreRateInMegaBytesPerSecondHasBeenSet = false; long long m_elapsedTimeInSeconds; bool m_elapsedTimeInSecondsHasBeenSet = false; long long m_estimatedTimeToCompletionInSeconds; bool m_estimatedTimeToCompletionInSecondsHasBeenSet = false; long long m_progressInMegaBytes; bool m_progressInMegaBytesHasBeenSet = false; long long m_snapshotSizeInMegaBytes; bool m_snapshotSizeInMegaBytesHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws