AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
DescribeTopicReassignmentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kafka/Kafka_EXPORTS.h>
12#include <aws/kafka/model/ErrorInfo.h>
13#include <aws/kafka/model/TopicReassignmentStatus.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Kafka {
27namespace Model {
35 public:
36 AWS_KAFKA_API DescribeTopicReassignmentResult() = default;
39
41
44 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
45 template <typename ClusterArnT = Aws::String>
46 void SetClusterArn(ClusterArnT&& value) {
47 m_clusterArnHasBeenSet = true;
48 m_clusterArn = std::forward<ClusterArnT>(value);
49 }
50 template <typename ClusterArnT = Aws::String>
52 SetClusterArn(std::forward<ClusterArnT>(value));
53 return *this;
54 }
56
58
61 inline int GetCompletedTopics() const { return m_completedTopics; }
62 inline void SetCompletedTopics(int value) {
63 m_completedTopicsHasBeenSet = true;
64 m_completedTopics = value;
65 }
67 SetCompletedTopics(value);
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
77 template <typename CreationTimeT = Aws::Utils::DateTime>
78 void SetCreationTime(CreationTimeT&& value) {
79 m_creationTimeHasBeenSet = true;
80 m_creationTime = std::forward<CreationTimeT>(value);
81 }
82 template <typename CreationTimeT = Aws::Utils::DateTime>
84 SetCreationTime(std::forward<CreationTimeT>(value));
85 return *this;
86 }
88
90
93 inline const ErrorInfo& GetErrorInfo() const { return m_errorInfo; }
94 template <typename ErrorInfoT = ErrorInfo>
95 void SetErrorInfo(ErrorInfoT&& value) {
96 m_errorInfoHasBeenSet = true;
97 m_errorInfo = std::forward<ErrorInfoT>(value);
98 }
99 template <typename ErrorInfoT = ErrorInfo>
101 SetErrorInfo(std::forward<ErrorInfoT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
111 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
112 void SetLastUpdateTime(LastUpdateTimeT&& value) {
113 m_lastUpdateTimeHasBeenSet = true;
114 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
115 }
116 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
118 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
119 return *this;
120 }
122
124
127 inline int GetMigratedPartitions() const { return m_migratedPartitions; }
128 inline void SetMigratedPartitions(int value) {
129 m_migratedPartitionsHasBeenSet = true;
130 m_migratedPartitions = value;
131 }
134 return *this;
135 }
137
139
142 inline TopicReassignmentStatus GetStatus() const { return m_status; }
144 m_statusHasBeenSet = true;
145 m_status = value;
146 }
148 SetStatus(value);
149 return *this;
150 }
152
154
157 inline const Aws::String& GetTargetInstanceType() const { return m_targetInstanceType; }
158 template <typename TargetInstanceTypeT = Aws::String>
159 void SetTargetInstanceType(TargetInstanceTypeT&& value) {
160 m_targetInstanceTypeHasBeenSet = true;
161 m_targetInstanceType = std::forward<TargetInstanceTypeT>(value);
162 }
163 template <typename TargetInstanceTypeT = Aws::String>
165 SetTargetInstanceType(std::forward<TargetInstanceTypeT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::String& GetTopicReassignmentOperationArn() const { return m_topicReassignmentOperationArn; }
175 template <typename TopicReassignmentOperationArnT = Aws::String>
176 void SetTopicReassignmentOperationArn(TopicReassignmentOperationArnT&& value) {
177 m_topicReassignmentOperationArnHasBeenSet = true;
178 m_topicReassignmentOperationArn = std::forward<TopicReassignmentOperationArnT>(value);
179 }
180 template <typename TopicReassignmentOperationArnT = Aws::String>
182 SetTopicReassignmentOperationArn(std::forward<TopicReassignmentOperationArnT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::Vector<Aws::String>& GetTopicsToExclude() const { return m_topicsToExclude; }
192 template <typename TopicsToExcludeT = Aws::Vector<Aws::String>>
193 void SetTopicsToExclude(TopicsToExcludeT&& value) {
194 m_topicsToExcludeHasBeenSet = true;
195 m_topicsToExclude = std::forward<TopicsToExcludeT>(value);
196 }
197 template <typename TopicsToExcludeT = Aws::Vector<Aws::String>>
199 SetTopicsToExclude(std::forward<TopicsToExcludeT>(value));
200 return *this;
201 }
202 template <typename TopicsToExcludeT = Aws::String>
204 m_topicsToExcludeHasBeenSet = true;
205 m_topicsToExclude.emplace_back(std::forward<TopicsToExcludeT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::Vector<Aws::String>& GetTopicsToInclude() const { return m_topicsToInclude; }
215 template <typename TopicsToIncludeT = Aws::Vector<Aws::String>>
216 void SetTopicsToInclude(TopicsToIncludeT&& value) {
217 m_topicsToIncludeHasBeenSet = true;
218 m_topicsToInclude = std::forward<TopicsToIncludeT>(value);
219 }
220 template <typename TopicsToIncludeT = Aws::Vector<Aws::String>>
222 SetTopicsToInclude(std::forward<TopicsToIncludeT>(value));
223 return *this;
224 }
225 template <typename TopicsToIncludeT = Aws::String>
227 m_topicsToIncludeHasBeenSet = true;
228 m_topicsToInclude.emplace_back(std::forward<TopicsToIncludeT>(value));
229 return *this;
230 }
232
234
237 inline int GetTotalPartitions() const { return m_totalPartitions; }
238 inline void SetTotalPartitions(int value) {
239 m_totalPartitionsHasBeenSet = true;
240 m_totalPartitions = value;
241 }
243 SetTotalPartitions(value);
244 return *this;
245 }
247
249
252 inline int GetTotalTopics() const { return m_totalTopics; }
253 inline void SetTotalTopics(int value) {
254 m_totalTopicsHasBeenSet = true;
255 m_totalTopics = value;
256 }
258 SetTotalTopics(value);
259 return *this;
260 }
262
264
265 inline const Aws::String& GetRequestId() const { return m_requestId; }
266 template <typename RequestIdT = Aws::String>
267 void SetRequestId(RequestIdT&& value) {
268 m_requestIdHasBeenSet = true;
269 m_requestId = std::forward<RequestIdT>(value);
270 }
271 template <typename RequestIdT = Aws::String>
273 SetRequestId(std::forward<RequestIdT>(value));
274 return *this;
275 }
277 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
278
279 private:
280 Aws::String m_clusterArn;
281
282 int m_completedTopics{0};
283
284 Aws::Utils::DateTime m_creationTime{};
285
286 ErrorInfo m_errorInfo;
287
288 Aws::Utils::DateTime m_lastUpdateTime{};
289
290 int m_migratedPartitions{0};
291
293
294 Aws::String m_targetInstanceType;
295
296 Aws::String m_topicReassignmentOperationArn;
297
298 Aws::Vector<Aws::String> m_topicsToExclude;
299
300 Aws::Vector<Aws::String> m_topicsToInclude;
301
302 int m_totalPartitions{0};
303
304 int m_totalTopics{0};
305
306 Aws::String m_requestId;
307 Aws::Http::HttpResponseCode m_HttpResponseCode;
308 bool m_clusterArnHasBeenSet = false;
309 bool m_completedTopicsHasBeenSet = false;
310 bool m_creationTimeHasBeenSet = false;
311 bool m_errorInfoHasBeenSet = false;
312 bool m_lastUpdateTimeHasBeenSet = false;
313 bool m_migratedPartitionsHasBeenSet = false;
314 bool m_statusHasBeenSet = false;
315 bool m_targetInstanceTypeHasBeenSet = false;
316 bool m_topicReassignmentOperationArnHasBeenSet = false;
317 bool m_topicsToExcludeHasBeenSet = false;
318 bool m_topicsToIncludeHasBeenSet = false;
319 bool m_totalPartitionsHasBeenSet = false;
320 bool m_totalTopicsHasBeenSet = false;
321 bool m_requestIdHasBeenSet = false;
322};
323
324} // namespace Model
325} // namespace Kafka
326} // namespace Aws
DescribeTopicReassignmentResult & AddTopicsToExclude(TopicsToExcludeT &&value)
const Aws::Vector< Aws::String > & GetTopicsToInclude() const
void SetTopicReassignmentOperationArn(TopicReassignmentOperationArnT &&value)
DescribeTopicReassignmentResult & WithLastUpdateTime(LastUpdateTimeT &&value)
DescribeTopicReassignmentResult & WithTotalPartitions(int value)
DescribeTopicReassignmentResult & AddTopicsToInclude(TopicsToIncludeT &&value)
DescribeTopicReassignmentResult & WithStatus(TopicReassignmentStatus value)
DescribeTopicReassignmentResult & WithErrorInfo(ErrorInfoT &&value)
DescribeTopicReassignmentResult & WithMigratedPartitions(int value)
AWS_KAFKA_API DescribeTopicReassignmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTopicReassignmentResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Aws::String > & GetTopicsToExclude() const
DescribeTopicReassignmentResult & WithCompletedTopics(int value)
DescribeTopicReassignmentResult & WithClusterArn(ClusterArnT &&value)
DescribeTopicReassignmentResult & WithTotalTopics(int value)
DescribeTopicReassignmentResult & WithTopicsToInclude(TopicsToIncludeT &&value)
DescribeTopicReassignmentResult & WithTopicsToExclude(TopicsToExcludeT &&value)
DescribeTopicReassignmentResult & WithTargetInstanceType(TargetInstanceTypeT &&value)
AWS_KAFKA_API DescribeTopicReassignmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeTopicReassignmentResult & WithCreationTime(CreationTimeT &&value)
DescribeTopicReassignmentResult & WithTopicReassignmentOperationArn(TopicReassignmentOperationArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue