AWS SDK for C++  1.9.104
AWS SDK for C++
RestoreStatus.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace Redshift
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
47  inline const Aws::String& GetStatus() const{ return m_status; }
48 
53  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
54 
59  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
60 
65  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
66 
71  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
72 
77  inline RestoreStatus& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
78 
83  inline RestoreStatus& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
84 
89  inline RestoreStatus& WithStatus(const char* value) { SetStatus(value); return *this;}
90 
91 
97  inline double GetCurrentRestoreRateInMegaBytesPerSecond() const{ return m_currentRestoreRateInMegaBytesPerSecond; }
98 
104  inline bool CurrentRestoreRateInMegaBytesPerSecondHasBeenSet() const { return m_currentRestoreRateInMegaBytesPerSecondHasBeenSet; }
105 
111  inline void SetCurrentRestoreRateInMegaBytesPerSecond(double value) { m_currentRestoreRateInMegaBytesPerSecondHasBeenSet = true; m_currentRestoreRateInMegaBytesPerSecond = value; }
112 
118  inline RestoreStatus& WithCurrentRestoreRateInMegaBytesPerSecond(double value) { SetCurrentRestoreRateInMegaBytesPerSecond(value); return *this;}
119 
120 
125  inline long long GetSnapshotSizeInMegaBytes() const{ return m_snapshotSizeInMegaBytes; }
126 
131  inline bool SnapshotSizeInMegaBytesHasBeenSet() const { return m_snapshotSizeInMegaBytesHasBeenSet; }
132 
137  inline void SetSnapshotSizeInMegaBytes(long long value) { m_snapshotSizeInMegaBytesHasBeenSet = true; m_snapshotSizeInMegaBytes = value; }
138 
143  inline RestoreStatus& WithSnapshotSizeInMegaBytes(long long value) { SetSnapshotSizeInMegaBytes(value); return *this;}
144 
145 
150  inline long long GetProgressInMegaBytes() const{ return m_progressInMegaBytes; }
151 
156  inline bool ProgressInMegaBytesHasBeenSet() const { return m_progressInMegaBytesHasBeenSet; }
157 
162  inline void SetProgressInMegaBytes(long long value) { m_progressInMegaBytesHasBeenSet = true; m_progressInMegaBytes = value; }
163 
168  inline RestoreStatus& WithProgressInMegaBytes(long long value) { SetProgressInMegaBytes(value); return *this;}
169 
170 
176  inline long long GetElapsedTimeInSeconds() const{ return m_elapsedTimeInSeconds; }
177 
183  inline bool ElapsedTimeInSecondsHasBeenSet() const { return m_elapsedTimeInSecondsHasBeenSet; }
184 
190  inline void SetElapsedTimeInSeconds(long long value) { m_elapsedTimeInSecondsHasBeenSet = true; m_elapsedTimeInSeconds = value; }
191 
197  inline RestoreStatus& WithElapsedTimeInSeconds(long long value) { SetElapsedTimeInSeconds(value); return *this;}
198 
199 
205  inline long long GetEstimatedTimeToCompletionInSeconds() const{ return m_estimatedTimeToCompletionInSeconds; }
206 
212  inline bool EstimatedTimeToCompletionInSecondsHasBeenSet() const { return m_estimatedTimeToCompletionInSecondsHasBeenSet; }
213 
219  inline void SetEstimatedTimeToCompletionInSeconds(long long value) { m_estimatedTimeToCompletionInSecondsHasBeenSet = true; m_estimatedTimeToCompletionInSeconds = value; }
220 
226  inline RestoreStatus& WithEstimatedTimeToCompletionInSeconds(long long value) { SetEstimatedTimeToCompletionInSeconds(value); return *this;}
227 
228  private:
229 
230  Aws::String m_status;
231  bool m_statusHasBeenSet;
232 
233  double m_currentRestoreRateInMegaBytesPerSecond;
234  bool m_currentRestoreRateInMegaBytesPerSecondHasBeenSet;
235 
236  long long m_snapshotSizeInMegaBytes;
237  bool m_snapshotSizeInMegaBytesHasBeenSet;
238 
239  long long m_progressInMegaBytes;
240  bool m_progressInMegaBytesHasBeenSet;
241 
242  long long m_elapsedTimeInSeconds;
243  bool m_elapsedTimeInSecondsHasBeenSet;
244 
245  long long m_estimatedTimeToCompletionInSeconds;
246  bool m_estimatedTimeToCompletionInSecondsHasBeenSet;
247  };
248 
249 } // namespace Model
250 } // namespace Redshift
251 } // namespace Aws
Aws::Redshift::Model::RestoreStatus::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::RestoreStatus::SetCurrentRestoreRateInMegaBytesPerSecond
void SetCurrentRestoreRateInMegaBytesPerSecond(double value)
Definition: RestoreStatus.h:111
Aws::Redshift::Model::RestoreStatus::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::RestoreStatus::SetProgressInMegaBytes
void SetProgressInMegaBytes(long long value)
Definition: RestoreStatus.h:162
Aws::Redshift::Model::RestoreStatus::GetEstimatedTimeToCompletionInSeconds
long long GetEstimatedTimeToCompletionInSeconds() const
Definition: RestoreStatus.h:205
Aws::Redshift::Model::RestoreStatus::operator=
RestoreStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::RestoreStatus::WithEstimatedTimeToCompletionInSeconds
RestoreStatus & WithEstimatedTimeToCompletionInSeconds(long long value)
Definition: RestoreStatus.h:226
Aws::Redshift::Model::RestoreStatus::SetElapsedTimeInSeconds
void SetElapsedTimeInSeconds(long long value)
Definition: RestoreStatus.h:190
Aws::Redshift::Model::RestoreStatus
Definition: RestoreStatus.h:33
Aws::Redshift::Model::RestoreStatus::GetStatus
const Aws::String & GetStatus() const
Definition: RestoreStatus.h:47
Aws::Redshift::Model::RestoreStatus::GetCurrentRestoreRateInMegaBytesPerSecond
double GetCurrentRestoreRateInMegaBytesPerSecond() const
Definition: RestoreStatus.h:97
AWSStreamFwd.h
Aws::Redshift::Model::RestoreStatus::WithSnapshotSizeInMegaBytes
RestoreStatus & WithSnapshotSizeInMegaBytes(long long value)
Definition: RestoreStatus.h:143
Aws::Redshift::Model::RestoreStatus::SnapshotSizeInMegaBytesHasBeenSet
bool SnapshotSizeInMegaBytesHasBeenSet() const
Definition: RestoreStatus.h:131
Aws::Redshift::Model::RestoreStatus::WithElapsedTimeInSeconds
RestoreStatus & WithElapsedTimeInSeconds(long long value)
Definition: RestoreStatus.h:197
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::RestoreStatus::GetSnapshotSizeInMegaBytes
long long GetSnapshotSizeInMegaBytes() const
Definition: RestoreStatus.h:125
Aws::Redshift::Model::RestoreStatus::SetEstimatedTimeToCompletionInSeconds
void SetEstimatedTimeToCompletionInSeconds(long long value)
Definition: RestoreStatus.h:219
Aws::Redshift::Model::RestoreStatus::SetSnapshotSizeInMegaBytes
void SetSnapshotSizeInMegaBytes(long long value)
Definition: RestoreStatus.h:137
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::RestoreStatus::SetStatus
void SetStatus(Aws::String &&value)
Definition: RestoreStatus.h:65
Aws::Redshift::Model::RestoreStatus::WithProgressInMegaBytes
RestoreStatus & WithProgressInMegaBytes(long long value)
Definition: RestoreStatus.h:168
Aws::Redshift::Model::RestoreStatus::RestoreStatus
RestoreStatus()
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::RestoreStatus::SetStatus
void SetStatus(const Aws::String &value)
Definition: RestoreStatus.h:59
AWSString.h
Aws::Redshift::Model::RestoreStatus::WithStatus
RestoreStatus & WithStatus(Aws::String &&value)
Definition: RestoreStatus.h:83
Aws::Redshift::Model::RestoreStatus::SetStatus
void SetStatus(const char *value)
Definition: RestoreStatus.h:71
Aws::Redshift::Model::RestoreStatus::EstimatedTimeToCompletionInSecondsHasBeenSet
bool EstimatedTimeToCompletionInSecondsHasBeenSet() const
Definition: RestoreStatus.h:212
Aws::Redshift::Model::RestoreStatus::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: RestoreStatus.h:53
Aws::Redshift::Model::RestoreStatus::RestoreStatus
RestoreStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::RestoreStatus::ElapsedTimeInSecondsHasBeenSet
bool ElapsedTimeInSecondsHasBeenSet() const
Definition: RestoreStatus.h:183
Aws::Redshift::Model::RestoreStatus::CurrentRestoreRateInMegaBytesPerSecondHasBeenSet
bool CurrentRestoreRateInMegaBytesPerSecondHasBeenSet() const
Definition: RestoreStatus.h:104
Aws::Redshift::Model::RestoreStatus::GetElapsedTimeInSeconds
long long GetElapsedTimeInSeconds() const
Definition: RestoreStatus.h:176
Aws::Redshift::Model::RestoreStatus::GetProgressInMegaBytes
long long GetProgressInMegaBytes() const
Definition: RestoreStatus.h:150
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::RestoreStatus::WithCurrentRestoreRateInMegaBytesPerSecond
RestoreStatus & WithCurrentRestoreRateInMegaBytesPerSecond(double value)
Definition: RestoreStatus.h:118
Aws::Redshift::Model::RestoreStatus::WithStatus
RestoreStatus & WithStatus(const Aws::String &value)
Definition: RestoreStatus.h:77
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::RestoreStatus::ProgressInMegaBytesHasBeenSet
bool ProgressInMegaBytesHasBeenSet() const
Definition: RestoreStatus.h:156
Aws::Redshift::Model::RestoreStatus::WithStatus
RestoreStatus & WithStatus(const char *value)
Definition: RestoreStatus.h:89