AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ClusterInfo.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/BrokerNodeGroupInfo.h>
12#include <aws/kafka/model/BrokerSoftwareInfo.h>
13#include <aws/kafka/model/ClientAuthentication.h>
14#include <aws/kafka/model/ClusterState.h>
15#include <aws/kafka/model/CustomerActionStatus.h>
16#include <aws/kafka/model/EncryptionInfo.h>
17#include <aws/kafka/model/EnhancedMonitoring.h>
18#include <aws/kafka/model/LoggingInfo.h>
19#include <aws/kafka/model/OpenMonitoring.h>
20#include <aws/kafka/model/Rebalancing.h>
21#include <aws/kafka/model/StateInfo.h>
22#include <aws/kafka/model/StorageMode.h>
23
24#include <utility>
25
26namespace Aws {
27namespace Utils {
28namespace Json {
29class JsonValue;
30class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace Kafka {
34namespace Model {
35
45 public:
46 AWS_KAFKA_API ClusterInfo() = default;
47 AWS_KAFKA_API ClusterInfo(Aws::Utils::Json::JsonView jsonValue);
49 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
50
52
57 inline const Aws::String& GetActiveOperationArn() const { return m_activeOperationArn; }
58 inline bool ActiveOperationArnHasBeenSet() const { return m_activeOperationArnHasBeenSet; }
59 template <typename ActiveOperationArnT = Aws::String>
60 void SetActiveOperationArn(ActiveOperationArnT&& value) {
61 m_activeOperationArnHasBeenSet = true;
62 m_activeOperationArn = std::forward<ActiveOperationArnT>(value);
63 }
64 template <typename ActiveOperationArnT = Aws::String>
65 ClusterInfo& WithActiveOperationArn(ActiveOperationArnT&& value) {
66 SetActiveOperationArn(std::forward<ActiveOperationArnT>(value));
67 return *this;
68 }
70
72
77 inline const BrokerNodeGroupInfo& GetBrokerNodeGroupInfo() const { return m_brokerNodeGroupInfo; }
78 inline bool BrokerNodeGroupInfoHasBeenSet() const { return m_brokerNodeGroupInfoHasBeenSet; }
79 template <typename BrokerNodeGroupInfoT = BrokerNodeGroupInfo>
80 void SetBrokerNodeGroupInfo(BrokerNodeGroupInfoT&& value) {
81 m_brokerNodeGroupInfoHasBeenSet = true;
82 m_brokerNodeGroupInfo = std::forward<BrokerNodeGroupInfoT>(value);
83 }
84 template <typename BrokerNodeGroupInfoT = BrokerNodeGroupInfo>
85 ClusterInfo& WithBrokerNodeGroupInfo(BrokerNodeGroupInfoT&& value) {
86 SetBrokerNodeGroupInfo(std::forward<BrokerNodeGroupInfoT>(value));
87 return *this;
88 }
90
92
99 inline const Rebalancing& GetRebalancing() const { return m_rebalancing; }
100 inline bool RebalancingHasBeenSet() const { return m_rebalancingHasBeenSet; }
101 template <typename RebalancingT = Rebalancing>
102 void SetRebalancing(RebalancingT&& value) {
103 m_rebalancingHasBeenSet = true;
104 m_rebalancing = std::forward<RebalancingT>(value);
105 }
106 template <typename RebalancingT = Rebalancing>
107 ClusterInfo& WithRebalancing(RebalancingT&& value) {
108 SetRebalancing(std::forward<RebalancingT>(value));
109 return *this;
110 }
112
114
119 inline const ClientAuthentication& GetClientAuthentication() const { return m_clientAuthentication; }
120 inline bool ClientAuthenticationHasBeenSet() const { return m_clientAuthenticationHasBeenSet; }
121 template <typename ClientAuthenticationT = ClientAuthentication>
122 void SetClientAuthentication(ClientAuthenticationT&& value) {
123 m_clientAuthenticationHasBeenSet = true;
124 m_clientAuthentication = std::forward<ClientAuthenticationT>(value);
125 }
126 template <typename ClientAuthenticationT = ClientAuthentication>
127 ClusterInfo& WithClientAuthentication(ClientAuthenticationT&& value) {
128 SetClientAuthentication(std::forward<ClientAuthenticationT>(value));
129 return *this;
130 }
132
134
140 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
141 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
142 template <typename ClusterArnT = Aws::String>
143 void SetClusterArn(ClusterArnT&& value) {
144 m_clusterArnHasBeenSet = true;
145 m_clusterArn = std::forward<ClusterArnT>(value);
146 }
147 template <typename ClusterArnT = Aws::String>
148 ClusterInfo& WithClusterArn(ClusterArnT&& value) {
149 SetClusterArn(std::forward<ClusterArnT>(value));
150 return *this;
151 }
153
155
160 inline const Aws::String& GetClusterName() const { return m_clusterName; }
161 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
162 template <typename ClusterNameT = Aws::String>
163 void SetClusterName(ClusterNameT&& value) {
164 m_clusterNameHasBeenSet = true;
165 m_clusterName = std::forward<ClusterNameT>(value);
166 }
167 template <typename ClusterNameT = Aws::String>
168 ClusterInfo& WithClusterName(ClusterNameT&& value) {
169 SetClusterName(std::forward<ClusterNameT>(value));
170 return *this;
171 }
173
175
180 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
181 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
182 template <typename CreationTimeT = Aws::Utils::DateTime>
183 void SetCreationTime(CreationTimeT&& value) {
184 m_creationTimeHasBeenSet = true;
185 m_creationTime = std::forward<CreationTimeT>(value);
186 }
187 template <typename CreationTimeT = Aws::Utils::DateTime>
188 ClusterInfo& WithCreationTime(CreationTimeT&& value) {
189 SetCreationTime(std::forward<CreationTimeT>(value));
190 return *this;
191 }
193
195
201 inline const BrokerSoftwareInfo& GetCurrentBrokerSoftwareInfo() const { return m_currentBrokerSoftwareInfo; }
202 inline bool CurrentBrokerSoftwareInfoHasBeenSet() const { return m_currentBrokerSoftwareInfoHasBeenSet; }
203 template <typename CurrentBrokerSoftwareInfoT = BrokerSoftwareInfo>
204 void SetCurrentBrokerSoftwareInfo(CurrentBrokerSoftwareInfoT&& value) {
205 m_currentBrokerSoftwareInfoHasBeenSet = true;
206 m_currentBrokerSoftwareInfo = std::forward<CurrentBrokerSoftwareInfoT>(value);
207 }
208 template <typename CurrentBrokerSoftwareInfoT = BrokerSoftwareInfo>
209 ClusterInfo& WithCurrentBrokerSoftwareInfo(CurrentBrokerSoftwareInfoT&& value) {
210 SetCurrentBrokerSoftwareInfo(std::forward<CurrentBrokerSoftwareInfoT>(value));
211 return *this;
212 }
214
216
221 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
222 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
223 template <typename CurrentVersionT = Aws::String>
224 void SetCurrentVersion(CurrentVersionT&& value) {
225 m_currentVersionHasBeenSet = true;
226 m_currentVersion = std::forward<CurrentVersionT>(value);
227 }
228 template <typename CurrentVersionT = Aws::String>
229 ClusterInfo& WithCurrentVersion(CurrentVersionT&& value) {
230 SetCurrentVersion(std::forward<CurrentVersionT>(value));
231 return *this;
232 }
234
236
241 inline const EncryptionInfo& GetEncryptionInfo() const { return m_encryptionInfo; }
242 inline bool EncryptionInfoHasBeenSet() const { return m_encryptionInfoHasBeenSet; }
243 template <typename EncryptionInfoT = EncryptionInfo>
244 void SetEncryptionInfo(EncryptionInfoT&& value) {
245 m_encryptionInfoHasBeenSet = true;
246 m_encryptionInfo = std::forward<EncryptionInfoT>(value);
247 }
248 template <typename EncryptionInfoT = EncryptionInfo>
249 ClusterInfo& WithEncryptionInfo(EncryptionInfoT&& value) {
250 SetEncryptionInfo(std::forward<EncryptionInfoT>(value));
251 return *this;
252 }
254
256
266 inline EnhancedMonitoring GetEnhancedMonitoring() const { return m_enhancedMonitoring; }
267 inline bool EnhancedMonitoringHasBeenSet() const { return m_enhancedMonitoringHasBeenSet; }
269 m_enhancedMonitoringHasBeenSet = true;
270 m_enhancedMonitoring = value;
271 }
274 return *this;
275 }
277
279
284 inline const OpenMonitoring& GetOpenMonitoring() const { return m_openMonitoring; }
285 inline bool OpenMonitoringHasBeenSet() const { return m_openMonitoringHasBeenSet; }
286 template <typename OpenMonitoringT = OpenMonitoring>
287 void SetOpenMonitoring(OpenMonitoringT&& value) {
288 m_openMonitoringHasBeenSet = true;
289 m_openMonitoring = std::forward<OpenMonitoringT>(value);
290 }
291 template <typename OpenMonitoringT = OpenMonitoring>
292 ClusterInfo& WithOpenMonitoring(OpenMonitoringT&& value) {
293 SetOpenMonitoring(std::forward<OpenMonitoringT>(value));
294 return *this;
295 }
297
299
300 inline const LoggingInfo& GetLoggingInfo() const { return m_loggingInfo; }
301 inline bool LoggingInfoHasBeenSet() const { return m_loggingInfoHasBeenSet; }
302 template <typename LoggingInfoT = LoggingInfo>
303 void SetLoggingInfo(LoggingInfoT&& value) {
304 m_loggingInfoHasBeenSet = true;
305 m_loggingInfo = std::forward<LoggingInfoT>(value);
306 }
307 template <typename LoggingInfoT = LoggingInfo>
308 ClusterInfo& WithLoggingInfo(LoggingInfoT&& value) {
309 SetLoggingInfo(std::forward<LoggingInfoT>(value));
310 return *this;
311 }
313
315
320 inline int GetNumberOfBrokerNodes() const { return m_numberOfBrokerNodes; }
321 inline bool NumberOfBrokerNodesHasBeenSet() const { return m_numberOfBrokerNodesHasBeenSet; }
322 inline void SetNumberOfBrokerNodes(int value) {
323 m_numberOfBrokerNodesHasBeenSet = true;
324 m_numberOfBrokerNodes = value;
325 }
328 return *this;
329 }
331
333
340 inline ClusterState GetState() const { return m_state; }
341 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
342 inline void SetState(ClusterState value) {
343 m_stateHasBeenSet = true;
344 m_state = value;
345 }
347 SetState(value);
348 return *this;
349 }
351
353
354 inline const StateInfo& GetStateInfo() const { return m_stateInfo; }
355 inline bool StateInfoHasBeenSet() const { return m_stateInfoHasBeenSet; }
356 template <typename StateInfoT = StateInfo>
357 void SetStateInfo(StateInfoT&& value) {
358 m_stateInfoHasBeenSet = true;
359 m_stateInfo = std::forward<StateInfoT>(value);
360 }
361 template <typename StateInfoT = StateInfo>
362 ClusterInfo& WithStateInfo(StateInfoT&& value) {
363 SetStateInfo(std::forward<StateInfoT>(value));
364 return *this;
365 }
367
369
374 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
375 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
376 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
377 void SetTags(TagsT&& value) {
378 m_tagsHasBeenSet = true;
379 m_tags = std::forward<TagsT>(value);
380 }
381 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
382 ClusterInfo& WithTags(TagsT&& value) {
383 SetTags(std::forward<TagsT>(value));
384 return *this;
385 }
386 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
387 ClusterInfo& AddTags(TagsKeyT&& key, TagsValueT&& value) {
388 m_tagsHasBeenSet = true;
389 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
390 return *this;
391 }
393
395
401 inline const Aws::String& GetZookeeperConnectString() const { return m_zookeeperConnectString; }
402 inline bool ZookeeperConnectStringHasBeenSet() const { return m_zookeeperConnectStringHasBeenSet; }
403 template <typename ZookeeperConnectStringT = Aws::String>
404 void SetZookeeperConnectString(ZookeeperConnectStringT&& value) {
405 m_zookeeperConnectStringHasBeenSet = true;
406 m_zookeeperConnectString = std::forward<ZookeeperConnectStringT>(value);
407 }
408 template <typename ZookeeperConnectStringT = Aws::String>
409 ClusterInfo& WithZookeeperConnectString(ZookeeperConnectStringT&& value) {
410 SetZookeeperConnectString(std::forward<ZookeeperConnectStringT>(value));
411 return *this;
412 }
414
416
422 inline const Aws::String& GetZookeeperConnectStringTls() const { return m_zookeeperConnectStringTls; }
423 inline bool ZookeeperConnectStringTlsHasBeenSet() const { return m_zookeeperConnectStringTlsHasBeenSet; }
424 template <typename ZookeeperConnectStringTlsT = Aws::String>
425 void SetZookeeperConnectStringTls(ZookeeperConnectStringTlsT&& value) {
426 m_zookeeperConnectStringTlsHasBeenSet = true;
427 m_zookeeperConnectStringTls = std::forward<ZookeeperConnectStringTlsT>(value);
428 }
429 template <typename ZookeeperConnectStringTlsT = Aws::String>
430 ClusterInfo& WithZookeeperConnectStringTls(ZookeeperConnectStringTlsT&& value) {
431 SetZookeeperConnectStringTls(std::forward<ZookeeperConnectStringTlsT>(value));
432 return *this;
433 }
435
437
443 inline StorageMode GetStorageMode() const { return m_storageMode; }
444 inline bool StorageModeHasBeenSet() const { return m_storageModeHasBeenSet; }
445 inline void SetStorageMode(StorageMode value) {
446 m_storageModeHasBeenSet = true;
447 m_storageMode = value;
448 }
450 SetStorageMode(value);
451 return *this;
452 }
454
456
462 inline CustomerActionStatus GetCustomerActionStatus() const { return m_customerActionStatus; }
463 inline bool CustomerActionStatusHasBeenSet() const { return m_customerActionStatusHasBeenSet; }
465 m_customerActionStatusHasBeenSet = true;
466 m_customerActionStatus = value;
467 }
470 return *this;
471 }
473 private:
474 Aws::String m_activeOperationArn;
475
476 BrokerNodeGroupInfo m_brokerNodeGroupInfo;
477
478 Rebalancing m_rebalancing;
479
480 ClientAuthentication m_clientAuthentication;
481
482 Aws::String m_clusterArn;
483
484 Aws::String m_clusterName;
485
486 Aws::Utils::DateTime m_creationTime{};
487
488 BrokerSoftwareInfo m_currentBrokerSoftwareInfo;
489
490 Aws::String m_currentVersion;
491
492 EncryptionInfo m_encryptionInfo;
493
495
496 OpenMonitoring m_openMonitoring;
497
498 LoggingInfo m_loggingInfo;
499
500 int m_numberOfBrokerNodes{0};
501
503
504 StateInfo m_stateInfo;
505
507
508 Aws::String m_zookeeperConnectString;
509
510 Aws::String m_zookeeperConnectStringTls;
511
512 StorageMode m_storageMode{StorageMode::NOT_SET};
513
515 bool m_activeOperationArnHasBeenSet = false;
516 bool m_brokerNodeGroupInfoHasBeenSet = false;
517 bool m_rebalancingHasBeenSet = false;
518 bool m_clientAuthenticationHasBeenSet = false;
519 bool m_clusterArnHasBeenSet = false;
520 bool m_clusterNameHasBeenSet = false;
521 bool m_creationTimeHasBeenSet = false;
522 bool m_currentBrokerSoftwareInfoHasBeenSet = false;
523 bool m_currentVersionHasBeenSet = false;
524 bool m_encryptionInfoHasBeenSet = false;
525 bool m_enhancedMonitoringHasBeenSet = false;
526 bool m_openMonitoringHasBeenSet = false;
527 bool m_loggingInfoHasBeenSet = false;
528 bool m_numberOfBrokerNodesHasBeenSet = false;
529 bool m_stateHasBeenSet = false;
530 bool m_stateInfoHasBeenSet = false;
531 bool m_tagsHasBeenSet = false;
532 bool m_zookeeperConnectStringHasBeenSet = false;
533 bool m_zookeeperConnectStringTlsHasBeenSet = false;
534 bool m_storageModeHasBeenSet = false;
535 bool m_customerActionStatusHasBeenSet = false;
536};
537
538} // namespace Model
539} // namespace Kafka
540} // namespace Aws
bool ZookeeperConnectStringTlsHasBeenSet() const
bool ZookeeperConnectStringHasBeenSet() const
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KAFKA_API ClusterInfo()=default
ClusterInfo & WithLoggingInfo(LoggingInfoT &&value)
const Rebalancing & GetRebalancing() const
Definition ClusterInfo.h:99
bool NumberOfBrokerNodesHasBeenSet() const
void SetStateInfo(StateInfoT &&value)
bool CustomerActionStatusHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetClusterArn(ClusterArnT &&value)
void SetZookeeperConnectString(ZookeeperConnectStringT &&value)
const EncryptionInfo & GetEncryptionInfo() const
void SetCurrentVersion(CurrentVersionT &&value)
const StateInfo & GetStateInfo() const
ClusterInfo & WithStorageMode(StorageMode value)
EnhancedMonitoring GetEnhancedMonitoring() const
void SetClusterName(ClusterNameT &&value)
void SetStorageMode(StorageMode value)
ClusterInfo & WithZookeeperConnectString(ZookeeperConnectStringT &&value)
bool CurrentBrokerSoftwareInfoHasBeenSet() const
const Aws::String & GetZookeeperConnectString() const
const Aws::String & GetClusterName() const
void SetOpenMonitoring(OpenMonitoringT &&value)
const BrokerSoftwareInfo & GetCurrentBrokerSoftwareInfo() const
void SetCreationTime(CreationTimeT &&value)
ClusterInfo & WithState(ClusterState value)
ClusterInfo & WithStateInfo(StateInfoT &&value)
ClusterInfo & WithTags(TagsT &&value)
ClusterInfo & WithEnhancedMonitoring(EnhancedMonitoring value)
CustomerActionStatus GetCustomerActionStatus() const
void SetEnhancedMonitoring(EnhancedMonitoring value)
ClusterInfo & WithCustomerActionStatus(CustomerActionStatus value)
void SetBrokerNodeGroupInfo(BrokerNodeGroupInfoT &&value)
Definition ClusterInfo.h:80
void SetEncryptionInfo(EncryptionInfoT &&value)
ClusterInfo & WithNumberOfBrokerNodes(int value)
bool EnhancedMonitoringHasBeenSet() const
ClusterInfo & WithClientAuthentication(ClientAuthenticationT &&value)
ClusterInfo & WithClusterArn(ClusterArnT &&value)
StorageMode GetStorageMode() const
ClusterInfo & WithEncryptionInfo(EncryptionInfoT &&value)
bool BrokerNodeGroupInfoHasBeenSet() const
Definition ClusterInfo.h:78
ClusterInfo & WithRebalancing(RebalancingT &&value)
ClusterInfo & WithActiveOperationArn(ActiveOperationArnT &&value)
Definition ClusterInfo.h:65
void SetRebalancing(RebalancingT &&value)
const Aws::String & GetCurrentVersion() const
void SetCurrentBrokerSoftwareInfo(CurrentBrokerSoftwareInfoT &&value)
bool ActiveOperationArnHasBeenSet() const
Definition ClusterInfo.h:58
ClusterInfo & WithCurrentVersion(CurrentVersionT &&value)
const OpenMonitoring & GetOpenMonitoring() const
ClusterState GetState() const
AWS_KAFKA_API ClusterInfo(Aws::Utils::Json::JsonView jsonValue)
void SetClientAuthentication(ClientAuthenticationT &&value)
ClusterInfo & WithCreationTime(CreationTimeT &&value)
ClusterInfo & WithZookeeperConnectStringTls(ZookeeperConnectStringTlsT &&value)
ClusterInfo & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetNumberOfBrokerNodes(int value)
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::String & GetZookeeperConnectStringTls() const
AWS_KAFKA_API ClusterInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetZookeeperConnectStringTls(ZookeeperConnectStringTlsT &&value)
ClusterInfo & WithBrokerNodeGroupInfo(BrokerNodeGroupInfoT &&value)
Definition ClusterInfo.h:85
bool ClientAuthenticationHasBeenSet() const
const Aws::String & GetClusterArn() const
ClusterInfo & WithClusterName(ClusterNameT &&value)
void SetLoggingInfo(LoggingInfoT &&value)
void SetActiveOperationArn(ActiveOperationArnT &&value)
Definition ClusterInfo.h:60
void SetState(ClusterState value)
const BrokerNodeGroupInfo & GetBrokerNodeGroupInfo() const
Definition ClusterInfo.h:77
ClusterInfo & WithOpenMonitoring(OpenMonitoringT &&value)
const Aws::String & GetActiveOperationArn() const
Definition ClusterInfo.h:57
void SetCustomerActionStatus(CustomerActionStatus value)
ClusterInfo & WithCurrentBrokerSoftwareInfo(CurrentBrokerSoftwareInfoT &&value)
const LoggingInfo & GetLoggingInfo() const
const ClientAuthentication & GetClientAuthentication() const
void SetTags(TagsT &&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
Aws::Utils::Json::JsonValue JsonValue