AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/ReplicationInfoDescription.h>
15#include <aws/kafka/model/ReplicationStateInfo.h>
16#include <aws/kafka/model/ReplicatorState.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace Kafka {
30namespace Model {
32 public:
33 AWS_KAFKA_API DescribeReplicatorResult() = default;
36
38
41 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
42 template <typename CreationTimeT = Aws::Utils::DateTime>
43 void SetCreationTime(CreationTimeT&& value) {
44 m_creationTimeHasBeenSet = true;
45 m_creationTime = std::forward<CreationTimeT>(value);
46 }
47 template <typename CreationTimeT = Aws::Utils::DateTime>
49 SetCreationTime(std::forward<CreationTimeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
59 template <typename CurrentVersionT = Aws::String>
60 void SetCurrentVersion(CurrentVersionT&& value) {
61 m_currentVersionHasBeenSet = true;
62 m_currentVersion = std::forward<CurrentVersionT>(value);
63 }
64 template <typename CurrentVersionT = Aws::String>
65 DescribeReplicatorResult& WithCurrentVersion(CurrentVersionT&& value) {
66 SetCurrentVersion(std::forward<CurrentVersionT>(value));
67 return *this;
68 }
70
72
75 inline bool GetIsReplicatorReference() const { return m_isReplicatorReference; }
76 inline void SetIsReplicatorReference(bool value) {
77 m_isReplicatorReferenceHasBeenSet = true;
78 m_isReplicatorReference = value;
79 }
82 return *this;
83 }
85
87
90 inline const Aws::Vector<KafkaClusterDescription>& GetKafkaClusters() const { return m_kafkaClusters; }
91 template <typename KafkaClustersT = Aws::Vector<KafkaClusterDescription>>
92 void SetKafkaClusters(KafkaClustersT&& value) {
93 m_kafkaClustersHasBeenSet = true;
94 m_kafkaClusters = std::forward<KafkaClustersT>(value);
95 }
96 template <typename KafkaClustersT = Aws::Vector<KafkaClusterDescription>>
98 SetKafkaClusters(std::forward<KafkaClustersT>(value));
99 return *this;
100 }
101 template <typename KafkaClustersT = KafkaClusterDescription>
103 m_kafkaClustersHasBeenSet = true;
104 m_kafkaClusters.emplace_back(std::forward<KafkaClustersT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Vector<ReplicationInfoDescription>& GetReplicationInfoList() const { return m_replicationInfoList; }
115 template <typename ReplicationInfoListT = Aws::Vector<ReplicationInfoDescription>>
116 void SetReplicationInfoList(ReplicationInfoListT&& value) {
117 m_replicationInfoListHasBeenSet = true;
118 m_replicationInfoList = std::forward<ReplicationInfoListT>(value);
119 }
120 template <typename ReplicationInfoListT = Aws::Vector<ReplicationInfoDescription>>
121 DescribeReplicatorResult& WithReplicationInfoList(ReplicationInfoListT&& value) {
122 SetReplicationInfoList(std::forward<ReplicationInfoListT>(value));
123 return *this;
124 }
125 template <typename ReplicationInfoListT = ReplicationInfoDescription>
126 DescribeReplicatorResult& AddReplicationInfoList(ReplicationInfoListT&& value) {
127 m_replicationInfoListHasBeenSet = true;
128 m_replicationInfoList.emplace_back(std::forward<ReplicationInfoListT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetReplicatorArn() const { return m_replicatorArn; }
138 template <typename ReplicatorArnT = Aws::String>
139 void SetReplicatorArn(ReplicatorArnT&& value) {
140 m_replicatorArnHasBeenSet = true;
141 m_replicatorArn = std::forward<ReplicatorArnT>(value);
142 }
143 template <typename ReplicatorArnT = Aws::String>
145 SetReplicatorArn(std::forward<ReplicatorArnT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetReplicatorDescription() const { return m_replicatorDescription; }
155 template <typename ReplicatorDescriptionT = Aws::String>
156 void SetReplicatorDescription(ReplicatorDescriptionT&& value) {
157 m_replicatorDescriptionHasBeenSet = true;
158 m_replicatorDescription = std::forward<ReplicatorDescriptionT>(value);
159 }
160 template <typename ReplicatorDescriptionT = Aws::String>
161 DescribeReplicatorResult& WithReplicatorDescription(ReplicatorDescriptionT&& value) {
162 SetReplicatorDescription(std::forward<ReplicatorDescriptionT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::String& GetReplicatorName() const { return m_replicatorName; }
172 template <typename ReplicatorNameT = Aws::String>
173 void SetReplicatorName(ReplicatorNameT&& value) {
174 m_replicatorNameHasBeenSet = true;
175 m_replicatorName = std::forward<ReplicatorNameT>(value);
176 }
177 template <typename ReplicatorNameT = Aws::String>
179 SetReplicatorName(std::forward<ReplicatorNameT>(value));
180 return *this;
181 }
183
185
189 inline const Aws::String& GetReplicatorResourceArn() const { return m_replicatorResourceArn; }
190 template <typename ReplicatorResourceArnT = Aws::String>
191 void SetReplicatorResourceArn(ReplicatorResourceArnT&& value) {
192 m_replicatorResourceArnHasBeenSet = true;
193 m_replicatorResourceArn = std::forward<ReplicatorResourceArnT>(value);
194 }
195 template <typename ReplicatorResourceArnT = Aws::String>
196 DescribeReplicatorResult& WithReplicatorResourceArn(ReplicatorResourceArnT&& value) {
197 SetReplicatorResourceArn(std::forward<ReplicatorResourceArnT>(value));
198 return *this;
199 }
201
203
206 inline ReplicatorState GetReplicatorState() const { return m_replicatorState; }
208 m_replicatorStateHasBeenSet = true;
209 m_replicatorState = value;
210 }
212 SetReplicatorState(value);
213 return *this;
214 }
216
218
222 inline const Aws::String& GetServiceExecutionRoleArn() const { return m_serviceExecutionRoleArn; }
223 template <typename ServiceExecutionRoleArnT = Aws::String>
224 void SetServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) {
225 m_serviceExecutionRoleArnHasBeenSet = true;
226 m_serviceExecutionRoleArn = std::forward<ServiceExecutionRoleArnT>(value);
227 }
228 template <typename ServiceExecutionRoleArnT = Aws::String>
229 DescribeReplicatorResult& WithServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) {
230 SetServiceExecutionRoleArn(std::forward<ServiceExecutionRoleArnT>(value));
231 return *this;
232 }
234
236
239 inline const ReplicationStateInfo& GetStateInfo() const { return m_stateInfo; }
240 template <typename StateInfoT = ReplicationStateInfo>
241 void SetStateInfo(StateInfoT&& value) {
242 m_stateInfoHasBeenSet = true;
243 m_stateInfo = std::forward<StateInfoT>(value);
244 }
245 template <typename StateInfoT = ReplicationStateInfo>
247 SetStateInfo(std::forward<StateInfoT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
257 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
258 void SetTags(TagsT&& value) {
259 m_tagsHasBeenSet = true;
260 m_tags = std::forward<TagsT>(value);
261 }
262 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
264 SetTags(std::forward<TagsT>(value));
265 return *this;
266 }
267 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
268 DescribeReplicatorResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
269 m_tagsHasBeenSet = true;
270 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
271 return *this;
272 }
274
276
277 inline const Aws::String& GetRequestId() const { return m_requestId; }
278 template <typename RequestIdT = Aws::String>
279 void SetRequestId(RequestIdT&& value) {
280 m_requestIdHasBeenSet = true;
281 m_requestId = std::forward<RequestIdT>(value);
282 }
283 template <typename RequestIdT = Aws::String>
285 SetRequestId(std::forward<RequestIdT>(value));
286 return *this;
287 }
289 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
290
291 private:
292 Aws::Utils::DateTime m_creationTime{};
293
294 Aws::String m_currentVersion;
295
296 bool m_isReplicatorReference{false};
297
299
300 Aws::Vector<ReplicationInfoDescription> m_replicationInfoList;
301
302 Aws::String m_replicatorArn;
303
304 Aws::String m_replicatorDescription;
305
306 Aws::String m_replicatorName;
307
308 Aws::String m_replicatorResourceArn;
309
310 ReplicatorState m_replicatorState{ReplicatorState::NOT_SET};
311
312 Aws::String m_serviceExecutionRoleArn;
313
314 ReplicationStateInfo m_stateInfo;
315
317
318 Aws::String m_requestId;
319 Aws::Http::HttpResponseCode m_HttpResponseCode;
320 bool m_creationTimeHasBeenSet = false;
321 bool m_currentVersionHasBeenSet = false;
322 bool m_isReplicatorReferenceHasBeenSet = false;
323 bool m_kafkaClustersHasBeenSet = false;
324 bool m_replicationInfoListHasBeenSet = false;
325 bool m_replicatorArnHasBeenSet = false;
326 bool m_replicatorDescriptionHasBeenSet = false;
327 bool m_replicatorNameHasBeenSet = false;
328 bool m_replicatorResourceArnHasBeenSet = false;
329 bool m_replicatorStateHasBeenSet = false;
330 bool m_serviceExecutionRoleArnHasBeenSet = false;
331 bool m_stateInfoHasBeenSet = false;
332 bool m_tagsHasBeenSet = false;
333 bool m_requestIdHasBeenSet = false;
334};
335
336} // namespace Model
337} // namespace Kafka
338} // 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)
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