AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ClusterInfo.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kafka/model/BrokerNodeGroupInfo.h>
10#include <aws/kafka/model/ClientAuthentication.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/kafka/model/BrokerSoftwareInfo.h>
13#include <aws/kafka/model/EncryptionInfo.h>
14#include <aws/kafka/model/EnhancedMonitoring.h>
15#include <aws/kafka/model/OpenMonitoring.h>
16#include <aws/kafka/model/LoggingInfo.h>
17#include <aws/kafka/model/ClusterState.h>
18#include <aws/kafka/model/StateInfo.h>
19#include <aws/core/utils/memory/stl/AWSMap.h>
20#include <aws/kafka/model/StorageMode.h>
21#include <aws/kafka/model/CustomerActionStatus.h>
22#include <utility>
23
24namespace Aws
25{
26namespace Utils
27{
28namespace Json
29{
30 class JsonValue;
31 class JsonView;
32} // namespace Json
33} // namespace Utils
34namespace Kafka
35{
36namespace Model
37{
38
48 {
49 public:
50 AWS_KAFKA_API ClusterInfo() = default;
51 AWS_KAFKA_API ClusterInfo(Aws::Utils::Json::JsonView jsonValue);
53 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
54
55
57
62 inline const Aws::String& GetActiveOperationArn() const { return m_activeOperationArn; }
63 inline bool ActiveOperationArnHasBeenSet() const { return m_activeOperationArnHasBeenSet; }
64 template<typename ActiveOperationArnT = Aws::String>
65 void SetActiveOperationArn(ActiveOperationArnT&& value) { m_activeOperationArnHasBeenSet = true; m_activeOperationArn = std::forward<ActiveOperationArnT>(value); }
66 template<typename ActiveOperationArnT = Aws::String>
67 ClusterInfo& WithActiveOperationArn(ActiveOperationArnT&& value) { SetActiveOperationArn(std::forward<ActiveOperationArnT>(value)); return *this;}
69
71
76 inline const BrokerNodeGroupInfo& GetBrokerNodeGroupInfo() const { return m_brokerNodeGroupInfo; }
77 inline bool BrokerNodeGroupInfoHasBeenSet() const { return m_brokerNodeGroupInfoHasBeenSet; }
78 template<typename BrokerNodeGroupInfoT = BrokerNodeGroupInfo>
79 void SetBrokerNodeGroupInfo(BrokerNodeGroupInfoT&& value) { m_brokerNodeGroupInfoHasBeenSet = true; m_brokerNodeGroupInfo = std::forward<BrokerNodeGroupInfoT>(value); }
80 template<typename BrokerNodeGroupInfoT = BrokerNodeGroupInfo>
81 ClusterInfo& WithBrokerNodeGroupInfo(BrokerNodeGroupInfoT&& value) { SetBrokerNodeGroupInfo(std::forward<BrokerNodeGroupInfoT>(value)); return *this;}
83
85
90 inline const ClientAuthentication& GetClientAuthentication() const { return m_clientAuthentication; }
91 inline bool ClientAuthenticationHasBeenSet() const { return m_clientAuthenticationHasBeenSet; }
92 template<typename ClientAuthenticationT = ClientAuthentication>
93 void SetClientAuthentication(ClientAuthenticationT&& value) { m_clientAuthenticationHasBeenSet = true; m_clientAuthentication = std::forward<ClientAuthenticationT>(value); }
94 template<typename ClientAuthenticationT = ClientAuthentication>
95 ClusterInfo& WithClientAuthentication(ClientAuthenticationT&& value) { SetClientAuthentication(std::forward<ClientAuthenticationT>(value)); return *this;}
97
99
105 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
106 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
107 template<typename ClusterArnT = Aws::String>
108 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
109 template<typename ClusterArnT = Aws::String>
110 ClusterInfo& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
112
114
119 inline const Aws::String& GetClusterName() const { return m_clusterName; }
120 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
121 template<typename ClusterNameT = Aws::String>
122 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
123 template<typename ClusterNameT = Aws::String>
124 ClusterInfo& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
126
128
133 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
134 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
135 template<typename CreationTimeT = Aws::Utils::DateTime>
136 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
137 template<typename CreationTimeT = Aws::Utils::DateTime>
138 ClusterInfo& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
140
142
148 inline const BrokerSoftwareInfo& GetCurrentBrokerSoftwareInfo() const { return m_currentBrokerSoftwareInfo; }
149 inline bool CurrentBrokerSoftwareInfoHasBeenSet() const { return m_currentBrokerSoftwareInfoHasBeenSet; }
150 template<typename CurrentBrokerSoftwareInfoT = BrokerSoftwareInfo>
151 void SetCurrentBrokerSoftwareInfo(CurrentBrokerSoftwareInfoT&& value) { m_currentBrokerSoftwareInfoHasBeenSet = true; m_currentBrokerSoftwareInfo = std::forward<CurrentBrokerSoftwareInfoT>(value); }
152 template<typename CurrentBrokerSoftwareInfoT = BrokerSoftwareInfo>
153 ClusterInfo& WithCurrentBrokerSoftwareInfo(CurrentBrokerSoftwareInfoT&& value) { SetCurrentBrokerSoftwareInfo(std::forward<CurrentBrokerSoftwareInfoT>(value)); return *this;}
155
157
162 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
163 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
164 template<typename CurrentVersionT = Aws::String>
165 void SetCurrentVersion(CurrentVersionT&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::forward<CurrentVersionT>(value); }
166 template<typename CurrentVersionT = Aws::String>
167 ClusterInfo& WithCurrentVersion(CurrentVersionT&& value) { SetCurrentVersion(std::forward<CurrentVersionT>(value)); return *this;}
169
171
176 inline const EncryptionInfo& GetEncryptionInfo() const { return m_encryptionInfo; }
177 inline bool EncryptionInfoHasBeenSet() const { return m_encryptionInfoHasBeenSet; }
178 template<typename EncryptionInfoT = EncryptionInfo>
179 void SetEncryptionInfo(EncryptionInfoT&& value) { m_encryptionInfoHasBeenSet = true; m_encryptionInfo = std::forward<EncryptionInfoT>(value); }
180 template<typename EncryptionInfoT = EncryptionInfo>
181 ClusterInfo& WithEncryptionInfo(EncryptionInfoT&& value) { SetEncryptionInfo(std::forward<EncryptionInfoT>(value)); return *this;}
183
185
195 inline EnhancedMonitoring GetEnhancedMonitoring() const { return m_enhancedMonitoring; }
196 inline bool EnhancedMonitoringHasBeenSet() const { return m_enhancedMonitoringHasBeenSet; }
197 inline void SetEnhancedMonitoring(EnhancedMonitoring value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring = value; }
200
202
207 inline const OpenMonitoring& GetOpenMonitoring() const { return m_openMonitoring; }
208 inline bool OpenMonitoringHasBeenSet() const { return m_openMonitoringHasBeenSet; }
209 template<typename OpenMonitoringT = OpenMonitoring>
210 void SetOpenMonitoring(OpenMonitoringT&& value) { m_openMonitoringHasBeenSet = true; m_openMonitoring = std::forward<OpenMonitoringT>(value); }
211 template<typename OpenMonitoringT = OpenMonitoring>
212 ClusterInfo& WithOpenMonitoring(OpenMonitoringT&& value) { SetOpenMonitoring(std::forward<OpenMonitoringT>(value)); return *this;}
214
216
217 inline const LoggingInfo& GetLoggingInfo() const { return m_loggingInfo; }
218 inline bool LoggingInfoHasBeenSet() const { return m_loggingInfoHasBeenSet; }
219 template<typename LoggingInfoT = LoggingInfo>
220 void SetLoggingInfo(LoggingInfoT&& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = std::forward<LoggingInfoT>(value); }
221 template<typename LoggingInfoT = LoggingInfo>
222 ClusterInfo& WithLoggingInfo(LoggingInfoT&& value) { SetLoggingInfo(std::forward<LoggingInfoT>(value)); return *this;}
224
226
231 inline int GetNumberOfBrokerNodes() const { return m_numberOfBrokerNodes; }
232 inline bool NumberOfBrokerNodesHasBeenSet() const { return m_numberOfBrokerNodesHasBeenSet; }
233 inline void SetNumberOfBrokerNodes(int value) { m_numberOfBrokerNodesHasBeenSet = true; m_numberOfBrokerNodes = value; }
234 inline ClusterInfo& WithNumberOfBrokerNodes(int value) { SetNumberOfBrokerNodes(value); return *this;}
236
238
245 inline ClusterState GetState() const { return m_state; }
246 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
247 inline void SetState(ClusterState value) { m_stateHasBeenSet = true; m_state = value; }
248 inline ClusterInfo& WithState(ClusterState value) { SetState(value); return *this;}
250
252
253 inline const StateInfo& GetStateInfo() const { return m_stateInfo; }
254 inline bool StateInfoHasBeenSet() const { return m_stateInfoHasBeenSet; }
255 template<typename StateInfoT = StateInfo>
256 void SetStateInfo(StateInfoT&& value) { m_stateInfoHasBeenSet = true; m_stateInfo = std::forward<StateInfoT>(value); }
257 template<typename StateInfoT = StateInfo>
258 ClusterInfo& WithStateInfo(StateInfoT&& value) { SetStateInfo(std::forward<StateInfoT>(value)); return *this;}
260
262
267 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
268 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
269 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
270 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
271 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
272 ClusterInfo& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
273 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
274 ClusterInfo& AddTags(TagsKeyT&& key, TagsValueT&& value) {
275 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
276 }
278
280
286 inline const Aws::String& GetZookeeperConnectString() const { return m_zookeeperConnectString; }
287 inline bool ZookeeperConnectStringHasBeenSet() const { return m_zookeeperConnectStringHasBeenSet; }
288 template<typename ZookeeperConnectStringT = Aws::String>
289 void SetZookeeperConnectString(ZookeeperConnectStringT&& value) { m_zookeeperConnectStringHasBeenSet = true; m_zookeeperConnectString = std::forward<ZookeeperConnectStringT>(value); }
290 template<typename ZookeeperConnectStringT = Aws::String>
291 ClusterInfo& WithZookeeperConnectString(ZookeeperConnectStringT&& value) { SetZookeeperConnectString(std::forward<ZookeeperConnectStringT>(value)); return *this;}
293
295
301 inline const Aws::String& GetZookeeperConnectStringTls() const { return m_zookeeperConnectStringTls; }
302 inline bool ZookeeperConnectStringTlsHasBeenSet() const { return m_zookeeperConnectStringTlsHasBeenSet; }
303 template<typename ZookeeperConnectStringTlsT = Aws::String>
304 void SetZookeeperConnectStringTls(ZookeeperConnectStringTlsT&& value) { m_zookeeperConnectStringTlsHasBeenSet = true; m_zookeeperConnectStringTls = std::forward<ZookeeperConnectStringTlsT>(value); }
305 template<typename ZookeeperConnectStringTlsT = Aws::String>
306 ClusterInfo& WithZookeeperConnectStringTls(ZookeeperConnectStringTlsT&& value) { SetZookeeperConnectStringTls(std::forward<ZookeeperConnectStringTlsT>(value)); return *this;}
308
310
316 inline StorageMode GetStorageMode() const { return m_storageMode; }
317 inline bool StorageModeHasBeenSet() const { return m_storageModeHasBeenSet; }
318 inline void SetStorageMode(StorageMode value) { m_storageModeHasBeenSet = true; m_storageMode = value; }
319 inline ClusterInfo& WithStorageMode(StorageMode value) { SetStorageMode(value); return *this;}
321
323
329 inline CustomerActionStatus GetCustomerActionStatus() const { return m_customerActionStatus; }
330 inline bool CustomerActionStatusHasBeenSet() const { return m_customerActionStatusHasBeenSet; }
331 inline void SetCustomerActionStatus(CustomerActionStatus value) { m_customerActionStatusHasBeenSet = true; m_customerActionStatus = value; }
334 private:
335
336 Aws::String m_activeOperationArn;
337 bool m_activeOperationArnHasBeenSet = false;
338
339 BrokerNodeGroupInfo m_brokerNodeGroupInfo;
340 bool m_brokerNodeGroupInfoHasBeenSet = false;
341
342 ClientAuthentication m_clientAuthentication;
343 bool m_clientAuthenticationHasBeenSet = false;
344
345 Aws::String m_clusterArn;
346 bool m_clusterArnHasBeenSet = false;
347
348 Aws::String m_clusterName;
349 bool m_clusterNameHasBeenSet = false;
350
351 Aws::Utils::DateTime m_creationTime{};
352 bool m_creationTimeHasBeenSet = false;
353
354 BrokerSoftwareInfo m_currentBrokerSoftwareInfo;
355 bool m_currentBrokerSoftwareInfoHasBeenSet = false;
356
357 Aws::String m_currentVersion;
358 bool m_currentVersionHasBeenSet = false;
359
360 EncryptionInfo m_encryptionInfo;
361 bool m_encryptionInfoHasBeenSet = false;
362
364 bool m_enhancedMonitoringHasBeenSet = false;
365
366 OpenMonitoring m_openMonitoring;
367 bool m_openMonitoringHasBeenSet = false;
368
369 LoggingInfo m_loggingInfo;
370 bool m_loggingInfoHasBeenSet = false;
371
372 int m_numberOfBrokerNodes{0};
373 bool m_numberOfBrokerNodesHasBeenSet = false;
374
376 bool m_stateHasBeenSet = false;
377
378 StateInfo m_stateInfo;
379 bool m_stateInfoHasBeenSet = false;
380
382 bool m_tagsHasBeenSet = false;
383
384 Aws::String m_zookeeperConnectString;
385 bool m_zookeeperConnectStringHasBeenSet = false;
386
387 Aws::String m_zookeeperConnectStringTls;
388 bool m_zookeeperConnectStringTlsHasBeenSet = false;
389
390 StorageMode m_storageMode{StorageMode::NOT_SET};
391 bool m_storageModeHasBeenSet = false;
392
394 bool m_customerActionStatusHasBeenSet = false;
395 };
396
397} // namespace Model
398} // namespace Kafka
399} // 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)
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:79
void SetEncryptionInfo(EncryptionInfoT &&value)
ClusterInfo & WithNumberOfBrokerNodes(int value)
bool EnhancedMonitoringHasBeenSet() const
ClusterInfo & WithClientAuthentication(ClientAuthenticationT &&value)
Definition ClusterInfo.h:95
ClusterInfo & WithClusterArn(ClusterArnT &&value)
StorageMode GetStorageMode() const
ClusterInfo & WithEncryptionInfo(EncryptionInfoT &&value)
bool BrokerNodeGroupInfoHasBeenSet() const
Definition ClusterInfo.h:77
ClusterInfo & WithActiveOperationArn(ActiveOperationArnT &&value)
Definition ClusterInfo.h:67
const Aws::String & GetCurrentVersion() const
void SetCurrentBrokerSoftwareInfo(CurrentBrokerSoftwareInfoT &&value)
bool ActiveOperationArnHasBeenSet() const
Definition ClusterInfo.h:63
ClusterInfo & WithCurrentVersion(CurrentVersionT &&value)
const OpenMonitoring & GetOpenMonitoring() const
ClusterState GetState() const
AWS_KAFKA_API ClusterInfo(Aws::Utils::Json::JsonView jsonValue)
void SetClientAuthentication(ClientAuthenticationT &&value)
Definition ClusterInfo.h:93
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:81
bool ClientAuthenticationHasBeenSet() const
Definition ClusterInfo.h:91
const Aws::String & GetClusterArn() const
ClusterInfo & WithClusterName(ClusterNameT &&value)
void SetLoggingInfo(LoggingInfoT &&value)
void SetActiveOperationArn(ActiveOperationArnT &&value)
Definition ClusterInfo.h:65
void SetState(ClusterState value)
const BrokerNodeGroupInfo & GetBrokerNodeGroupInfo() const
Definition ClusterInfo.h:76
ClusterInfo & WithOpenMonitoring(OpenMonitoringT &&value)
const Aws::String & GetActiveOperationArn() const
Definition ClusterInfo.h:62
void SetCustomerActionStatus(CustomerActionStatus value)
ClusterInfo & WithCurrentBrokerSoftwareInfo(CurrentBrokerSoftwareInfoT &&value)
const LoggingInfo & GetLoggingInfo() const
const ClientAuthentication & GetClientAuthentication() const
Definition ClusterInfo.h:90
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