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

Describes the status of a cluster while it is in the process of resizing with * an incremental resize.

See Also:

AWS * API Reference

*/ class DataTransferProgress { public: AWS_REDSHIFT_API DataTransferProgress(); AWS_REDSHIFT_API DataTransferProgress(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_REDSHIFT_API DataTransferProgress& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

Describes the status of the cluster. While the transfer is in progress the * status is transferringdata.

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

Describes the status of the cluster. While the transfer is in progress the * status is transferringdata.

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

Describes the status of the cluster. While the transfer is in progress the * status is transferringdata.

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

Describes the status of the cluster. While the transfer is in progress the * status is transferringdata.

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

Describes the status of the cluster. While the transfer is in progress the * status is transferringdata.

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

Describes the status of the cluster. While the transfer is in progress the * status is transferringdata.

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

Describes the status of the cluster. While the transfer is in progress the * status is transferringdata.

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

Describes the status of the cluster. While the transfer is in progress the * status is transferringdata.

*/ inline DataTransferProgress& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

Describes the data transfer rate in MB's per second.

*/ inline double GetCurrentRateInMegaBytesPerSecond() const{ return m_currentRateInMegaBytesPerSecond; } /** *

Describes the data transfer rate in MB's per second.

*/ inline bool CurrentRateInMegaBytesPerSecondHasBeenSet() const { return m_currentRateInMegaBytesPerSecondHasBeenSet; } /** *

Describes the data transfer rate in MB's per second.

*/ inline void SetCurrentRateInMegaBytesPerSecond(double value) { m_currentRateInMegaBytesPerSecondHasBeenSet = true; m_currentRateInMegaBytesPerSecond = value; } /** *

Describes the data transfer rate in MB's per second.

*/ inline DataTransferProgress& WithCurrentRateInMegaBytesPerSecond(double value) { SetCurrentRateInMegaBytesPerSecond(value); return *this;} /** *

Describes the total amount of data to be transfered in megabytes.

*/ inline long long GetTotalDataInMegaBytes() const{ return m_totalDataInMegaBytes; } /** *

Describes the total amount of data to be transfered in megabytes.

*/ inline bool TotalDataInMegaBytesHasBeenSet() const { return m_totalDataInMegaBytesHasBeenSet; } /** *

Describes the total amount of data to be transfered in megabytes.

*/ inline void SetTotalDataInMegaBytes(long long value) { m_totalDataInMegaBytesHasBeenSet = true; m_totalDataInMegaBytes = value; } /** *

Describes the total amount of data to be transfered in megabytes.

*/ inline DataTransferProgress& WithTotalDataInMegaBytes(long long value) { SetTotalDataInMegaBytes(value); return *this;} /** *

Describes the total amount of data that has been transfered in MB's.

*/ inline long long GetDataTransferredInMegaBytes() const{ return m_dataTransferredInMegaBytes; } /** *

Describes the total amount of data that has been transfered in MB's.

*/ inline bool DataTransferredInMegaBytesHasBeenSet() const { return m_dataTransferredInMegaBytesHasBeenSet; } /** *

Describes the total amount of data that has been transfered in MB's.

*/ inline void SetDataTransferredInMegaBytes(long long value) { m_dataTransferredInMegaBytesHasBeenSet = true; m_dataTransferredInMegaBytes = value; } /** *

Describes the total amount of data that has been transfered in MB's.

*/ inline DataTransferProgress& WithDataTransferredInMegaBytes(long long value) { SetDataTransferredInMegaBytes(value); return *this;} /** *

Describes the estimated number of seconds remaining to complete the * transfer.

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

Describes the estimated number of seconds remaining to complete the * transfer.

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

Describes the estimated number of seconds remaining to complete the * transfer.

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

Describes the estimated number of seconds remaining to complete the * transfer.

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

Describes the number of seconds that have elapsed during the data * transfer.

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

Describes the number of seconds that have elapsed during the data * transfer.

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

Describes the number of seconds that have elapsed during the data * transfer.

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

Describes the number of seconds that have elapsed during the data * transfer.

*/ inline DataTransferProgress& WithElapsedTimeInSeconds(long long value) { SetElapsedTimeInSeconds(value); return *this;} private: Aws::String m_status; bool m_statusHasBeenSet = false; double m_currentRateInMegaBytesPerSecond; bool m_currentRateInMegaBytesPerSecondHasBeenSet = false; long long m_totalDataInMegaBytes; bool m_totalDataInMegaBytesHasBeenSet = false; long long m_dataTransferredInMegaBytes; bool m_dataTransferredInMegaBytesHasBeenSet = false; long long m_estimatedTimeToCompletionInSeconds; bool m_estimatedTimeToCompletionInSecondsHasBeenSet = false; long long m_elapsedTimeInSeconds; bool m_elapsedTimeInSecondsHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws