AWS SDK for C++

AWS SDK for C++ Version 1.11.817

Loading...
Searching...
No Matches
DescribeReplicatorResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/kafka/Kafka_EXPORTS.h>
13#include <aws/kafka/model/KafkaClusterDescription.h>
14#include <aws/kafka/model/LogDelivery.h>
15#include <aws/kafka/model/ReplicationInfoDescription.h>
16#include <aws/kafka/model/ReplicationStateInfo.h>
17#include <aws/kafka/model/ReplicatorState.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace Kafka {
31namespace Model {
33 public:
34 AWS_KAFKA_API DescribeReplicatorResult() = default;
37
39
42 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
43 template <typename CreationTimeT = Aws::Utils::DateTime>
44 void SetCreationTime(CreationTimeT&& value) {
45 m_creationTimeHasBeenSet = true;
46 m_creationTime = std::forward<CreationTimeT>(value);
47 }
48 template <typename CreationTimeT = Aws::Utils::DateTime>
50 SetCreationTime(std::forward<CreationTimeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
60 template <typename CurrentVersionT = Aws::String>
61 void SetCurrentVersion(CurrentVersionT&& value) {
62 m_currentVersionHasBeenSet = true;
63 m_currentVersion = std::forward<CurrentVersionT>(value);
64 }
65 template <typename CurrentVersionT = Aws::String>
66 DescribeReplicatorResult& WithCurrentVersion(CurrentVersionT&& value) {
67 SetCurrentVersion(std::forward<CurrentVersionT>(value));
68 return *this;
69 }
71
73
76 inline bool GetIsReplicatorReference() const { return m_isReplicatorReference; }
77 inline void SetIsReplicatorReference(bool value) {
78 m_isReplicatorReferenceHasBeenSet = true;
79 m_isReplicatorReference = value;
80 }
83 return *this;
84 }
86
88
91 inline const Aws::Vector<KafkaClusterDescription>& GetKafkaClusters() const { return m_kafkaClusters; }
92 template <typename KafkaClustersT = Aws::Vector<KafkaClusterDescription>>
93 void SetKafkaClusters(KafkaClustersT&& value) {
94 m_kafkaClustersHasBeenSet = true;
95 m_kafkaClusters = std::forward<KafkaClustersT>(value);
96 }
97 template <typename KafkaClustersT = Aws::Vector<KafkaClusterDescription>>
99 SetKafkaClusters(std::forward<KafkaClustersT>(value));
100 return *this;
101 }
102 template <typename KafkaClustersT = KafkaClusterDescription>
104 m_kafkaClustersHasBeenSet = true;
105 m_kafkaClusters.emplace_back(std::forward<KafkaClustersT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::Vector<ReplicationInfoDescription>& GetReplicationInfoList() const { return m_replicationInfoList; }
116 template <typename ReplicationInfoListT = Aws::Vector<ReplicationInfoDescription>>
117 void SetReplicationInfoList(ReplicationInfoListT&& value) {
118 m_replicationInfoListHasBeenSet = true;
119 m_replicationInfoList = std::forward<ReplicationInfoListT>(value);
120 }
121 template <typename ReplicationInfoListT = Aws::Vector<ReplicationInfoDescription>>
122 DescribeReplicatorResult& WithReplicationInfoList(ReplicationInfoListT&& value) {
123 SetReplicationInfoList(std::forward<ReplicationInfoListT>(value));
124 return *this;
125 }
126 template <typename ReplicationInfoListT = ReplicationInfoDescription>
127 DescribeReplicatorResult& AddReplicationInfoList(ReplicationInfoListT&& value) {
128 m_replicationInfoListHasBeenSet = true;
129 m_replicationInfoList.emplace_back(std::forward<ReplicationInfoListT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetReplicatorArn() const { return m_replicatorArn; }
139 template <typename ReplicatorArnT = Aws::String>
140 void SetReplicatorArn(ReplicatorArnT&& value) {
141 m_replicatorArnHasBeenSet = true;
142 m_replicatorArn = std::forward<ReplicatorArnT>(value);
143 }
144 template <typename ReplicatorArnT = Aws::String>
146 SetReplicatorArn(std::forward<ReplicatorArnT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetReplicatorDescription() const { return m_replicatorDescription; }
156 template <typename ReplicatorDescriptionT = Aws::String>
157 void SetReplicatorDescription(ReplicatorDescriptionT&& value) {
158 m_replicatorDescriptionHasBeenSet = true;
159 m_replicatorDescription = std::forward<ReplicatorDescriptionT>(value);
160 }
161 template <typename ReplicatorDescriptionT = Aws::String>
162 DescribeReplicatorResult& WithReplicatorDescription(ReplicatorDescriptionT&& value) {
163 SetReplicatorDescription(std::forward<ReplicatorDescriptionT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetReplicatorName() const { return m_replicatorName; }
173 template <typename ReplicatorNameT = Aws::String>
174 void SetReplicatorName(ReplicatorNameT&& value) {
175 m_replicatorNameHasBeenSet = true;
176 m_replicatorName = std::forward<ReplicatorNameT>(value);
177 }
178 template <typename ReplicatorNameT = Aws::String>
180 SetReplicatorName(std::forward<ReplicatorNameT>(value));
181 return *this;
182 }
184
186
190 inline const Aws::String& GetReplicatorResourceArn() const { return m_replicatorResourceArn; }
191 template <typename ReplicatorResourceArnT = Aws::String>
192 void SetReplicatorResourceArn(ReplicatorResourceArnT&& value) {
193 m_replicatorResourceArnHasBeenSet = true;
194 m_replicatorResourceArn = std::forward<ReplicatorResourceArnT>(value);
195 }
196 template <typename ReplicatorResourceArnT = Aws::String>
197 DescribeReplicatorResult& WithReplicatorResourceArn(ReplicatorResourceArnT&& value) {
198 SetReplicatorResourceArn(std::forward<ReplicatorResourceArnT>(value));
199 return *this;
200 }
202
204
207 inline ReplicatorState GetReplicatorState() const { return m_replicatorState; }
209 m_replicatorStateHasBeenSet = true;
210 m_replicatorState = value;
211 }
213 SetReplicatorState(value);
214 return *this;
215 }
217
219
223 inline const Aws::String& GetServiceExecutionRoleArn() const { return m_serviceExecutionRoleArn; }
224 template <typename ServiceExecutionRoleArnT = Aws::String>
225 void SetServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) {
226 m_serviceExecutionRoleArnHasBeenSet = true;
227 m_serviceExecutionRoleArn = std::forward<ServiceExecutionRoleArnT>(value);
228 }
229 template <typename ServiceExecutionRoleArnT = Aws::String>
230 DescribeReplicatorResult& WithServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) {
231 SetServiceExecutionRoleArn(std::forward<ServiceExecutionRoleArnT>(value));
232 return *this;
233 }
235
237
240 inline const ReplicationStateInfo& GetStateInfo() const { return m_stateInfo; }
241 template <typename StateInfoT = ReplicationStateInfo>
242 void SetStateInfo(StateInfoT&& value) {
243 m_stateInfoHasBeenSet = true;
244 m_stateInfo = std::forward<StateInfoT>(value);
245 }
246 template <typename StateInfoT = ReplicationStateInfo>
248 SetStateInfo(std::forward<StateInfoT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
258 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
259 void SetTags(TagsT&& value) {
260 m_tagsHasBeenSet = true;
261 m_tags = std::forward<TagsT>(value);
262 }
263 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
265 SetTags(std::forward<TagsT>(value));
266 return *this;
267 }
268 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
269 DescribeReplicatorResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
270 m_tagsHasBeenSet = true;
271 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
272 return *this;
273 }
275
277
280 inline const LogDelivery& GetLogDelivery() const { return m_logDelivery; }
281 template <typename LogDeliveryT = LogDelivery>
282 void SetLogDelivery(LogDeliveryT&& value) {
283 m_logDeliveryHasBeenSet = true;
284 m_logDelivery = std::forward<LogDeliveryT>(value);
285 }
286 template <typename LogDeliveryT = LogDelivery>
288 SetLogDelivery(std::forward<LogDeliveryT>(value));
289 return *this;
290 }
292
294
295 inline const Aws::String& GetRequestId() const { return m_requestId; }
296 template <typename RequestIdT = Aws::String>
297 void SetRequestId(RequestIdT&& value) {
298 m_requestIdHasBeenSet = true;
299 m_requestId = std::forward<RequestIdT>(value);
300 }
301 template <typename RequestIdT = Aws::String>
303 SetRequestId(std::forward<RequestIdT>(value));
304 return *this;
305 }
307 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
308
309 private:
310 Aws::Utils::DateTime m_creationTime{};
311
312 Aws::String m_currentVersion;
313
314 bool m_isReplicatorReference{false};
315
317
318 Aws::Vector<ReplicationInfoDescription> m_replicationInfoList;
319
320 Aws::String m_replicatorArn;
321
322 Aws::String m_replicatorDescription;
323
324 Aws::String m_replicatorName;
325
326 Aws::String m_replicatorResourceArn;
327
328 ReplicatorState m_replicatorState{ReplicatorState::NOT_SET};
329
330 Aws::String m_serviceExecutionRoleArn;
331
332 ReplicationStateInfo m_stateInfo;
333
335
336 LogDelivery m_logDelivery;
337
338 Aws::String m_requestId;
339 Aws::Http::HttpResponseCode m_HttpResponseCode;
340 bool m_creationTimeHasBeenSet = false;
341 bool m_currentVersionHasBeenSet = false;
342 bool m_isReplicatorReferenceHasBeenSet = false;
343 bool m_kafkaClustersHasBeenSet = false;
344 bool m_replicationInfoListHasBeenSet = false;
345 bool m_replicatorArnHasBeenSet = false;
346 bool m_replicatorDescriptionHasBeenSet = false;
347 bool m_replicatorNameHasBeenSet = false;
348 bool m_replicatorResourceArnHasBeenSet = false;
349 bool m_replicatorStateHasBeenSet = false;
350 bool m_serviceExecutionRoleArnHasBeenSet = false;
351 bool m_stateInfoHasBeenSet = false;
352 bool m_tagsHasBeenSet = false;
353 bool m_logDeliveryHasBeenSet = false;
354 bool m_requestIdHasBeenSet = false;
355};
356
357} // namespace Model
358} // namespace Kafka
359} // namespace Aws
DescribeReplicatorResult & AddReplicationInfoList(ReplicationInfoListT &&value)
DescribeReplicatorResult & WithIsReplicatorReference(bool value)
AWS_KAFKA_API DescribeReplicatorResult()=default
AWS_KAFKA_API DescribeReplicatorResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeReplicatorResult & WithServiceExecutionRoleArn(ServiceExecutionRoleArnT &&value)
DescribeReplicatorResult & WithRequestId(RequestIdT &&value)
AWS_KAFKA_API DescribeReplicatorResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeReplicatorResult & WithReplicatorName(ReplicatorNameT &&value)
void SetServiceExecutionRoleArn(ServiceExecutionRoleArnT &&value)
DescribeReplicatorResult & WithStateInfo(StateInfoT &&value)
void SetReplicatorResourceArn(ReplicatorResourceArnT &&value)
DescribeReplicatorResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
DescribeReplicatorResult & WithLogDelivery(LogDeliveryT &&value)
const Aws::Vector< ReplicationInfoDescription > & GetReplicationInfoList() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeReplicatorResult & WithKafkaClusters(KafkaClustersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DescribeReplicatorResult & WithReplicatorResourceArn(ReplicatorResourceArnT &&value)
DescribeReplicatorResult & WithTags(TagsT &&value)
DescribeReplicatorResult & WithReplicatorState(ReplicatorState value)
DescribeReplicatorResult & WithCreationTime(CreationTimeT &&value)
DescribeReplicatorResult & WithReplicatorArn(ReplicatorArnT &&value)
void SetReplicationInfoList(ReplicationInfoListT &&value)
DescribeReplicatorResult & WithReplicationInfoList(ReplicationInfoListT &&value)
const ReplicationStateInfo & GetStateInfo() const
DescribeReplicatorResult & AddKafkaClusters(KafkaClustersT &&value)
const Aws::Vector< KafkaClusterDescription > & GetKafkaClusters() const
DescribeReplicatorResult & WithReplicatorDescription(ReplicatorDescriptionT &&value)
DescribeReplicatorResult & WithCurrentVersion(CurrentVersionT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetReplicatorDescription(ReplicatorDescriptionT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue