AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
51 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
52 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
53 inline RestoreStatus& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
54 inline RestoreStatus& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
55 inline RestoreStatus& WithStatus(const char* value) { SetStatus(value); return *this;}
57
59
64 inline double GetCurrentRestoreRateInMegaBytesPerSecond() const{ return m_currentRestoreRateInMegaBytesPerSecond; }
65 inline bool CurrentRestoreRateInMegaBytesPerSecondHasBeenSet() const { return m_currentRestoreRateInMegaBytesPerSecondHasBeenSet; }
66 inline void SetCurrentRestoreRateInMegaBytesPerSecond(double value) { m_currentRestoreRateInMegaBytesPerSecondHasBeenSet = true; m_currentRestoreRateInMegaBytesPerSecond = value; }
69
71
75 inline long long GetSnapshotSizeInMegaBytes() const{ return m_snapshotSizeInMegaBytes; }
76 inline bool SnapshotSizeInMegaBytesHasBeenSet() const { return m_snapshotSizeInMegaBytesHasBeenSet; }
77 inline void SetSnapshotSizeInMegaBytes(long long value) { m_snapshotSizeInMegaBytesHasBeenSet = true; m_snapshotSizeInMegaBytes = value; }
78 inline RestoreStatus& WithSnapshotSizeInMegaBytes(long long value) { SetSnapshotSizeInMegaBytes(value); return *this;}
80
82
86 inline long long GetProgressInMegaBytes() const{ return m_progressInMegaBytes; }
87 inline bool ProgressInMegaBytesHasBeenSet() const { return m_progressInMegaBytesHasBeenSet; }
88 inline void SetProgressInMegaBytes(long long value) { m_progressInMegaBytesHasBeenSet = true; m_progressInMegaBytes = value; }
89 inline RestoreStatus& WithProgressInMegaBytes(long long value) { SetProgressInMegaBytes(value); return *this;}
91
93
98 inline long long GetElapsedTimeInSeconds() const{ return m_elapsedTimeInSeconds; }
99 inline bool ElapsedTimeInSecondsHasBeenSet() const { return m_elapsedTimeInSecondsHasBeenSet; }
100 inline void SetElapsedTimeInSeconds(long long value) { m_elapsedTimeInSecondsHasBeenSet = true; m_elapsedTimeInSeconds = value; }
101 inline RestoreStatus& WithElapsedTimeInSeconds(long long value) { SetElapsedTimeInSeconds(value); return *this;}
103
105
110 inline long long GetEstimatedTimeToCompletionInSeconds() const{ return m_estimatedTimeToCompletionInSeconds; }
111 inline bool EstimatedTimeToCompletionInSecondsHasBeenSet() const { return m_estimatedTimeToCompletionInSecondsHasBeenSet; }
112 inline void SetEstimatedTimeToCompletionInSeconds(long long value) { m_estimatedTimeToCompletionInSecondsHasBeenSet = true; m_estimatedTimeToCompletionInSeconds = value; }
115 private:
116
117 Aws::String m_status;
118 bool m_statusHasBeenSet = false;
119
120 double m_currentRestoreRateInMegaBytesPerSecond;
121 bool m_currentRestoreRateInMegaBytesPerSecondHasBeenSet = false;
122
123 long long m_snapshotSizeInMegaBytes;
124 bool m_snapshotSizeInMegaBytesHasBeenSet = false;
125
126 long long m_progressInMegaBytes;
127 bool m_progressInMegaBytesHasBeenSet = false;
128
129 long long m_elapsedTimeInSeconds;
130 bool m_elapsedTimeInSecondsHasBeenSet = false;
131
132 long long m_estimatedTimeToCompletionInSeconds;
133 bool m_estimatedTimeToCompletionInSecondsHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace Redshift
138} // namespace Aws
RestoreStatus & WithEstimatedTimeToCompletionInSeconds(long long value)
RestoreStatus & WithStatus(Aws::String &&value)
bool EstimatedTimeToCompletionInSecondsHasBeenSet() const
void SetStatus(const Aws::String &value)
void SetCurrentRestoreRateInMegaBytesPerSecond(double value)
const Aws::String & GetStatus() const
void SetStatus(Aws::String &&value)
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)
RestoreStatus & WithStatus(const Aws::String &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
RestoreStatus & WithStatus(const char *value)
double GetCurrentRestoreRateInMegaBytesPerSecond() const
RestoreStatus & WithCurrentRestoreRateInMegaBytesPerSecond(double value)
long long GetEstimatedTimeToCompletionInSeconds() const
long long GetElapsedTimeInSeconds() const
bool CurrentRestoreRateInMegaBytesPerSecondHasBeenSet() const
long long GetSnapshotSizeInMegaBytes() const
void SetStatus(const char *value)
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(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