/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the status of a cluster restore action. Returns null if the cluster
* was not created by restoring a snapshot.See Also:
AWS
* API Reference
The status of the restore action. Returns starting, restoring, completed, or * failed.
*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *The status of the restore action. Returns starting, restoring, completed, or * failed.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the restore action. Returns starting, restoring, completed, or * failed.
*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the restore action. Returns starting, restoring, completed, or * failed.
*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the restore action. Returns starting, restoring, completed, or * failed.
*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *The status of the restore action. Returns starting, restoring, completed, or * failed.
*/ inline RestoreStatus& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *The status of the restore action. Returns starting, restoring, completed, or * failed.
*/ inline RestoreStatus& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *The status of the restore action. Returns starting, restoring, completed, or * failed.
*/ inline RestoreStatus& WithStatus(const char* value) { SetStatus(value); return *this;} /** *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 RestoreStatus& WithCurrentRestoreRateInMegaBytesPerSecond(double value) { SetCurrentRestoreRateInMegaBytesPerSecond(value); return *this;} /** *The size of the set of snapshot data 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 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 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 used to restore the cluster. This field * is only updated when you restore to DC2 and DS2 node types.
*/ inline RestoreStatus& WithSnapshotSizeInMegaBytes(long long value) { SetSnapshotSizeInMegaBytes(value); return *this;} /** *The number of megabytes that have been 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 have been 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 have been 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 have been transferred from snapshot storage. * This field is only updated when you restore to DC2 and DS2 node types.
*/ inline RestoreStatus& WithProgressInMegaBytes(long long value) { SetProgressInMegaBytes(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 RestoreStatus& WithElapsedTimeInSeconds(long long value) { SetElapsedTimeInSeconds(value); return *this;} /** *The estimate of the time remaining before the restore will 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 will 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 will 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 will complete. Returns * 0 for a completed restore. This field is only updated when you restore to DC2 * and DS2 node types.
*/ inline RestoreStatus& WithEstimatedTimeToCompletionInSeconds(long long value) { SetEstimatedTimeToCompletionInSeconds(value); return *this;} private: Aws::String m_status; bool m_statusHasBeenSet = false; double m_currentRestoreRateInMegaBytesPerSecond; bool m_currentRestoreRateInMegaBytesPerSecondHasBeenSet = false; long long m_snapshotSizeInMegaBytes; bool m_snapshotSizeInMegaBytesHasBeenSet = false; long long m_progressInMegaBytes; bool m_progressInMegaBytesHasBeenSet = false; long long m_elapsedTimeInSeconds; bool m_elapsedTimeInSecondsHasBeenSet = false; long long m_estimatedTimeToCompletionInSeconds; bool m_estimatedTimeToCompletionInSecondsHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws