AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CancelResizeResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/redshift/Redshift_EXPORTS.h>
10#include <aws/redshift/model/ResponseMetadata.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift {
24namespace Model {
32 public:
33 AWS_REDSHIFT_API CancelResizeResult() = default;
36
38
42 inline const Aws::String& GetTargetNodeType() const { return m_targetNodeType; }
43 template <typename TargetNodeTypeT = Aws::String>
44 void SetTargetNodeType(TargetNodeTypeT&& value) {
45 m_targetNodeTypeHasBeenSet = true;
46 m_targetNodeType = std::forward<TargetNodeTypeT>(value);
47 }
48 template <typename TargetNodeTypeT = Aws::String>
49 CancelResizeResult& WithTargetNodeType(TargetNodeTypeT&& value) {
50 SetTargetNodeType(std::forward<TargetNodeTypeT>(value));
51 return *this;
52 }
54
56
60 inline int GetTargetNumberOfNodes() const { return m_targetNumberOfNodes; }
61 inline void SetTargetNumberOfNodes(int value) {
62 m_targetNumberOfNodesHasBeenSet = true;
63 m_targetNumberOfNodes = value;
64 }
67 return *this;
68 }
70
72
76 inline const Aws::String& GetTargetClusterType() const { return m_targetClusterType; }
77 template <typename TargetClusterTypeT = Aws::String>
78 void SetTargetClusterType(TargetClusterTypeT&& value) {
79 m_targetClusterTypeHasBeenSet = true;
80 m_targetClusterType = std::forward<TargetClusterTypeT>(value);
81 }
82 template <typename TargetClusterTypeT = Aws::String>
83 CancelResizeResult& WithTargetClusterType(TargetClusterTypeT&& value) {
84 SetTargetClusterType(std::forward<TargetClusterTypeT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::String& GetStatus() const { return m_status; }
96 template <typename StatusT = Aws::String>
97 void SetStatus(StatusT&& value) {
98 m_statusHasBeenSet = true;
99 m_status = std::forward<StatusT>(value);
100 }
101 template <typename StatusT = Aws::String>
102 CancelResizeResult& WithStatus(StatusT&& value) {
103 SetStatus(std::forward<StatusT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::Vector<Aws::String>& GetImportTablesCompleted() const { return m_importTablesCompleted; }
114 template <typename ImportTablesCompletedT = Aws::Vector<Aws::String>>
115 void SetImportTablesCompleted(ImportTablesCompletedT&& value) {
116 m_importTablesCompletedHasBeenSet = true;
117 m_importTablesCompleted = std::forward<ImportTablesCompletedT>(value);
118 }
119 template <typename ImportTablesCompletedT = Aws::Vector<Aws::String>>
120 CancelResizeResult& WithImportTablesCompleted(ImportTablesCompletedT&& value) {
121 SetImportTablesCompleted(std::forward<ImportTablesCompletedT>(value));
122 return *this;
123 }
124 template <typename ImportTablesCompletedT = Aws::String>
125 CancelResizeResult& AddImportTablesCompleted(ImportTablesCompletedT&& value) {
126 m_importTablesCompletedHasBeenSet = true;
127 m_importTablesCompleted.emplace_back(std::forward<ImportTablesCompletedT>(value));
128 return *this;
129 }
131
133
137 inline const Aws::Vector<Aws::String>& GetImportTablesInProgress() const { return m_importTablesInProgress; }
138 template <typename ImportTablesInProgressT = Aws::Vector<Aws::String>>
139 void SetImportTablesInProgress(ImportTablesInProgressT&& value) {
140 m_importTablesInProgressHasBeenSet = true;
141 m_importTablesInProgress = std::forward<ImportTablesInProgressT>(value);
142 }
143 template <typename ImportTablesInProgressT = Aws::Vector<Aws::String>>
144 CancelResizeResult& WithImportTablesInProgress(ImportTablesInProgressT&& value) {
145 SetImportTablesInProgress(std::forward<ImportTablesInProgressT>(value));
146 return *this;
147 }
148 template <typename ImportTablesInProgressT = Aws::String>
149 CancelResizeResult& AddImportTablesInProgress(ImportTablesInProgressT&& value) {
150 m_importTablesInProgressHasBeenSet = true;
151 m_importTablesInProgress.emplace_back(std::forward<ImportTablesInProgressT>(value));
152 return *this;
153 }
155
157
161 inline const Aws::Vector<Aws::String>& GetImportTablesNotStarted() const { return m_importTablesNotStarted; }
162 template <typename ImportTablesNotStartedT = Aws::Vector<Aws::String>>
163 void SetImportTablesNotStarted(ImportTablesNotStartedT&& value) {
164 m_importTablesNotStartedHasBeenSet = true;
165 m_importTablesNotStarted = std::forward<ImportTablesNotStartedT>(value);
166 }
167 template <typename ImportTablesNotStartedT = Aws::Vector<Aws::String>>
168 CancelResizeResult& WithImportTablesNotStarted(ImportTablesNotStartedT&& value) {
169 SetImportTablesNotStarted(std::forward<ImportTablesNotStartedT>(value));
170 return *this;
171 }
172 template <typename ImportTablesNotStartedT = Aws::String>
173 CancelResizeResult& AddImportTablesNotStarted(ImportTablesNotStartedT&& value) {
174 m_importTablesNotStartedHasBeenSet = true;
175 m_importTablesNotStarted.emplace_back(std::forward<ImportTablesNotStartedT>(value));
176 return *this;
177 }
179
181
186 inline double GetAvgResizeRateInMegaBytesPerSecond() const { return m_avgResizeRateInMegaBytesPerSecond; }
187 inline void SetAvgResizeRateInMegaBytesPerSecond(double value) {
188 m_avgResizeRateInMegaBytesPerSecondHasBeenSet = true;
189 m_avgResizeRateInMegaBytesPerSecond = value;
190 }
193 return *this;
194 }
196
198
202 inline long long GetTotalResizeDataInMegaBytes() const { return m_totalResizeDataInMegaBytes; }
203 inline void SetTotalResizeDataInMegaBytes(long long value) {
204 m_totalResizeDataInMegaBytesHasBeenSet = true;
205 m_totalResizeDataInMegaBytes = value;
206 }
209 return *this;
210 }
212
214
221 inline long long GetProgressInMegaBytes() const { return m_progressInMegaBytes; }
222 inline void SetProgressInMegaBytes(long long value) {
223 m_progressInMegaBytesHasBeenSet = true;
224 m_progressInMegaBytes = value;
225 }
228 return *this;
229 }
231
233
238 inline long long GetElapsedTimeInSeconds() const { return m_elapsedTimeInSeconds; }
239 inline void SetElapsedTimeInSeconds(long long value) {
240 m_elapsedTimeInSecondsHasBeenSet = true;
241 m_elapsedTimeInSeconds = value;
242 }
245 return *this;
246 }
248
250
256 inline long long GetEstimatedTimeToCompletionInSeconds() const { return m_estimatedTimeToCompletionInSeconds; }
257 inline void SetEstimatedTimeToCompletionInSeconds(long long value) {
258 m_estimatedTimeToCompletionInSecondsHasBeenSet = true;
259 m_estimatedTimeToCompletionInSeconds = value;
260 }
263 return *this;
264 }
266
268
273 inline const Aws::String& GetResizeType() const { return m_resizeType; }
274 template <typename ResizeTypeT = Aws::String>
275 void SetResizeType(ResizeTypeT&& value) {
276 m_resizeTypeHasBeenSet = true;
277 m_resizeType = std::forward<ResizeTypeT>(value);
278 }
279 template <typename ResizeTypeT = Aws::String>
280 CancelResizeResult& WithResizeType(ResizeTypeT&& value) {
281 SetResizeType(std::forward<ResizeTypeT>(value));
282 return *this;
283 }
285
287
290 inline const Aws::String& GetMessage() const { return m_message; }
291 template <typename MessageT = Aws::String>
292 void SetMessage(MessageT&& value) {
293 m_messageHasBeenSet = true;
294 m_message = std::forward<MessageT>(value);
295 }
296 template <typename MessageT = Aws::String>
297 CancelResizeResult& WithMessage(MessageT&& value) {
298 SetMessage(std::forward<MessageT>(value));
299 return *this;
300 }
302
304
308 inline const Aws::String& GetTargetEncryptionType() const { return m_targetEncryptionType; }
309 template <typename TargetEncryptionTypeT = Aws::String>
310 void SetTargetEncryptionType(TargetEncryptionTypeT&& value) {
311 m_targetEncryptionTypeHasBeenSet = true;
312 m_targetEncryptionType = std::forward<TargetEncryptionTypeT>(value);
313 }
314 template <typename TargetEncryptionTypeT = Aws::String>
315 CancelResizeResult& WithTargetEncryptionType(TargetEncryptionTypeT&& value) {
316 SetTargetEncryptionType(std::forward<TargetEncryptionTypeT>(value));
317 return *this;
318 }
320
322
325 inline double GetDataTransferProgressPercent() const { return m_dataTransferProgressPercent; }
326 inline void SetDataTransferProgressPercent(double value) {
327 m_dataTransferProgressPercentHasBeenSet = true;
328 m_dataTransferProgressPercent = value;
329 }
332 return *this;
333 }
335
337
338 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
339 template <typename ResponseMetadataT = ResponseMetadata>
340 void SetResponseMetadata(ResponseMetadataT&& value) {
341 m_responseMetadataHasBeenSet = true;
342 m_responseMetadata = std::forward<ResponseMetadataT>(value);
343 }
344 template <typename ResponseMetadataT = ResponseMetadata>
345 CancelResizeResult& WithResponseMetadata(ResponseMetadataT&& value) {
346 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
347 return *this;
348 }
350 private:
351 Aws::String m_targetNodeType;
352
353 int m_targetNumberOfNodes{0};
354
355 Aws::String m_targetClusterType;
356
357 Aws::String m_status;
358
359 Aws::Vector<Aws::String> m_importTablesCompleted;
360
361 Aws::Vector<Aws::String> m_importTablesInProgress;
362
363 Aws::Vector<Aws::String> m_importTablesNotStarted;
364
365 double m_avgResizeRateInMegaBytesPerSecond{0.0};
366
367 long long m_totalResizeDataInMegaBytes{0};
368
369 long long m_progressInMegaBytes{0};
370
371 long long m_elapsedTimeInSeconds{0};
372
373 long long m_estimatedTimeToCompletionInSeconds{0};
374
375 Aws::String m_resizeType;
376
377 Aws::String m_message;
378
379 Aws::String m_targetEncryptionType;
380
381 double m_dataTransferProgressPercent{0.0};
382
383 ResponseMetadata m_responseMetadata;
384 bool m_targetNodeTypeHasBeenSet = false;
385 bool m_targetNumberOfNodesHasBeenSet = false;
386 bool m_targetClusterTypeHasBeenSet = false;
387 bool m_statusHasBeenSet = false;
388 bool m_importTablesCompletedHasBeenSet = false;
389 bool m_importTablesInProgressHasBeenSet = false;
390 bool m_importTablesNotStartedHasBeenSet = false;
391 bool m_avgResizeRateInMegaBytesPerSecondHasBeenSet = false;
392 bool m_totalResizeDataInMegaBytesHasBeenSet = false;
393 bool m_progressInMegaBytesHasBeenSet = false;
394 bool m_elapsedTimeInSecondsHasBeenSet = false;
395 bool m_estimatedTimeToCompletionInSecondsHasBeenSet = false;
396 bool m_resizeTypeHasBeenSet = false;
397 bool m_messageHasBeenSet = false;
398 bool m_targetEncryptionTypeHasBeenSet = false;
399 bool m_dataTransferProgressPercentHasBeenSet = false;
400 bool m_responseMetadataHasBeenSet = false;
401};
402
403} // namespace Model
404} // namespace Redshift
405} // 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)
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