AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CancelResizeResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/ResponseMetadata.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace Redshift {
25namespace Model {
33 public:
34 AWS_REDSHIFT_API CancelResizeResult() = default;
37
39
43 inline const Aws::String& GetTargetNodeType() const { return m_targetNodeType; }
44 template <typename TargetNodeTypeT = Aws::String>
45 void SetTargetNodeType(TargetNodeTypeT&& value) {
46 m_targetNodeTypeHasBeenSet = true;
47 m_targetNodeType = std::forward<TargetNodeTypeT>(value);
48 }
49 template <typename TargetNodeTypeT = Aws::String>
50 CancelResizeResult& WithTargetNodeType(TargetNodeTypeT&& value) {
51 SetTargetNodeType(std::forward<TargetNodeTypeT>(value));
52 return *this;
53 }
55
57
61 inline int GetTargetNumberOfNodes() const { return m_targetNumberOfNodes; }
62 inline void SetTargetNumberOfNodes(int value) {
63 m_targetNumberOfNodesHasBeenSet = true;
64 m_targetNumberOfNodes = value;
65 }
68 return *this;
69 }
71
73
77 inline const Aws::String& GetTargetClusterType() const { return m_targetClusterType; }
78 template <typename TargetClusterTypeT = Aws::String>
79 void SetTargetClusterType(TargetClusterTypeT&& value) {
80 m_targetClusterTypeHasBeenSet = true;
81 m_targetClusterType = std::forward<TargetClusterTypeT>(value);
82 }
83 template <typename TargetClusterTypeT = Aws::String>
84 CancelResizeResult& WithTargetClusterType(TargetClusterTypeT&& value) {
85 SetTargetClusterType(std::forward<TargetClusterTypeT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::String& GetStatus() const { return m_status; }
97 template <typename StatusT = Aws::String>
98 void SetStatus(StatusT&& value) {
99 m_statusHasBeenSet = true;
100 m_status = std::forward<StatusT>(value);
101 }
102 template <typename StatusT = Aws::String>
103 CancelResizeResult& WithStatus(StatusT&& value) {
104 SetStatus(std::forward<StatusT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Vector<Aws::String>& GetImportTablesCompleted() const { return m_importTablesCompleted; }
115 template <typename ImportTablesCompletedT = Aws::Vector<Aws::String>>
116 void SetImportTablesCompleted(ImportTablesCompletedT&& value) {
117 m_importTablesCompletedHasBeenSet = true;
118 m_importTablesCompleted = std::forward<ImportTablesCompletedT>(value);
119 }
120 template <typename ImportTablesCompletedT = Aws::Vector<Aws::String>>
121 CancelResizeResult& WithImportTablesCompleted(ImportTablesCompletedT&& value) {
122 SetImportTablesCompleted(std::forward<ImportTablesCompletedT>(value));
123 return *this;
124 }
125 template <typename ImportTablesCompletedT = Aws::String>
126 CancelResizeResult& AddImportTablesCompleted(ImportTablesCompletedT&& value) {
127 m_importTablesCompletedHasBeenSet = true;
128 m_importTablesCompleted.emplace_back(std::forward<ImportTablesCompletedT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::Vector<Aws::String>& GetImportTablesInProgress() const { return m_importTablesInProgress; }
139 template <typename ImportTablesInProgressT = Aws::Vector<Aws::String>>
140 void SetImportTablesInProgress(ImportTablesInProgressT&& value) {
141 m_importTablesInProgressHasBeenSet = true;
142 m_importTablesInProgress = std::forward<ImportTablesInProgressT>(value);
143 }
144 template <typename ImportTablesInProgressT = Aws::Vector<Aws::String>>
145 CancelResizeResult& WithImportTablesInProgress(ImportTablesInProgressT&& value) {
146 SetImportTablesInProgress(std::forward<ImportTablesInProgressT>(value));
147 return *this;
148 }
149 template <typename ImportTablesInProgressT = Aws::String>
150 CancelResizeResult& AddImportTablesInProgress(ImportTablesInProgressT&& value) {
151 m_importTablesInProgressHasBeenSet = true;
152 m_importTablesInProgress.emplace_back(std::forward<ImportTablesInProgressT>(value));
153 return *this;
154 }
156
158
162 inline const Aws::Vector<Aws::String>& GetImportTablesNotStarted() const { return m_importTablesNotStarted; }
163 template <typename ImportTablesNotStartedT = Aws::Vector<Aws::String>>
164 void SetImportTablesNotStarted(ImportTablesNotStartedT&& value) {
165 m_importTablesNotStartedHasBeenSet = true;
166 m_importTablesNotStarted = std::forward<ImportTablesNotStartedT>(value);
167 }
168 template <typename ImportTablesNotStartedT = Aws::Vector<Aws::String>>
169 CancelResizeResult& WithImportTablesNotStarted(ImportTablesNotStartedT&& value) {
170 SetImportTablesNotStarted(std::forward<ImportTablesNotStartedT>(value));
171 return *this;
172 }
173 template <typename ImportTablesNotStartedT = Aws::String>
174 CancelResizeResult& AddImportTablesNotStarted(ImportTablesNotStartedT&& value) {
175 m_importTablesNotStartedHasBeenSet = true;
176 m_importTablesNotStarted.emplace_back(std::forward<ImportTablesNotStartedT>(value));
177 return *this;
178 }
180
182
187 inline double GetAvgResizeRateInMegaBytesPerSecond() const { return m_avgResizeRateInMegaBytesPerSecond; }
188 inline void SetAvgResizeRateInMegaBytesPerSecond(double value) {
189 m_avgResizeRateInMegaBytesPerSecondHasBeenSet = true;
190 m_avgResizeRateInMegaBytesPerSecond = value;
191 }
194 return *this;
195 }
197
199
203 inline long long GetTotalResizeDataInMegaBytes() const { return m_totalResizeDataInMegaBytes; }
204 inline void SetTotalResizeDataInMegaBytes(long long value) {
205 m_totalResizeDataInMegaBytesHasBeenSet = true;
206 m_totalResizeDataInMegaBytes = value;
207 }
210 return *this;
211 }
213
215
222 inline long long GetProgressInMegaBytes() const { return m_progressInMegaBytes; }
223 inline void SetProgressInMegaBytes(long long value) {
224 m_progressInMegaBytesHasBeenSet = true;
225 m_progressInMegaBytes = value;
226 }
229 return *this;
230 }
232
234
239 inline long long GetElapsedTimeInSeconds() const { return m_elapsedTimeInSeconds; }
240 inline void SetElapsedTimeInSeconds(long long value) {
241 m_elapsedTimeInSecondsHasBeenSet = true;
242 m_elapsedTimeInSeconds = value;
243 }
246 return *this;
247 }
249
251
257 inline long long GetEstimatedTimeToCompletionInSeconds() const { return m_estimatedTimeToCompletionInSeconds; }
258 inline void SetEstimatedTimeToCompletionInSeconds(long long value) {
259 m_estimatedTimeToCompletionInSecondsHasBeenSet = true;
260 m_estimatedTimeToCompletionInSeconds = value;
261 }
264 return *this;
265 }
267
269
274 inline const Aws::String& GetResizeType() const { return m_resizeType; }
275 template <typename ResizeTypeT = Aws::String>
276 void SetResizeType(ResizeTypeT&& value) {
277 m_resizeTypeHasBeenSet = true;
278 m_resizeType = std::forward<ResizeTypeT>(value);
279 }
280 template <typename ResizeTypeT = Aws::String>
281 CancelResizeResult& WithResizeType(ResizeTypeT&& value) {
282 SetResizeType(std::forward<ResizeTypeT>(value));
283 return *this;
284 }
286
288
291 inline const Aws::String& GetMessage() const { return m_message; }
292 template <typename MessageT = Aws::String>
293 void SetMessage(MessageT&& value) {
294 m_messageHasBeenSet = true;
295 m_message = std::forward<MessageT>(value);
296 }
297 template <typename MessageT = Aws::String>
298 CancelResizeResult& WithMessage(MessageT&& value) {
299 SetMessage(std::forward<MessageT>(value));
300 return *this;
301 }
303
305
309 inline const Aws::String& GetTargetEncryptionType() const { return m_targetEncryptionType; }
310 template <typename TargetEncryptionTypeT = Aws::String>
311 void SetTargetEncryptionType(TargetEncryptionTypeT&& value) {
312 m_targetEncryptionTypeHasBeenSet = true;
313 m_targetEncryptionType = std::forward<TargetEncryptionTypeT>(value);
314 }
315 template <typename TargetEncryptionTypeT = Aws::String>
316 CancelResizeResult& WithTargetEncryptionType(TargetEncryptionTypeT&& value) {
317 SetTargetEncryptionType(std::forward<TargetEncryptionTypeT>(value));
318 return *this;
319 }
321
323
326 inline double GetDataTransferProgressPercent() const { return m_dataTransferProgressPercent; }
327 inline void SetDataTransferProgressPercent(double value) {
328 m_dataTransferProgressPercentHasBeenSet = true;
329 m_dataTransferProgressPercent = value;
330 }
333 return *this;
334 }
336
338
339 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
340 template <typename ResponseMetadataT = ResponseMetadata>
341 void SetResponseMetadata(ResponseMetadataT&& value) {
342 m_responseMetadataHasBeenSet = true;
343 m_responseMetadata = std::forward<ResponseMetadataT>(value);
344 }
345 template <typename ResponseMetadataT = ResponseMetadata>
346 CancelResizeResult& WithResponseMetadata(ResponseMetadataT&& value) {
347 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
348 return *this;
349 }
351 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
352
353 private:
354 Aws::String m_targetNodeType;
355
356 int m_targetNumberOfNodes{0};
357
358 Aws::String m_targetClusterType;
359
360 Aws::String m_status;
361
362 Aws::Vector<Aws::String> m_importTablesCompleted;
363
364 Aws::Vector<Aws::String> m_importTablesInProgress;
365
366 Aws::Vector<Aws::String> m_importTablesNotStarted;
367
368 double m_avgResizeRateInMegaBytesPerSecond{0.0};
369
370 long long m_totalResizeDataInMegaBytes{0};
371
372 long long m_progressInMegaBytes{0};
373
374 long long m_elapsedTimeInSeconds{0};
375
376 long long m_estimatedTimeToCompletionInSeconds{0};
377
378 Aws::String m_resizeType;
379
380 Aws::String m_message;
381
382 Aws::String m_targetEncryptionType;
383
384 double m_dataTransferProgressPercent{0.0};
385
386 ResponseMetadata m_responseMetadata;
387 Aws::Http::HttpResponseCode m_HttpResponseCode;
388 bool m_targetNodeTypeHasBeenSet = false;
389 bool m_targetNumberOfNodesHasBeenSet = false;
390 bool m_targetClusterTypeHasBeenSet = false;
391 bool m_statusHasBeenSet = false;
392 bool m_importTablesCompletedHasBeenSet = false;
393 bool m_importTablesInProgressHasBeenSet = false;
394 bool m_importTablesNotStartedHasBeenSet = false;
395 bool m_avgResizeRateInMegaBytesPerSecondHasBeenSet = false;
396 bool m_totalResizeDataInMegaBytesHasBeenSet = false;
397 bool m_progressInMegaBytesHasBeenSet = false;
398 bool m_elapsedTimeInSecondsHasBeenSet = false;
399 bool m_estimatedTimeToCompletionInSecondsHasBeenSet = false;
400 bool m_resizeTypeHasBeenSet = false;
401 bool m_messageHasBeenSet = false;
402 bool m_targetEncryptionTypeHasBeenSet = false;
403 bool m_dataTransferProgressPercentHasBeenSet = false;
404 bool m_responseMetadataHasBeenSet = false;
405};
406
407} // namespace Model
408} // namespace Redshift
409} // namespace Aws
CancelResizeResult & WithAvgResizeRateInMegaBytesPerSecond(double value)
const Aws::Vector< Aws::String > & GetImportTablesCompleted() const
CancelResizeResult & WithTargetClusterType(TargetClusterTypeT &&value)
void SetTargetEncryptionType(TargetEncryptionTypeT &&value)
AWS_REDSHIFT_API CancelResizeResult()=default
CancelResizeResult & WithResponseMetadata(ResponseMetadataT &&value)
CancelResizeResult & WithEstimatedTimeToCompletionInSeconds(long long value)
CancelResizeResult & WithTotalResizeDataInMegaBytes(long long value)
CancelResizeResult & WithImportTablesInProgress(ImportTablesInProgressT &&value)
CancelResizeResult & AddImportTablesInProgress(ImportTablesInProgressT &&value)
CancelResizeResult & WithTargetNumberOfNodes(int value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CancelResizeResult & WithElapsedTimeInSeconds(long long value)
const Aws::Vector< Aws::String > & GetImportTablesNotStarted() const
CancelResizeResult & AddImportTablesNotStarted(ImportTablesNotStartedT &&value)
CancelResizeResult & WithTargetEncryptionType(TargetEncryptionTypeT &&value)
const Aws::String & GetTargetClusterType() const
CancelResizeResult & WithStatus(StatusT &&value)
void SetImportTablesNotStarted(ImportTablesNotStartedT &&value)
void SetTargetNodeType(TargetNodeTypeT &&value)
void SetTargetClusterType(TargetClusterTypeT &&value)
CancelResizeResult & WithTargetNodeType(TargetNodeTypeT &&value)
const Aws::String & GetTargetNodeType() const
AWS_REDSHIFT_API CancelResizeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Vector< Aws::String > & GetImportTablesInProgress() const
void SetEstimatedTimeToCompletionInSeconds(long long value)
const Aws::String & GetTargetEncryptionType() const
CancelResizeResult & WithResizeType(ResizeTypeT &&value)
CancelResizeResult & WithDataTransferProgressPercent(double value)
void SetImportTablesCompleted(ImportTablesCompletedT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
CancelResizeResult & WithImportTablesCompleted(ImportTablesCompletedT &&value)
const ResponseMetadata & GetResponseMetadata() const
CancelResizeResult & AddImportTablesCompleted(ImportTablesCompletedT &&value)
CancelResizeResult & WithProgressInMegaBytes(long long value)
void SetImportTablesInProgress(ImportTablesInProgressT &&value)
CancelResizeResult & WithMessage(MessageT &&value)
CancelResizeResult & WithImportTablesNotStarted(ImportTablesNotStartedT &&value)
AWS_REDSHIFT_API CancelResizeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument