AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RestoreStatus.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Redshift
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_REDSHIFT_API RestoreStatus() = default;
36 AWS_REDSHIFT_API RestoreStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_REDSHIFT_API RestoreStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
48 inline const Aws::String& GetStatus() const { return m_status; }
49 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
50 template<typename StatusT = Aws::String>
51 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
52 template<typename StatusT = Aws::String>
53 RestoreStatus& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
55
57
62 inline double GetCurrentRestoreRateInMegaBytesPerSecond() const { return m_currentRestoreRateInMegaBytesPerSecond; }
63 inline bool CurrentRestoreRateInMegaBytesPerSecondHasBeenSet() const { return m_currentRestoreRateInMegaBytesPerSecondHasBeenSet; }
64 inline void SetCurrentRestoreRateInMegaBytesPerSecond(double value) { m_currentRestoreRateInMegaBytesPerSecondHasBeenSet = true; m_currentRestoreRateInMegaBytesPerSecond = value; }
67
69
73 inline long long GetSnapshotSizeInMegaBytes() const { return m_snapshotSizeInMegaBytes; }
74 inline bool SnapshotSizeInMegaBytesHasBeenSet() const { return m_snapshotSizeInMegaBytesHasBeenSet; }
75 inline void SetSnapshotSizeInMegaBytes(long long value) { m_snapshotSizeInMegaBytesHasBeenSet = true; m_snapshotSizeInMegaBytes = value; }
76 inline RestoreStatus& WithSnapshotSizeInMegaBytes(long long value) { SetSnapshotSizeInMegaBytes(value); return *this;}
78
80
84 inline long long GetProgressInMegaBytes() const { return m_progressInMegaBytes; }
85 inline bool ProgressInMegaBytesHasBeenSet() const { return m_progressInMegaBytesHasBeenSet; }
86 inline void SetProgressInMegaBytes(long long value) { m_progressInMegaBytesHasBeenSet = true; m_progressInMegaBytes = value; }
87 inline RestoreStatus& WithProgressInMegaBytes(long long value) { SetProgressInMegaBytes(value); return *this;}
89
91
96 inline long long GetElapsedTimeInSeconds() const { return m_elapsedTimeInSeconds; }
97 inline bool ElapsedTimeInSecondsHasBeenSet() const { return m_elapsedTimeInSecondsHasBeenSet; }
98 inline void SetElapsedTimeInSeconds(long long value) { m_elapsedTimeInSecondsHasBeenSet = true; m_elapsedTimeInSeconds = value; }
99 inline RestoreStatus& WithElapsedTimeInSeconds(long long value) { SetElapsedTimeInSeconds(value); return *this;}
101
103
108 inline long long GetEstimatedTimeToCompletionInSeconds() const { return m_estimatedTimeToCompletionInSeconds; }
109 inline bool EstimatedTimeToCompletionInSecondsHasBeenSet() const { return m_estimatedTimeToCompletionInSecondsHasBeenSet; }
110 inline void SetEstimatedTimeToCompletionInSeconds(long long value) { m_estimatedTimeToCompletionInSecondsHasBeenSet = true; m_estimatedTimeToCompletionInSeconds = value; }
113 private:
114
115 Aws::String m_status;
116 bool m_statusHasBeenSet = false;
117
118 double m_currentRestoreRateInMegaBytesPerSecond{0.0};
119 bool m_currentRestoreRateInMegaBytesPerSecondHasBeenSet = false;
120
121 long long m_snapshotSizeInMegaBytes{0};
122 bool m_snapshotSizeInMegaBytesHasBeenSet = false;
123
124 long long m_progressInMegaBytes{0};
125 bool m_progressInMegaBytesHasBeenSet = false;
126
127 long long m_elapsedTimeInSeconds{0};
128 bool m_elapsedTimeInSecondsHasBeenSet = false;
129
130 long long m_estimatedTimeToCompletionInSeconds{0};
131 bool m_estimatedTimeToCompletionInSecondsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Redshift
136} // namespace Aws
RestoreStatus & WithEstimatedTimeToCompletionInSeconds(long long value)
RestoreStatus & WithStatus(StatusT &&value)
bool EstimatedTimeToCompletionInSecondsHasBeenSet() const
void SetCurrentRestoreRateInMegaBytesPerSecond(double value)
const Aws::String & GetStatus() const
void SetEstimatedTimeToCompletionInSeconds(long long value)
RestoreStatus & WithProgressInMegaBytes(long long value)
void SetElapsedTimeInSeconds(long long value)
AWS_REDSHIFT_API RestoreStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
double GetCurrentRestoreRateInMegaBytesPerSecond() const
RestoreStatus & WithCurrentRestoreRateInMegaBytesPerSecond(double value)
long long GetEstimatedTimeToCompletionInSeconds() const
long long GetElapsedTimeInSeconds() const
bool CurrentRestoreRateInMegaBytesPerSecondHasBeenSet() const
long long GetSnapshotSizeInMegaBytes() const
RestoreStatus & WithElapsedTimeInSeconds(long long value)
void SetProgressInMegaBytes(long long value)
void SetSnapshotSizeInMegaBytes(long long value)
RestoreStatus & WithSnapshotSizeInMegaBytes(long long value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_REDSHIFT_API RestoreStatus()=default
AWS_REDSHIFT_API RestoreStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream