AWS SDK for C++  1.9.160
AWS SDK for C++
DataTransferProgress.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 DataTransferProgress& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
78 
83  inline DataTransferProgress& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
84 
89  inline DataTransferProgress& WithStatus(const char* value) { SetStatus(value); return *this;}
90 
91 
95  inline double GetCurrentRateInMegaBytesPerSecond() const{ return m_currentRateInMegaBytesPerSecond; }
96 
100  inline bool CurrentRateInMegaBytesPerSecondHasBeenSet() const { return m_currentRateInMegaBytesPerSecondHasBeenSet; }
101 
105  inline void SetCurrentRateInMegaBytesPerSecond(double value) { m_currentRateInMegaBytesPerSecondHasBeenSet = true; m_currentRateInMegaBytesPerSecond = value; }
106 
110  inline DataTransferProgress& WithCurrentRateInMegaBytesPerSecond(double value) { SetCurrentRateInMegaBytesPerSecond(value); return *this;}
111 
112 
116  inline long long GetTotalDataInMegaBytes() const{ return m_totalDataInMegaBytes; }
117 
121  inline bool TotalDataInMegaBytesHasBeenSet() const { return m_totalDataInMegaBytesHasBeenSet; }
122 
126  inline void SetTotalDataInMegaBytes(long long value) { m_totalDataInMegaBytesHasBeenSet = true; m_totalDataInMegaBytes = value; }
127 
131  inline DataTransferProgress& WithTotalDataInMegaBytes(long long value) { SetTotalDataInMegaBytes(value); return *this;}
132 
133 
137  inline long long GetDataTransferredInMegaBytes() const{ return m_dataTransferredInMegaBytes; }
138 
142  inline bool DataTransferredInMegaBytesHasBeenSet() const { return m_dataTransferredInMegaBytesHasBeenSet; }
143 
147  inline void SetDataTransferredInMegaBytes(long long value) { m_dataTransferredInMegaBytesHasBeenSet = true; m_dataTransferredInMegaBytes = value; }
148 
152  inline DataTransferProgress& WithDataTransferredInMegaBytes(long long value) { SetDataTransferredInMegaBytes(value); return *this;}
153 
154 
159  inline long long GetEstimatedTimeToCompletionInSeconds() const{ return m_estimatedTimeToCompletionInSeconds; }
160 
165  inline bool EstimatedTimeToCompletionInSecondsHasBeenSet() const { return m_estimatedTimeToCompletionInSecondsHasBeenSet; }
166 
171  inline void SetEstimatedTimeToCompletionInSeconds(long long value) { m_estimatedTimeToCompletionInSecondsHasBeenSet = true; m_estimatedTimeToCompletionInSeconds = value; }
172 
177  inline DataTransferProgress& WithEstimatedTimeToCompletionInSeconds(long long value) { SetEstimatedTimeToCompletionInSeconds(value); return *this;}
178 
179 
184  inline long long GetElapsedTimeInSeconds() const{ return m_elapsedTimeInSeconds; }
185 
190  inline bool ElapsedTimeInSecondsHasBeenSet() const { return m_elapsedTimeInSecondsHasBeenSet; }
191 
196  inline void SetElapsedTimeInSeconds(long long value) { m_elapsedTimeInSecondsHasBeenSet = true; m_elapsedTimeInSeconds = value; }
197 
202  inline DataTransferProgress& WithElapsedTimeInSeconds(long long value) { SetElapsedTimeInSeconds(value); return *this;}
203 
204  private:
205 
206  Aws::String m_status;
207  bool m_statusHasBeenSet;
208 
209  double m_currentRateInMegaBytesPerSecond;
210  bool m_currentRateInMegaBytesPerSecondHasBeenSet;
211 
212  long long m_totalDataInMegaBytes;
213  bool m_totalDataInMegaBytesHasBeenSet;
214 
215  long long m_dataTransferredInMegaBytes;
216  bool m_dataTransferredInMegaBytesHasBeenSet;
217 
218  long long m_estimatedTimeToCompletionInSeconds;
219  bool m_estimatedTimeToCompletionInSecondsHasBeenSet;
220 
221  long long m_elapsedTimeInSeconds;
222  bool m_elapsedTimeInSecondsHasBeenSet;
223  };
224 
225 } // namespace Model
226 } // namespace Redshift
227 } // namespace Aws
Aws::Redshift::Model::DataTransferProgress::WithStatus
DataTransferProgress & WithStatus(Aws::String &&value)
Definition: DataTransferProgress.h:83
Aws::Redshift::Model::DataTransferProgress::WithDataTransferredInMegaBytes
DataTransferProgress & WithDataTransferredInMegaBytes(long long value)
Definition: DataTransferProgress.h:152
Aws::Redshift::Model::DataTransferProgress::DataTransferProgress
DataTransferProgress(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::DataTransferProgress::WithStatus
DataTransferProgress & WithStatus(const Aws::String &value)
Definition: DataTransferProgress.h:77
Aws::Redshift::Model::DataTransferProgress::SetCurrentRateInMegaBytesPerSecond
void SetCurrentRateInMegaBytesPerSecond(double value)
Definition: DataTransferProgress.h:105
Aws::Redshift::Model::DataTransferProgress::WithTotalDataInMegaBytes
DataTransferProgress & WithTotalDataInMegaBytes(long long value)
Definition: DataTransferProgress.h:131
Aws::Redshift::Model::DataTransferProgress::GetTotalDataInMegaBytes
long long GetTotalDataInMegaBytes() const
Definition: DataTransferProgress.h:116
AWSStreamFwd.h
Aws::Redshift::Model::DataTransferProgress::GetStatus
const Aws::String & GetStatus() const
Definition: DataTransferProgress.h:47
Aws::Redshift::Model::DataTransferProgress::WithStatus
DataTransferProgress & WithStatus(const char *value)
Definition: DataTransferProgress.h:89
Aws::Redshift::Model::DataTransferProgress::SetTotalDataInMegaBytes
void SetTotalDataInMegaBytes(long long value)
Definition: DataTransferProgress.h:126
Aws::Redshift::Model::DataTransferProgress::DataTransferredInMegaBytesHasBeenSet
bool DataTransferredInMegaBytesHasBeenSet() const
Definition: DataTransferProgress.h:142
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::DataTransferProgress::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::DataTransferProgress::SetStatus
void SetStatus(const Aws::String &value)
Definition: DataTransferProgress.h:59
Aws::Redshift::Model::DataTransferProgress::WithEstimatedTimeToCompletionInSeconds
DataTransferProgress & WithEstimatedTimeToCompletionInSeconds(long long value)
Definition: DataTransferProgress.h:177
Aws::Redshift::Model::DataTransferProgress::WithElapsedTimeInSeconds
DataTransferProgress & WithElapsedTimeInSeconds(long long value)
Definition: DataTransferProgress.h:202
Aws::Redshift::Model::DataTransferProgress::ElapsedTimeInSecondsHasBeenSet
bool ElapsedTimeInSecondsHasBeenSet() const
Definition: DataTransferProgress.h:190
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::DataTransferProgress::GetCurrentRateInMegaBytesPerSecond
double GetCurrentRateInMegaBytesPerSecond() const
Definition: DataTransferProgress.h:95
Aws::Redshift::Model::DataTransferProgress::GetEstimatedTimeToCompletionInSeconds
long long GetEstimatedTimeToCompletionInSeconds() const
Definition: DataTransferProgress.h:159
AWSString.h
Aws::Redshift::Model::DataTransferProgress::GetDataTransferredInMegaBytes
long long GetDataTransferredInMegaBytes() const
Definition: DataTransferProgress.h:137
Aws::Redshift::Model::DataTransferProgress::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: DataTransferProgress.h:53
Aws::Redshift::Model::DataTransferProgress::DataTransferProgress
DataTransferProgress()
Aws::Redshift::Model::DataTransferProgress::EstimatedTimeToCompletionInSecondsHasBeenSet
bool EstimatedTimeToCompletionInSecondsHasBeenSet() const
Definition: DataTransferProgress.h:165
Aws::Redshift::Model::DataTransferProgress::SetStatus
void SetStatus(Aws::String &&value)
Definition: DataTransferProgress.h:65
Aws::Redshift::Model::DataTransferProgress::SetElapsedTimeInSeconds
void SetElapsedTimeInSeconds(long long value)
Definition: DataTransferProgress.h:196
Aws::Redshift::Model::DataTransferProgress::SetStatus
void SetStatus(const char *value)
Definition: DataTransferProgress.h:71
Aws::Redshift::Model::DataTransferProgress::TotalDataInMegaBytesHasBeenSet
bool TotalDataInMegaBytesHasBeenSet() const
Definition: DataTransferProgress.h:121
Aws::Redshift::Model::DataTransferProgress::operator=
DataTransferProgress & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::DataTransferProgress::WithCurrentRateInMegaBytesPerSecond
DataTransferProgress & WithCurrentRateInMegaBytesPerSecond(double value)
Definition: DataTransferProgress.h:110
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::DataTransferProgress::GetElapsedTimeInSeconds
long long GetElapsedTimeInSeconds() const
Definition: DataTransferProgress.h:184
Aws::Redshift::Model::DataTransferProgress::CurrentRateInMegaBytesPerSecondHasBeenSet
bool CurrentRateInMegaBytesPerSecondHasBeenSet() const
Definition: DataTransferProgress.h:100
Aws::Redshift::Model::DataTransferProgress
Definition: DataTransferProgress.h:33
Aws::Redshift::Model::DataTransferProgress::SetDataTransferredInMegaBytes
void SetDataTransferredInMegaBytes(long long value)
Definition: DataTransferProgress.h:147
Aws::Redshift::Model::DataTransferProgress::SetEstimatedTimeToCompletionInSeconds
void SetEstimatedTimeToCompletionInSeconds(long long value)
Definition: DataTransferProgress.h:171
Aws::Redshift::Model::DataTransferProgress::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const