AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CancelResizeResult.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/redshift/model/ResponseMetadata.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace Redshift
26{
27namespace Model
28{
36 {
37 public:
38 AWS_REDSHIFT_API CancelResizeResult() = default;
41
42
44
48 inline const Aws::String& GetTargetNodeType() const { return m_targetNodeType; }
49 template<typename TargetNodeTypeT = Aws::String>
50 void SetTargetNodeType(TargetNodeTypeT&& value) { m_targetNodeTypeHasBeenSet = true; m_targetNodeType = std::forward<TargetNodeTypeT>(value); }
51 template<typename TargetNodeTypeT = Aws::String>
52 CancelResizeResult& WithTargetNodeType(TargetNodeTypeT&& value) { SetTargetNodeType(std::forward<TargetNodeTypeT>(value)); return *this;}
54
56
60 inline int GetTargetNumberOfNodes() const { return m_targetNumberOfNodes; }
61 inline void SetTargetNumberOfNodes(int value) { m_targetNumberOfNodesHasBeenSet = true; m_targetNumberOfNodes = value; }
62 inline CancelResizeResult& WithTargetNumberOfNodes(int value) { SetTargetNumberOfNodes(value); return *this;}
64
66
70 inline const Aws::String& GetTargetClusterType() const { return m_targetClusterType; }
71 template<typename TargetClusterTypeT = Aws::String>
72 void SetTargetClusterType(TargetClusterTypeT&& value) { m_targetClusterTypeHasBeenSet = true; m_targetClusterType = std::forward<TargetClusterTypeT>(value); }
73 template<typename TargetClusterTypeT = Aws::String>
74 CancelResizeResult& WithTargetClusterType(TargetClusterTypeT&& value) { SetTargetClusterType(std::forward<TargetClusterTypeT>(value)); return *this;}
76
78
83 inline const Aws::String& GetStatus() const { return m_status; }
84 template<typename StatusT = Aws::String>
85 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
86 template<typename StatusT = Aws::String>
87 CancelResizeResult& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
89
91
95 inline const Aws::Vector<Aws::String>& GetImportTablesCompleted() const { return m_importTablesCompleted; }
96 template<typename ImportTablesCompletedT = Aws::Vector<Aws::String>>
97 void SetImportTablesCompleted(ImportTablesCompletedT&& value) { m_importTablesCompletedHasBeenSet = true; m_importTablesCompleted = std::forward<ImportTablesCompletedT>(value); }
98 template<typename ImportTablesCompletedT = Aws::Vector<Aws::String>>
99 CancelResizeResult& WithImportTablesCompleted(ImportTablesCompletedT&& value) { SetImportTablesCompleted(std::forward<ImportTablesCompletedT>(value)); return *this;}
100 template<typename ImportTablesCompletedT = Aws::String>
101 CancelResizeResult& AddImportTablesCompleted(ImportTablesCompletedT&& value) { m_importTablesCompletedHasBeenSet = true; m_importTablesCompleted.emplace_back(std::forward<ImportTablesCompletedT>(value)); return *this; }
103
105
109 inline const Aws::Vector<Aws::String>& GetImportTablesInProgress() const { return m_importTablesInProgress; }
110 template<typename ImportTablesInProgressT = Aws::Vector<Aws::String>>
111 void SetImportTablesInProgress(ImportTablesInProgressT&& value) { m_importTablesInProgressHasBeenSet = true; m_importTablesInProgress = std::forward<ImportTablesInProgressT>(value); }
112 template<typename ImportTablesInProgressT = Aws::Vector<Aws::String>>
113 CancelResizeResult& WithImportTablesInProgress(ImportTablesInProgressT&& value) { SetImportTablesInProgress(std::forward<ImportTablesInProgressT>(value)); return *this;}
114 template<typename ImportTablesInProgressT = Aws::String>
115 CancelResizeResult& AddImportTablesInProgress(ImportTablesInProgressT&& value) { m_importTablesInProgressHasBeenSet = true; m_importTablesInProgress.emplace_back(std::forward<ImportTablesInProgressT>(value)); return *this; }
117
119
123 inline const Aws::Vector<Aws::String>& GetImportTablesNotStarted() const { return m_importTablesNotStarted; }
124 template<typename ImportTablesNotStartedT = Aws::Vector<Aws::String>>
125 void SetImportTablesNotStarted(ImportTablesNotStartedT&& value) { m_importTablesNotStartedHasBeenSet = true; m_importTablesNotStarted = std::forward<ImportTablesNotStartedT>(value); }
126 template<typename ImportTablesNotStartedT = Aws::Vector<Aws::String>>
127 CancelResizeResult& WithImportTablesNotStarted(ImportTablesNotStartedT&& value) { SetImportTablesNotStarted(std::forward<ImportTablesNotStartedT>(value)); return *this;}
128 template<typename ImportTablesNotStartedT = Aws::String>
129 CancelResizeResult& AddImportTablesNotStarted(ImportTablesNotStartedT&& value) { m_importTablesNotStartedHasBeenSet = true; m_importTablesNotStarted.emplace_back(std::forward<ImportTablesNotStartedT>(value)); return *this; }
131
133
138 inline double GetAvgResizeRateInMegaBytesPerSecond() const { return m_avgResizeRateInMegaBytesPerSecond; }
139 inline void SetAvgResizeRateInMegaBytesPerSecond(double value) { m_avgResizeRateInMegaBytesPerSecondHasBeenSet = true; m_avgResizeRateInMegaBytesPerSecond = value; }
142
144
148 inline long long GetTotalResizeDataInMegaBytes() const { return m_totalResizeDataInMegaBytes; }
149 inline void SetTotalResizeDataInMegaBytes(long long value) { m_totalResizeDataInMegaBytesHasBeenSet = true; m_totalResizeDataInMegaBytes = value; }
152
154
161 inline long long GetProgressInMegaBytes() const { return m_progressInMegaBytes; }
162 inline void SetProgressInMegaBytes(long long value) { m_progressInMegaBytesHasBeenSet = true; m_progressInMegaBytes = value; }
163 inline CancelResizeResult& WithProgressInMegaBytes(long long value) { SetProgressInMegaBytes(value); return *this;}
165
167
172 inline long long GetElapsedTimeInSeconds() const { return m_elapsedTimeInSeconds; }
173 inline void SetElapsedTimeInSeconds(long long value) { m_elapsedTimeInSecondsHasBeenSet = true; m_elapsedTimeInSeconds = value; }
174 inline CancelResizeResult& WithElapsedTimeInSeconds(long long value) { SetElapsedTimeInSeconds(value); return *this;}
176
178
184 inline long long GetEstimatedTimeToCompletionInSeconds() const { return m_estimatedTimeToCompletionInSeconds; }
185 inline void SetEstimatedTimeToCompletionInSeconds(long long value) { m_estimatedTimeToCompletionInSecondsHasBeenSet = true; m_estimatedTimeToCompletionInSeconds = value; }
188
190
195 inline const Aws::String& GetResizeType() const { return m_resizeType; }
196 template<typename ResizeTypeT = Aws::String>
197 void SetResizeType(ResizeTypeT&& value) { m_resizeTypeHasBeenSet = true; m_resizeType = std::forward<ResizeTypeT>(value); }
198 template<typename ResizeTypeT = Aws::String>
199 CancelResizeResult& WithResizeType(ResizeTypeT&& value) { SetResizeType(std::forward<ResizeTypeT>(value)); return *this;}
201
203
206 inline const Aws::String& GetMessage() const { return m_message; }
207 template<typename MessageT = Aws::String>
208 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
209 template<typename MessageT = Aws::String>
210 CancelResizeResult& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
212
214
218 inline const Aws::String& GetTargetEncryptionType() const { return m_targetEncryptionType; }
219 template<typename TargetEncryptionTypeT = Aws::String>
220 void SetTargetEncryptionType(TargetEncryptionTypeT&& value) { m_targetEncryptionTypeHasBeenSet = true; m_targetEncryptionType = std::forward<TargetEncryptionTypeT>(value); }
221 template<typename TargetEncryptionTypeT = Aws::String>
222 CancelResizeResult& WithTargetEncryptionType(TargetEncryptionTypeT&& value) { SetTargetEncryptionType(std::forward<TargetEncryptionTypeT>(value)); return *this;}
224
226
229 inline double GetDataTransferProgressPercent() const { return m_dataTransferProgressPercent; }
230 inline void SetDataTransferProgressPercent(double value) { m_dataTransferProgressPercentHasBeenSet = true; m_dataTransferProgressPercent = value; }
233
235
236 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
237 template<typename ResponseMetadataT = ResponseMetadata>
238 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
239 template<typename ResponseMetadataT = ResponseMetadata>
240 CancelResizeResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
242 private:
243
244 Aws::String m_targetNodeType;
245 bool m_targetNodeTypeHasBeenSet = false;
246
247 int m_targetNumberOfNodes{0};
248 bool m_targetNumberOfNodesHasBeenSet = false;
249
250 Aws::String m_targetClusterType;
251 bool m_targetClusterTypeHasBeenSet = false;
252
253 Aws::String m_status;
254 bool m_statusHasBeenSet = false;
255
256 Aws::Vector<Aws::String> m_importTablesCompleted;
257 bool m_importTablesCompletedHasBeenSet = false;
258
259 Aws::Vector<Aws::String> m_importTablesInProgress;
260 bool m_importTablesInProgressHasBeenSet = false;
261
262 Aws::Vector<Aws::String> m_importTablesNotStarted;
263 bool m_importTablesNotStartedHasBeenSet = false;
264
265 double m_avgResizeRateInMegaBytesPerSecond{0.0};
266 bool m_avgResizeRateInMegaBytesPerSecondHasBeenSet = false;
267
268 long long m_totalResizeDataInMegaBytes{0};
269 bool m_totalResizeDataInMegaBytesHasBeenSet = false;
270
271 long long m_progressInMegaBytes{0};
272 bool m_progressInMegaBytesHasBeenSet = false;
273
274 long long m_elapsedTimeInSeconds{0};
275 bool m_elapsedTimeInSecondsHasBeenSet = false;
276
277 long long m_estimatedTimeToCompletionInSeconds{0};
278 bool m_estimatedTimeToCompletionInSecondsHasBeenSet = false;
279
280 Aws::String m_resizeType;
281 bool m_resizeTypeHasBeenSet = false;
282
283 Aws::String m_message;
284 bool m_messageHasBeenSet = false;
285
286 Aws::String m_targetEncryptionType;
287 bool m_targetEncryptionTypeHasBeenSet = false;
288
289 double m_dataTransferProgressPercent{0.0};
290 bool m_dataTransferProgressPercentHasBeenSet = false;
291
292 ResponseMetadata m_responseMetadata;
293 bool m_responseMetadataHasBeenSet = false;
294 };
295
296} // namespace Model
297} // namespace Redshift
298} // 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