AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Cluster.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/kafka/Kafka_EXPORTS.h>
11#include <aws/kafka/model/ClusterState.h>
12#include <aws/kafka/model/ClusterType.h>
13#include <aws/kafka/model/Provisioned.h>
14#include <aws/kafka/model/Serverless.h>
15#include <aws/kafka/model/StateInfo.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Kafka {
27namespace Model {
28
37class Cluster {
38 public:
39 AWS_KAFKA_API Cluster() = default;
40 AWS_KAFKA_API Cluster(Aws::Utils::Json::JsonView jsonValue);
41 AWS_KAFKA_API Cluster& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
51 inline const Aws::String& GetActiveOperationArn() const { return m_activeOperationArn; }
52 inline bool ActiveOperationArnHasBeenSet() const { return m_activeOperationArnHasBeenSet; }
53 template <typename ActiveOperationArnT = Aws::String>
54 void SetActiveOperationArn(ActiveOperationArnT&& value) {
55 m_activeOperationArnHasBeenSet = true;
56 m_activeOperationArn = std::forward<ActiveOperationArnT>(value);
57 }
58 template <typename ActiveOperationArnT = Aws::String>
59 Cluster& WithActiveOperationArn(ActiveOperationArnT&& value) {
60 SetActiveOperationArn(std::forward<ActiveOperationArnT>(value));
61 return *this;
62 }
64
66
71 inline ClusterType GetClusterType() const { return m_clusterType; }
72 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
73 inline void SetClusterType(ClusterType value) {
74 m_clusterTypeHasBeenSet = true;
75 m_clusterType = value;
76 }
78 SetClusterType(value);
79 return *this;
80 }
82
84
90 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
91 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
92 template <typename ClusterArnT = Aws::String>
93 void SetClusterArn(ClusterArnT&& value) {
94 m_clusterArnHasBeenSet = true;
95 m_clusterArn = std::forward<ClusterArnT>(value);
96 }
97 template <typename ClusterArnT = Aws::String>
98 Cluster& WithClusterArn(ClusterArnT&& value) {
99 SetClusterArn(std::forward<ClusterArnT>(value));
100 return *this;
101 }
103
105
110 inline const Aws::String& GetClusterName() const { return m_clusterName; }
111 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
112 template <typename ClusterNameT = Aws::String>
113 void SetClusterName(ClusterNameT&& value) {
114 m_clusterNameHasBeenSet = true;
115 m_clusterName = std::forward<ClusterNameT>(value);
116 }
117 template <typename ClusterNameT = Aws::String>
118 Cluster& WithClusterName(ClusterNameT&& value) {
119 SetClusterName(std::forward<ClusterNameT>(value));
120 return *this;
121 }
123
125
130 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
131 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
132 template <typename CreationTimeT = Aws::Utils::DateTime>
133 void SetCreationTime(CreationTimeT&& value) {
134 m_creationTimeHasBeenSet = true;
135 m_creationTime = std::forward<CreationTimeT>(value);
136 }
137 template <typename CreationTimeT = Aws::Utils::DateTime>
138 Cluster& WithCreationTime(CreationTimeT&& value) {
139 SetCreationTime(std::forward<CreationTimeT>(value));
140 return *this;
141 }
143
145
150 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
151 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
152 template <typename CurrentVersionT = Aws::String>
153 void SetCurrentVersion(CurrentVersionT&& value) {
154 m_currentVersionHasBeenSet = true;
155 m_currentVersion = std::forward<CurrentVersionT>(value);
156 }
157 template <typename CurrentVersionT = Aws::String>
158 Cluster& WithCurrentVersion(CurrentVersionT&& value) {
159 SetCurrentVersion(std::forward<CurrentVersionT>(value));
160 return *this;
161 }
163
165
172 inline ClusterState GetState() const { return m_state; }
173 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
174 inline void SetState(ClusterState value) {
175 m_stateHasBeenSet = true;
176 m_state = value;
177 }
179 SetState(value);
180 return *this;
181 }
183
185
190 inline const StateInfo& GetStateInfo() const { return m_stateInfo; }
191 inline bool StateInfoHasBeenSet() const { return m_stateInfoHasBeenSet; }
192 template <typename StateInfoT = StateInfo>
193 void SetStateInfo(StateInfoT&& value) {
194 m_stateInfoHasBeenSet = true;
195 m_stateInfo = std::forward<StateInfoT>(value);
196 }
197 template <typename StateInfoT = StateInfo>
198 Cluster& WithStateInfo(StateInfoT&& value) {
199 SetStateInfo(std::forward<StateInfoT>(value));
200 return *this;
201 }
203
205
210 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
211 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
212 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
213 void SetTags(TagsT&& value) {
214 m_tagsHasBeenSet = true;
215 m_tags = std::forward<TagsT>(value);
216 }
217 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
218 Cluster& WithTags(TagsT&& value) {
219 SetTags(std::forward<TagsT>(value));
220 return *this;
221 }
222 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
223 Cluster& AddTags(TagsKeyT&& key, TagsValueT&& value) {
224 m_tagsHasBeenSet = true;
225 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
226 return *this;
227 }
229
231
236 inline const Provisioned& GetProvisioned() const { return m_provisioned; }
237 inline bool ProvisionedHasBeenSet() const { return m_provisionedHasBeenSet; }
238 template <typename ProvisionedT = Provisioned>
239 void SetProvisioned(ProvisionedT&& value) {
240 m_provisionedHasBeenSet = true;
241 m_provisioned = std::forward<ProvisionedT>(value);
242 }
243 template <typename ProvisionedT = Provisioned>
244 Cluster& WithProvisioned(ProvisionedT&& value) {
245 SetProvisioned(std::forward<ProvisionedT>(value));
246 return *this;
247 }
249
251
256 inline const Serverless& GetServerless() const { return m_serverless; }
257 inline bool ServerlessHasBeenSet() const { return m_serverlessHasBeenSet; }
258 template <typename ServerlessT = Serverless>
259 void SetServerless(ServerlessT&& value) {
260 m_serverlessHasBeenSet = true;
261 m_serverless = std::forward<ServerlessT>(value);
262 }
263 template <typename ServerlessT = Serverless>
264 Cluster& WithServerless(ServerlessT&& value) {
265 SetServerless(std::forward<ServerlessT>(value));
266 return *this;
267 }
269 private:
270 Aws::String m_activeOperationArn;
271
272 ClusterType m_clusterType{ClusterType::NOT_SET};
273
274 Aws::String m_clusterArn;
275
276 Aws::String m_clusterName;
277
278 Aws::Utils::DateTime m_creationTime{};
279
280 Aws::String m_currentVersion;
281
283
284 StateInfo m_stateInfo;
285
287
288 Provisioned m_provisioned;
289
290 Serverless m_serverless;
291 bool m_activeOperationArnHasBeenSet = false;
292 bool m_clusterTypeHasBeenSet = false;
293 bool m_clusterArnHasBeenSet = false;
294 bool m_clusterNameHasBeenSet = false;
295 bool m_creationTimeHasBeenSet = false;
296 bool m_currentVersionHasBeenSet = false;
297 bool m_stateHasBeenSet = false;
298 bool m_stateInfoHasBeenSet = false;
299 bool m_tagsHasBeenSet = false;
300 bool m_provisionedHasBeenSet = false;
301 bool m_serverlessHasBeenSet = false;
302};
303
304} // namespace Model
305} // namespace Kafka
306} // namespace Aws
void SetTags(TagsT &&value)
Definition Cluster.h:213
void SetCreationTime(CreationTimeT &&value)
Definition Cluster.h:133
bool CreationTimeHasBeenSet() const
Definition Cluster.h:131
const Aws::String & GetActiveOperationArn() const
Definition Cluster.h:51
bool StateHasBeenSet() const
Definition Cluster.h:173
const StateInfo & GetStateInfo() const
Definition Cluster.h:190
bool ServerlessHasBeenSet() const
Definition Cluster.h:257
void SetClusterArn(ClusterArnT &&value)
Definition Cluster.h:93
AWS_KAFKA_API Cluster & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClusterName() const
Definition Cluster.h:110
void SetCurrentVersion(CurrentVersionT &&value)
Definition Cluster.h:153
void SetClusterName(ClusterNameT &&value)
Definition Cluster.h:113
void SetClusterType(ClusterType value)
Definition Cluster.h:73
Cluster & WithCurrentVersion(CurrentVersionT &&value)
Definition Cluster.h:158
const Aws::Utils::DateTime & GetCreationTime() const
Definition Cluster.h:130
void SetServerless(ServerlessT &&value)
Definition Cluster.h:259
const Provisioned & GetProvisioned() const
Definition Cluster.h:236
bool CurrentVersionHasBeenSet() const
Definition Cluster.h:151
Cluster & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Cluster.h:223
ClusterType GetClusterType() const
Definition Cluster.h:71
const Aws::String & GetCurrentVersion() const
Definition Cluster.h:150
Cluster & WithClusterName(ClusterNameT &&value)
Definition Cluster.h:118
Cluster & WithCreationTime(CreationTimeT &&value)
Definition Cluster.h:138
Cluster & WithClusterType(ClusterType value)
Definition Cluster.h:77
const Serverless & GetServerless() const
Definition Cluster.h:256
bool ClusterNameHasBeenSet() const
Definition Cluster.h:111
bool ClusterTypeHasBeenSet() const
Definition Cluster.h:72
bool TagsHasBeenSet() const
Definition Cluster.h:211
AWS_KAFKA_API Cluster(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Cluster.h:210
Cluster & WithTags(TagsT &&value)
Definition Cluster.h:218
void SetState(ClusterState value)
Definition Cluster.h:174
void SetActiveOperationArn(ActiveOperationArnT &&value)
Definition Cluster.h:54
bool ClusterArnHasBeenSet() const
Definition Cluster.h:91
bool StateInfoHasBeenSet() const
Definition Cluster.h:191
bool ActiveOperationArnHasBeenSet() const
Definition Cluster.h:52
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
Cluster & WithState(ClusterState value)
Definition Cluster.h:178
void SetProvisioned(ProvisionedT &&value)
Definition Cluster.h:239
Cluster & WithActiveOperationArn(ActiveOperationArnT &&value)
Definition Cluster.h:59
Cluster & WithServerless(ServerlessT &&value)
Definition Cluster.h:264
bool ProvisionedHasBeenSet() const
Definition Cluster.h:237
Cluster & WithClusterArn(ClusterArnT &&value)
Definition Cluster.h:98
void SetStateInfo(StateInfoT &&value)
Definition Cluster.h:193
ClusterState GetState() const
Definition Cluster.h:172
Cluster & WithStateInfo(StateInfoT &&value)
Definition Cluster.h:198
const Aws::String & GetClusterArn() const
Definition Cluster.h:90
AWS_KAFKA_API Cluster()=default
Cluster & WithProvisioned(ProvisionedT &&value)
Definition Cluster.h:244
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
Aws::Utils::Json::JsonValue JsonValue