AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RestoreStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift/Redshift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace Redshift {
20namespace Model {
21
29 public:
30 AWS_REDSHIFT_API RestoreStatus() = default;
31 AWS_REDSHIFT_API RestoreStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_REDSHIFT_API RestoreStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
42 inline const Aws::String& GetStatus() const { return m_status; }
43 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
44 template <typename StatusT = Aws::String>
45 void SetStatus(StatusT&& value) {
46 m_statusHasBeenSet = true;
47 m_status = std::forward<StatusT>(value);
48 }
49 template <typename StatusT = Aws::String>
50 RestoreStatus& WithStatus(StatusT&& value) {
51 SetStatus(std::forward<StatusT>(value));
52 return *this;
53 }
55
57
62 inline double GetCurrentRestoreRateInMegaBytesPerSecond() const { return m_currentRestoreRateInMegaBytesPerSecond; }
63 inline bool CurrentRestoreRateInMegaBytesPerSecondHasBeenSet() const { return m_currentRestoreRateInMegaBytesPerSecondHasBeenSet; }
65 m_currentRestoreRateInMegaBytesPerSecondHasBeenSet = true;
66 m_currentRestoreRateInMegaBytesPerSecond = value;
67 }
70 return *this;
71 }
73
75
79 inline long long GetSnapshotSizeInMegaBytes() const { return m_snapshotSizeInMegaBytes; }
80 inline bool SnapshotSizeInMegaBytesHasBeenSet() const { return m_snapshotSizeInMegaBytesHasBeenSet; }
81 inline void SetSnapshotSizeInMegaBytes(long long value) {
82 m_snapshotSizeInMegaBytesHasBeenSet = true;
83 m_snapshotSizeInMegaBytes = value;
84 }
85 inline RestoreStatus& WithSnapshotSizeInMegaBytes(long long value) {
87 return *this;
88 }
90
92
96 inline long long GetProgressInMegaBytes() const { return m_progressInMegaBytes; }
97 inline bool ProgressInMegaBytesHasBeenSet() const { return m_progressInMegaBytesHasBeenSet; }
98 inline void SetProgressInMegaBytes(long long value) {
99 m_progressInMegaBytesHasBeenSet = true;
100 m_progressInMegaBytes = value;
101 }
102 inline RestoreStatus& WithProgressInMegaBytes(long long value) {
104 return *this;
105 }
107
109
114 inline long long GetElapsedTimeInSeconds() const { return m_elapsedTimeInSeconds; }
115 inline bool ElapsedTimeInSecondsHasBeenSet() const { return m_elapsedTimeInSecondsHasBeenSet; }
116 inline void SetElapsedTimeInSeconds(long long value) {
117 m_elapsedTimeInSecondsHasBeenSet = true;
118 m_elapsedTimeInSeconds = value;
119 }
120 inline RestoreStatus& WithElapsedTimeInSeconds(long long value) {
122 return *this;
123 }
125
127
132 inline long long GetEstimatedTimeToCompletionInSeconds() const { return m_estimatedTimeToCompletionInSeconds; }
133 inline bool EstimatedTimeToCompletionInSecondsHasBeenSet() const { return m_estimatedTimeToCompletionInSecondsHasBeenSet; }
134 inline void SetEstimatedTimeToCompletionInSeconds(long long value) {
135 m_estimatedTimeToCompletionInSecondsHasBeenSet = true;
136 m_estimatedTimeToCompletionInSeconds = value;
137 }
140 return *this;
141 }
143 private:
144 Aws::String m_status;
145
146 double m_currentRestoreRateInMegaBytesPerSecond{0.0};
147
148 long long m_snapshotSizeInMegaBytes{0};
149
150 long long m_progressInMegaBytes{0};
151
152 long long m_elapsedTimeInSeconds{0};
153
154 long long m_estimatedTimeToCompletionInSeconds{0};
155 bool m_statusHasBeenSet = false;
156 bool m_currentRestoreRateInMegaBytesPerSecondHasBeenSet = false;
157 bool m_snapshotSizeInMegaBytesHasBeenSet = false;
158 bool m_progressInMegaBytesHasBeenSet = false;
159 bool m_elapsedTimeInSecondsHasBeenSet = false;
160 bool m_estimatedTimeToCompletionInSecondsHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace Redshift
165} // 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
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