AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ReplicatorSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kafka/Kafka_EXPORTS.h>
11#include <aws/kafka/model/KafkaClusterSummary.h>
12#include <aws/kafka/model/ReplicationInfoSummary.h>
13#include <aws/kafka/model/ReplicatorState.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Kafka {
25namespace Model {
26
33 public:
34 AWS_KAFKA_API ReplicatorSummary() = default;
37 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
44 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
45 template <typename CreationTimeT = Aws::Utils::DateTime>
46 void SetCreationTime(CreationTimeT&& value) {
47 m_creationTimeHasBeenSet = true;
48 m_creationTime = std::forward<CreationTimeT>(value);
49 }
50 template <typename CreationTimeT = Aws::Utils::DateTime>
51 ReplicatorSummary& WithCreationTime(CreationTimeT&& value) {
52 SetCreationTime(std::forward<CreationTimeT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
62 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
63 template <typename CurrentVersionT = Aws::String>
64 void SetCurrentVersion(CurrentVersionT&& value) {
65 m_currentVersionHasBeenSet = true;
66 m_currentVersion = std::forward<CurrentVersionT>(value);
67 }
68 template <typename CurrentVersionT = Aws::String>
69 ReplicatorSummary& WithCurrentVersion(CurrentVersionT&& value) {
70 SetCurrentVersion(std::forward<CurrentVersionT>(value));
71 return *this;
72 }
74
76
79 inline bool GetIsReplicatorReference() const { return m_isReplicatorReference; }
80 inline bool IsReplicatorReferenceHasBeenSet() const { return m_isReplicatorReferenceHasBeenSet; }
81 inline void SetIsReplicatorReference(bool value) {
82 m_isReplicatorReferenceHasBeenSet = true;
83 m_isReplicatorReference = value;
84 }
87 return *this;
88 }
90
92
95 inline const Aws::Vector<KafkaClusterSummary>& GetKafkaClustersSummary() const { return m_kafkaClustersSummary; }
96 inline bool KafkaClustersSummaryHasBeenSet() const { return m_kafkaClustersSummaryHasBeenSet; }
97 template <typename KafkaClustersSummaryT = Aws::Vector<KafkaClusterSummary>>
98 void SetKafkaClustersSummary(KafkaClustersSummaryT&& value) {
99 m_kafkaClustersSummaryHasBeenSet = true;
100 m_kafkaClustersSummary = std::forward<KafkaClustersSummaryT>(value);
101 }
102 template <typename KafkaClustersSummaryT = Aws::Vector<KafkaClusterSummary>>
103 ReplicatorSummary& WithKafkaClustersSummary(KafkaClustersSummaryT&& value) {
104 SetKafkaClustersSummary(std::forward<KafkaClustersSummaryT>(value));
105 return *this;
106 }
107 template <typename KafkaClustersSummaryT = KafkaClusterSummary>
108 ReplicatorSummary& AddKafkaClustersSummary(KafkaClustersSummaryT&& value) {
109 m_kafkaClustersSummaryHasBeenSet = true;
110 m_kafkaClustersSummary.emplace_back(std::forward<KafkaClustersSummaryT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Vector<ReplicationInfoSummary>& GetReplicationInfoSummaryList() const { return m_replicationInfoSummaryList; }
120 inline bool ReplicationInfoSummaryListHasBeenSet() const { return m_replicationInfoSummaryListHasBeenSet; }
121 template <typename ReplicationInfoSummaryListT = Aws::Vector<ReplicationInfoSummary>>
122 void SetReplicationInfoSummaryList(ReplicationInfoSummaryListT&& value) {
123 m_replicationInfoSummaryListHasBeenSet = true;
124 m_replicationInfoSummaryList = std::forward<ReplicationInfoSummaryListT>(value);
125 }
126 template <typename ReplicationInfoSummaryListT = Aws::Vector<ReplicationInfoSummary>>
127 ReplicatorSummary& WithReplicationInfoSummaryList(ReplicationInfoSummaryListT&& value) {
128 SetReplicationInfoSummaryList(std::forward<ReplicationInfoSummaryListT>(value));
129 return *this;
130 }
131 template <typename ReplicationInfoSummaryListT = ReplicationInfoSummary>
132 ReplicatorSummary& AddReplicationInfoSummaryList(ReplicationInfoSummaryListT&& value) {
133 m_replicationInfoSummaryListHasBeenSet = true;
134 m_replicationInfoSummaryList.emplace_back(std::forward<ReplicationInfoSummaryListT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetReplicatorArn() const { return m_replicatorArn; }
144 inline bool ReplicatorArnHasBeenSet() const { return m_replicatorArnHasBeenSet; }
145 template <typename ReplicatorArnT = Aws::String>
146 void SetReplicatorArn(ReplicatorArnT&& value) {
147 m_replicatorArnHasBeenSet = true;
148 m_replicatorArn = std::forward<ReplicatorArnT>(value);
149 }
150 template <typename ReplicatorArnT = Aws::String>
151 ReplicatorSummary& WithReplicatorArn(ReplicatorArnT&& value) {
152 SetReplicatorArn(std::forward<ReplicatorArnT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetReplicatorName() const { return m_replicatorName; }
162 inline bool ReplicatorNameHasBeenSet() const { return m_replicatorNameHasBeenSet; }
163 template <typename ReplicatorNameT = Aws::String>
164 void SetReplicatorName(ReplicatorNameT&& value) {
165 m_replicatorNameHasBeenSet = true;
166 m_replicatorName = std::forward<ReplicatorNameT>(value);
167 }
168 template <typename ReplicatorNameT = Aws::String>
169 ReplicatorSummary& WithReplicatorName(ReplicatorNameT&& value) {
170 SetReplicatorName(std::forward<ReplicatorNameT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::String& GetReplicatorResourceArn() const { return m_replicatorResourceArn; }
181 inline bool ReplicatorResourceArnHasBeenSet() const { return m_replicatorResourceArnHasBeenSet; }
182 template <typename ReplicatorResourceArnT = Aws::String>
183 void SetReplicatorResourceArn(ReplicatorResourceArnT&& value) {
184 m_replicatorResourceArnHasBeenSet = true;
185 m_replicatorResourceArn = std::forward<ReplicatorResourceArnT>(value);
186 }
187 template <typename ReplicatorResourceArnT = Aws::String>
188 ReplicatorSummary& WithReplicatorResourceArn(ReplicatorResourceArnT&& value) {
189 SetReplicatorResourceArn(std::forward<ReplicatorResourceArnT>(value));
190 return *this;
191 }
193
195
198 inline ReplicatorState GetReplicatorState() const { return m_replicatorState; }
199 inline bool ReplicatorStateHasBeenSet() const { return m_replicatorStateHasBeenSet; }
201 m_replicatorStateHasBeenSet = true;
202 m_replicatorState = value;
203 }
205 SetReplicatorState(value);
206 return *this;
207 }
209 private:
210 Aws::Utils::DateTime m_creationTime{};
211
212 Aws::String m_currentVersion;
213
214 bool m_isReplicatorReference{false};
215
216 Aws::Vector<KafkaClusterSummary> m_kafkaClustersSummary;
217
218 Aws::Vector<ReplicationInfoSummary> m_replicationInfoSummaryList;
219
220 Aws::String m_replicatorArn;
221
222 Aws::String m_replicatorName;
223
224 Aws::String m_replicatorResourceArn;
225
226 ReplicatorState m_replicatorState{ReplicatorState::NOT_SET};
227 bool m_creationTimeHasBeenSet = false;
228 bool m_currentVersionHasBeenSet = false;
229 bool m_isReplicatorReferenceHasBeenSet = false;
230 bool m_kafkaClustersSummaryHasBeenSet = false;
231 bool m_replicationInfoSummaryListHasBeenSet = false;
232 bool m_replicatorArnHasBeenSet = false;
233 bool m_replicatorNameHasBeenSet = false;
234 bool m_replicatorResourceArnHasBeenSet = false;
235 bool m_replicatorStateHasBeenSet = false;
236};
237
238} // namespace Model
239} // namespace Kafka
240} // namespace Aws
void SetReplicatorResourceArn(ReplicatorResourceArnT &&value)
void SetReplicatorArn(ReplicatorArnT &&value)
ReplicatorSummary & WithReplicatorArn(ReplicatorArnT &&value)
AWS_KAFKA_API ReplicatorSummary()=default
ReplicatorSummary & WithCurrentVersion(CurrentVersionT &&value)
const Aws::Vector< ReplicationInfoSummary > & GetReplicationInfoSummaryList() const
ReplicatorSummary & WithReplicatorName(ReplicatorNameT &&value)
ReplicatorState GetReplicatorState() const
void SetReplicatorName(ReplicatorNameT &&value)
ReplicatorSummary & WithReplicationInfoSummaryList(ReplicationInfoSummaryListT &&value)
ReplicatorSummary & AddKafkaClustersSummary(KafkaClustersSummaryT &&value)
AWS_KAFKA_API ReplicatorSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API ReplicatorSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReplicatorState(ReplicatorState value)
ReplicatorSummary & WithCreationTime(CreationTimeT &&value)
ReplicatorSummary & AddReplicationInfoSummaryList(ReplicationInfoSummaryListT &&value)
const Aws::String & GetReplicatorName() const
void SetCreationTime(CreationTimeT &&value)
const Aws::String & GetReplicatorArn() const
void SetReplicationInfoSummaryList(ReplicationInfoSummaryListT &&value)
const Aws::String & GetCurrentVersion() const
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
ReplicatorSummary & WithReplicatorState(ReplicatorState value)
ReplicatorSummary & WithIsReplicatorReference(bool value)
void SetCurrentVersion(CurrentVersionT &&value)
const Aws::Vector< KafkaClusterSummary > & GetKafkaClustersSummary() const
const Aws::Utils::DateTime & GetCreationTime() const
ReplicatorSummary & WithReplicatorResourceArn(ReplicatorResourceArnT &&value)
void SetKafkaClustersSummary(KafkaClustersSummaryT &&value)
ReplicatorSummary & WithKafkaClustersSummary(KafkaClustersSummaryT &&value)
const Aws::String & GetReplicatorResourceArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue