AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeReplicatorResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.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/KafkaClusterDescription.h>
13#include <aws/kafka/model/ReplicationInfoDescription.h>
14#include <aws/kafka/model/ReplicationStateInfo.h>
15#include <aws/kafka/model/ReplicatorState.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace Kafka {
29namespace Model {
31 public:
32 AWS_KAFKA_API DescribeReplicatorResult() = default;
35
37
40 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
41 template <typename CreationTimeT = Aws::Utils::DateTime>
42 void SetCreationTime(CreationTimeT&& value) {
43 m_creationTimeHasBeenSet = true;
44 m_creationTime = std::forward<CreationTimeT>(value);
45 }
46 template <typename CreationTimeT = Aws::Utils::DateTime>
48 SetCreationTime(std::forward<CreationTimeT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
58 template <typename CurrentVersionT = Aws::String>
59 void SetCurrentVersion(CurrentVersionT&& value) {
60 m_currentVersionHasBeenSet = true;
61 m_currentVersion = std::forward<CurrentVersionT>(value);
62 }
63 template <typename CurrentVersionT = Aws::String>
64 DescribeReplicatorResult& WithCurrentVersion(CurrentVersionT&& value) {
65 SetCurrentVersion(std::forward<CurrentVersionT>(value));
66 return *this;
67 }
69
71
74 inline bool GetIsReplicatorReference() const { return m_isReplicatorReference; }
75 inline void SetIsReplicatorReference(bool value) {
76 m_isReplicatorReferenceHasBeenSet = true;
77 m_isReplicatorReference = value;
78 }
81 return *this;
82 }
84
86
89 inline const Aws::Vector<KafkaClusterDescription>& GetKafkaClusters() const { return m_kafkaClusters; }
90 template <typename KafkaClustersT = Aws::Vector<KafkaClusterDescription>>
91 void SetKafkaClusters(KafkaClustersT&& value) {
92 m_kafkaClustersHasBeenSet = true;
93 m_kafkaClusters = std::forward<KafkaClustersT>(value);
94 }
95 template <typename KafkaClustersT = Aws::Vector<KafkaClusterDescription>>
97 SetKafkaClusters(std::forward<KafkaClustersT>(value));
98 return *this;
99 }
100 template <typename KafkaClustersT = KafkaClusterDescription>
102 m_kafkaClustersHasBeenSet = true;
103 m_kafkaClusters.emplace_back(std::forward<KafkaClustersT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::Vector<ReplicationInfoDescription>& GetReplicationInfoList() const { return m_replicationInfoList; }
114 template <typename ReplicationInfoListT = Aws::Vector<ReplicationInfoDescription>>
115 void SetReplicationInfoList(ReplicationInfoListT&& value) {
116 m_replicationInfoListHasBeenSet = true;
117 m_replicationInfoList = std::forward<ReplicationInfoListT>(value);
118 }
119 template <typename ReplicationInfoListT = Aws::Vector<ReplicationInfoDescription>>
120 DescribeReplicatorResult& WithReplicationInfoList(ReplicationInfoListT&& value) {
121 SetReplicationInfoList(std::forward<ReplicationInfoListT>(value));
122 return *this;
123 }
124 template <typename ReplicationInfoListT = ReplicationInfoDescription>
125 DescribeReplicatorResult& AddReplicationInfoList(ReplicationInfoListT&& value) {
126 m_replicationInfoListHasBeenSet = true;
127 m_replicationInfoList.emplace_back(std::forward<ReplicationInfoListT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetReplicatorArn() const { return m_replicatorArn; }
137 template <typename ReplicatorArnT = Aws::String>
138 void SetReplicatorArn(ReplicatorArnT&& value) {
139 m_replicatorArnHasBeenSet = true;
140 m_replicatorArn = std::forward<ReplicatorArnT>(value);
141 }
142 template <typename ReplicatorArnT = Aws::String>
144 SetReplicatorArn(std::forward<ReplicatorArnT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetReplicatorDescription() const { return m_replicatorDescription; }
154 template <typename ReplicatorDescriptionT = Aws::String>
155 void SetReplicatorDescription(ReplicatorDescriptionT&& value) {
156 m_replicatorDescriptionHasBeenSet = true;
157 m_replicatorDescription = std::forward<ReplicatorDescriptionT>(value);
158 }
159 template <typename ReplicatorDescriptionT = Aws::String>
160 DescribeReplicatorResult& WithReplicatorDescription(ReplicatorDescriptionT&& value) {
161 SetReplicatorDescription(std::forward<ReplicatorDescriptionT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetReplicatorName() const { return m_replicatorName; }
171 template <typename ReplicatorNameT = Aws::String>
172 void SetReplicatorName(ReplicatorNameT&& value) {
173 m_replicatorNameHasBeenSet = true;
174 m_replicatorName = std::forward<ReplicatorNameT>(value);
175 }
176 template <typename ReplicatorNameT = Aws::String>
178 SetReplicatorName(std::forward<ReplicatorNameT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::String& GetReplicatorResourceArn() const { return m_replicatorResourceArn; }
189 template <typename ReplicatorResourceArnT = Aws::String>
190 void SetReplicatorResourceArn(ReplicatorResourceArnT&& value) {
191 m_replicatorResourceArnHasBeenSet = true;
192 m_replicatorResourceArn = std::forward<ReplicatorResourceArnT>(value);
193 }
194 template <typename ReplicatorResourceArnT = Aws::String>
195 DescribeReplicatorResult& WithReplicatorResourceArn(ReplicatorResourceArnT&& value) {
196 SetReplicatorResourceArn(std::forward<ReplicatorResourceArnT>(value));
197 return *this;
198 }
200
202
205 inline ReplicatorState GetReplicatorState() const { return m_replicatorState; }
207 m_replicatorStateHasBeenSet = true;
208 m_replicatorState = value;
209 }
211 SetReplicatorState(value);
212 return *this;
213 }
215
217
221 inline const Aws::String& GetServiceExecutionRoleArn() const { return m_serviceExecutionRoleArn; }
222 template <typename ServiceExecutionRoleArnT = Aws::String>
223 void SetServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) {
224 m_serviceExecutionRoleArnHasBeenSet = true;
225 m_serviceExecutionRoleArn = std::forward<ServiceExecutionRoleArnT>(value);
226 }
227 template <typename ServiceExecutionRoleArnT = Aws::String>
228 DescribeReplicatorResult& WithServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) {
229 SetServiceExecutionRoleArn(std::forward<ServiceExecutionRoleArnT>(value));
230 return *this;
231 }
233
235
238 inline const ReplicationStateInfo& GetStateInfo() const { return m_stateInfo; }
239 template <typename StateInfoT = ReplicationStateInfo>
240 void SetStateInfo(StateInfoT&& value) {
241 m_stateInfoHasBeenSet = true;
242 m_stateInfo = std::forward<StateInfoT>(value);
243 }
244 template <typename StateInfoT = ReplicationStateInfo>
246 SetStateInfo(std::forward<StateInfoT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
256 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
257 void SetTags(TagsT&& value) {
258 m_tagsHasBeenSet = true;
259 m_tags = std::forward<TagsT>(value);
260 }
261 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
263 SetTags(std::forward<TagsT>(value));
264 return *this;
265 }
266 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
267 DescribeReplicatorResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
268 m_tagsHasBeenSet = true;
269 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
270 return *this;
271 }
273
275
276 inline const Aws::String& GetRequestId() const { return m_requestId; }
277 template <typename RequestIdT = Aws::String>
278 void SetRequestId(RequestIdT&& value) {
279 m_requestIdHasBeenSet = true;
280 m_requestId = std::forward<RequestIdT>(value);
281 }
282 template <typename RequestIdT = Aws::String>
284 SetRequestId(std::forward<RequestIdT>(value));
285 return *this;
286 }
288 private:
289 Aws::Utils::DateTime m_creationTime{};
290
291 Aws::String m_currentVersion;
292
293 bool m_isReplicatorReference{false};
294
296
297 Aws::Vector<ReplicationInfoDescription> m_replicationInfoList;
298
299 Aws::String m_replicatorArn;
300
301 Aws::String m_replicatorDescription;
302
303 Aws::String m_replicatorName;
304
305 Aws::String m_replicatorResourceArn;
306
307 ReplicatorState m_replicatorState{ReplicatorState::NOT_SET};
308
309 Aws::String m_serviceExecutionRoleArn;
310
311 ReplicationStateInfo m_stateInfo;
312
314
315 Aws::String m_requestId;
316 bool m_creationTimeHasBeenSet = false;
317 bool m_currentVersionHasBeenSet = false;
318 bool m_isReplicatorReferenceHasBeenSet = false;
319 bool m_kafkaClustersHasBeenSet = false;
320 bool m_replicationInfoListHasBeenSet = false;
321 bool m_replicatorArnHasBeenSet = false;
322 bool m_replicatorDescriptionHasBeenSet = false;
323 bool m_replicatorNameHasBeenSet = false;
324 bool m_replicatorResourceArnHasBeenSet = false;
325 bool m_replicatorStateHasBeenSet = false;
326 bool m_serviceExecutionRoleArnHasBeenSet = false;
327 bool m_stateInfoHasBeenSet = false;
328 bool m_tagsHasBeenSet = false;
329 bool m_requestIdHasBeenSet = false;
330};
331
332} // namespace Model
333} // namespace Kafka
334} // 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
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