AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
MutableClusterInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10#include <aws/kafka/model/BrokerCountUpdateInfo.h>
11#include <aws/kafka/model/BrokerEBSVolumeInfo.h>
12#include <aws/kafka/model/ClientAuthentication.h>
13#include <aws/kafka/model/ConfigurationInfo.h>
14#include <aws/kafka/model/ConnectivityInfo.h>
15#include <aws/kafka/model/EncryptionInfo.h>
16#include <aws/kafka/model/EnhancedMonitoring.h>
17#include <aws/kafka/model/LoggingInfo.h>
18#include <aws/kafka/model/OpenMonitoring.h>
19#include <aws/kafka/model/Rebalancing.h>
20#include <aws/kafka/model/StorageMode.h>
21#include <aws/kafka/model/ZookeeperAccess.h>
22
23#include <utility>
24
25namespace Aws {
26namespace Utils {
27namespace Json {
28class JsonValue;
29class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace Kafka {
33namespace Model {
34
44 public:
45 AWS_KAFKA_API MutableClusterInfo() = default;
48 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
49
51
57 inline const Aws::Vector<BrokerEBSVolumeInfo>& GetBrokerEBSVolumeInfo() const { return m_brokerEBSVolumeInfo; }
58 inline bool BrokerEBSVolumeInfoHasBeenSet() const { return m_brokerEBSVolumeInfoHasBeenSet; }
59 template <typename BrokerEBSVolumeInfoT = Aws::Vector<BrokerEBSVolumeInfo>>
60 void SetBrokerEBSVolumeInfo(BrokerEBSVolumeInfoT&& value) {
61 m_brokerEBSVolumeInfoHasBeenSet = true;
62 m_brokerEBSVolumeInfo = std::forward<BrokerEBSVolumeInfoT>(value);
63 }
64 template <typename BrokerEBSVolumeInfoT = Aws::Vector<BrokerEBSVolumeInfo>>
65 MutableClusterInfo& WithBrokerEBSVolumeInfo(BrokerEBSVolumeInfoT&& value) {
66 SetBrokerEBSVolumeInfo(std::forward<BrokerEBSVolumeInfoT>(value));
67 return *this;
68 }
69 template <typename BrokerEBSVolumeInfoT = BrokerEBSVolumeInfo>
70 MutableClusterInfo& AddBrokerEBSVolumeInfo(BrokerEBSVolumeInfoT&& value) {
71 m_brokerEBSVolumeInfoHasBeenSet = true;
72 m_brokerEBSVolumeInfo.emplace_back(std::forward<BrokerEBSVolumeInfoT>(value));
73 return *this;
74 }
76
78
84 inline const ConfigurationInfo& GetConfigurationInfo() const { return m_configurationInfo; }
85 inline bool ConfigurationInfoHasBeenSet() const { return m_configurationInfoHasBeenSet; }
86 template <typename ConfigurationInfoT = ConfigurationInfo>
87 void SetConfigurationInfo(ConfigurationInfoT&& value) {
88 m_configurationInfoHasBeenSet = true;
89 m_configurationInfo = std::forward<ConfigurationInfoT>(value);
90 }
91 template <typename ConfigurationInfoT = ConfigurationInfo>
92 MutableClusterInfo& WithConfigurationInfo(ConfigurationInfoT&& value) {
93 SetConfigurationInfo(std::forward<ConfigurationInfoT>(value));
94 return *this;
95 }
97
99
104 inline int GetNumberOfBrokerNodes() const { return m_numberOfBrokerNodes; }
105 inline bool NumberOfBrokerNodesHasBeenSet() const { return m_numberOfBrokerNodesHasBeenSet; }
106 inline void SetNumberOfBrokerNodes(int value) {
107 m_numberOfBrokerNodesHasBeenSet = true;
108 m_numberOfBrokerNodes = value;
109 }
112 return *this;
113 }
115
117
123 inline EnhancedMonitoring GetEnhancedMonitoring() const { return m_enhancedMonitoring; }
124 inline bool EnhancedMonitoringHasBeenSet() const { return m_enhancedMonitoringHasBeenSet; }
126 m_enhancedMonitoringHasBeenSet = true;
127 m_enhancedMonitoring = value;
128 }
131 return *this;
132 }
134
136
141 inline const OpenMonitoring& GetOpenMonitoring() const { return m_openMonitoring; }
142 inline bool OpenMonitoringHasBeenSet() const { return m_openMonitoringHasBeenSet; }
143 template <typename OpenMonitoringT = OpenMonitoring>
144 void SetOpenMonitoring(OpenMonitoringT&& value) {
145 m_openMonitoringHasBeenSet = true;
146 m_openMonitoring = std::forward<OpenMonitoringT>(value);
147 }
148 template <typename OpenMonitoringT = OpenMonitoring>
149 MutableClusterInfo& WithOpenMonitoring(OpenMonitoringT&& value) {
150 SetOpenMonitoring(std::forward<OpenMonitoringT>(value));
151 return *this;
152 }
154
156
161 inline const ZookeeperAccess& GetZookeeperAccess() const { return m_zookeeperAccess; }
162 inline bool ZookeeperAccessHasBeenSet() const { return m_zookeeperAccessHasBeenSet; }
163 template <typename ZookeeperAccessT = ZookeeperAccess>
164 void SetZookeeperAccess(ZookeeperAccessT&& value) {
165 m_zookeeperAccessHasBeenSet = true;
166 m_zookeeperAccess = std::forward<ZookeeperAccessT>(value);
167 }
168 template <typename ZookeeperAccessT = ZookeeperAccess>
169 MutableClusterInfo& WithZookeeperAccess(ZookeeperAccessT&& value) {
170 SetZookeeperAccess(std::forward<ZookeeperAccessT>(value));
171 return *this;
172 }
174
176
181 inline const Aws::String& GetKafkaVersion() const { return m_kafkaVersion; }
182 inline bool KafkaVersionHasBeenSet() const { return m_kafkaVersionHasBeenSet; }
183 template <typename KafkaVersionT = Aws::String>
184 void SetKafkaVersion(KafkaVersionT&& value) {
185 m_kafkaVersionHasBeenSet = true;
186 m_kafkaVersion = std::forward<KafkaVersionT>(value);
187 }
188 template <typename KafkaVersionT = Aws::String>
189 MutableClusterInfo& WithKafkaVersion(KafkaVersionT&& value) {
190 SetKafkaVersion(std::forward<KafkaVersionT>(value));
191 return *this;
192 }
194
196
203 inline const LoggingInfo& GetLoggingInfo() const { return m_loggingInfo; }
204 inline bool LoggingInfoHasBeenSet() const { return m_loggingInfoHasBeenSet; }
205 template <typename LoggingInfoT = LoggingInfo>
206 void SetLoggingInfo(LoggingInfoT&& value) {
207 m_loggingInfoHasBeenSet = true;
208 m_loggingInfo = std::forward<LoggingInfoT>(value);
209 }
210 template <typename LoggingInfoT = LoggingInfo>
211 MutableClusterInfo& WithLoggingInfo(LoggingInfoT&& value) {
212 SetLoggingInfo(std::forward<LoggingInfoT>(value));
213 return *this;
214 }
216
218
223 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
224 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
225 template <typename InstanceTypeT = Aws::String>
226 void SetInstanceType(InstanceTypeT&& value) {
227 m_instanceTypeHasBeenSet = true;
228 m_instanceType = std::forward<InstanceTypeT>(value);
229 }
230 template <typename InstanceTypeT = Aws::String>
231 MutableClusterInfo& WithInstanceType(InstanceTypeT&& value) {
232 SetInstanceType(std::forward<InstanceTypeT>(value));
233 return *this;
234 }
236
238
243 inline const ClientAuthentication& GetClientAuthentication() const { return m_clientAuthentication; }
244 inline bool ClientAuthenticationHasBeenSet() const { return m_clientAuthenticationHasBeenSet; }
245 template <typename ClientAuthenticationT = ClientAuthentication>
246 void SetClientAuthentication(ClientAuthenticationT&& value) {
247 m_clientAuthenticationHasBeenSet = true;
248 m_clientAuthentication = std::forward<ClientAuthenticationT>(value);
249 }
250 template <typename ClientAuthenticationT = ClientAuthentication>
251 MutableClusterInfo& WithClientAuthentication(ClientAuthenticationT&& value) {
252 SetClientAuthentication(std::forward<ClientAuthenticationT>(value));
253 return *this;
254 }
256
258
263 inline const EncryptionInfo& GetEncryptionInfo() const { return m_encryptionInfo; }
264 inline bool EncryptionInfoHasBeenSet() const { return m_encryptionInfoHasBeenSet; }
265 template <typename EncryptionInfoT = EncryptionInfo>
266 void SetEncryptionInfo(EncryptionInfoT&& value) {
267 m_encryptionInfoHasBeenSet = true;
268 m_encryptionInfo = std::forward<EncryptionInfoT>(value);
269 }
270 template <typename EncryptionInfoT = EncryptionInfo>
271 MutableClusterInfo& WithEncryptionInfo(EncryptionInfoT&& value) {
272 SetEncryptionInfo(std::forward<EncryptionInfoT>(value));
273 return *this;
274 }
276
278
283 inline const ConnectivityInfo& GetConnectivityInfo() const { return m_connectivityInfo; }
284 inline bool ConnectivityInfoHasBeenSet() const { return m_connectivityInfoHasBeenSet; }
285 template <typename ConnectivityInfoT = ConnectivityInfo>
286 void SetConnectivityInfo(ConnectivityInfoT&& value) {
287 m_connectivityInfoHasBeenSet = true;
288 m_connectivityInfo = std::forward<ConnectivityInfoT>(value);
289 }
290 template <typename ConnectivityInfoT = ConnectivityInfo>
291 MutableClusterInfo& WithConnectivityInfo(ConnectivityInfoT&& value) {
292 SetConnectivityInfo(std::forward<ConnectivityInfoT>(value));
293 return *this;
294 }
296
298
304 inline StorageMode GetStorageMode() const { return m_storageMode; }
305 inline bool StorageModeHasBeenSet() const { return m_storageModeHasBeenSet; }
306 inline void SetStorageMode(StorageMode value) {
307 m_storageModeHasBeenSet = true;
308 m_storageMode = value;
309 }
311 SetStorageMode(value);
312 return *this;
313 }
315
317
323 inline const BrokerCountUpdateInfo& GetBrokerCountUpdateInfo() const { return m_brokerCountUpdateInfo; }
324 inline bool BrokerCountUpdateInfoHasBeenSet() const { return m_brokerCountUpdateInfoHasBeenSet; }
325 template <typename BrokerCountUpdateInfoT = BrokerCountUpdateInfo>
326 void SetBrokerCountUpdateInfo(BrokerCountUpdateInfoT&& value) {
327 m_brokerCountUpdateInfoHasBeenSet = true;
328 m_brokerCountUpdateInfo = std::forward<BrokerCountUpdateInfoT>(value);
329 }
330 template <typename BrokerCountUpdateInfoT = BrokerCountUpdateInfo>
331 MutableClusterInfo& WithBrokerCountUpdateInfo(BrokerCountUpdateInfoT&& value) {
332 SetBrokerCountUpdateInfo(std::forward<BrokerCountUpdateInfoT>(value));
333 return *this;
334 }
336
338
344 inline const Rebalancing& GetRebalancing() const { return m_rebalancing; }
345 inline bool RebalancingHasBeenSet() const { return m_rebalancingHasBeenSet; }
346 template <typename RebalancingT = Rebalancing>
347 void SetRebalancing(RebalancingT&& value) {
348 m_rebalancingHasBeenSet = true;
349 m_rebalancing = std::forward<RebalancingT>(value);
350 }
351 template <typename RebalancingT = Rebalancing>
352 MutableClusterInfo& WithRebalancing(RebalancingT&& value) {
353 SetRebalancing(std::forward<RebalancingT>(value));
354 return *this;
355 }
357 private:
358 Aws::Vector<BrokerEBSVolumeInfo> m_brokerEBSVolumeInfo;
359
360 ConfigurationInfo m_configurationInfo;
361
362 int m_numberOfBrokerNodes{0};
363
365
366 OpenMonitoring m_openMonitoring;
367
368 ZookeeperAccess m_zookeeperAccess;
369
370 Aws::String m_kafkaVersion;
371
372 LoggingInfo m_loggingInfo;
373
374 Aws::String m_instanceType;
375
376 ClientAuthentication m_clientAuthentication;
377
378 EncryptionInfo m_encryptionInfo;
379
380 ConnectivityInfo m_connectivityInfo;
381
382 StorageMode m_storageMode{StorageMode::NOT_SET};
383
384 BrokerCountUpdateInfo m_brokerCountUpdateInfo;
385
386 Rebalancing m_rebalancing;
387 bool m_brokerEBSVolumeInfoHasBeenSet = false;
388 bool m_configurationInfoHasBeenSet = false;
389 bool m_numberOfBrokerNodesHasBeenSet = false;
390 bool m_enhancedMonitoringHasBeenSet = false;
391 bool m_openMonitoringHasBeenSet = false;
392 bool m_zookeeperAccessHasBeenSet = false;
393 bool m_kafkaVersionHasBeenSet = false;
394 bool m_loggingInfoHasBeenSet = false;
395 bool m_instanceTypeHasBeenSet = false;
396 bool m_clientAuthenticationHasBeenSet = false;
397 bool m_encryptionInfoHasBeenSet = false;
398 bool m_connectivityInfoHasBeenSet = false;
399 bool m_storageModeHasBeenSet = false;
400 bool m_brokerCountUpdateInfoHasBeenSet = false;
401 bool m_rebalancingHasBeenSet = false;
402};
403
404} // namespace Model
405} // namespace Kafka
406} // namespace Aws
const ConnectivityInfo & GetConnectivityInfo() const
const LoggingInfo & GetLoggingInfo() const
void SetBrokerEBSVolumeInfo(BrokerEBSVolumeInfoT &&value)
void SetEnhancedMonitoring(EnhancedMonitoring value)
void SetBrokerCountUpdateInfo(BrokerCountUpdateInfoT &&value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
const BrokerCountUpdateInfo & GetBrokerCountUpdateInfo() const
void SetEncryptionInfo(EncryptionInfoT &&value)
void SetZookeeperAccess(ZookeeperAccessT &&value)
MutableClusterInfo & WithEncryptionInfo(EncryptionInfoT &&value)
MutableClusterInfo & WithNumberOfBrokerNodes(int value)
void SetInstanceType(InstanceTypeT &&value)
MutableClusterInfo & WithKafkaVersion(KafkaVersionT &&value)
MutableClusterInfo & WithZookeeperAccess(ZookeeperAccessT &&value)
const OpenMonitoring & GetOpenMonitoring() const
MutableClusterInfo & WithConfigurationInfo(ConfigurationInfoT &&value)
MutableClusterInfo & WithEnhancedMonitoring(EnhancedMonitoring value)
MutableClusterInfo & WithRebalancing(RebalancingT &&value)
const EncryptionInfo & GetEncryptionInfo() const
void SetClientAuthentication(ClientAuthenticationT &&value)
MutableClusterInfo & WithBrokerEBSVolumeInfo(BrokerEBSVolumeInfoT &&value)
AWS_KAFKA_API MutableClusterInfo()=default
const Rebalancing & GetRebalancing() const
const ClientAuthentication & GetClientAuthentication() const
void SetOpenMonitoring(OpenMonitoringT &&value)
const Aws::Vector< BrokerEBSVolumeInfo > & GetBrokerEBSVolumeInfo() const
const Aws::String & GetKafkaVersion() const
void SetLoggingInfo(LoggingInfoT &&value)
MutableClusterInfo & WithInstanceType(InstanceTypeT &&value)
MutableClusterInfo & AddBrokerEBSVolumeInfo(BrokerEBSVolumeInfoT &&value)
void SetKafkaVersion(KafkaVersionT &&value)
AWS_KAFKA_API MutableClusterInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInstanceType() const
MutableClusterInfo & WithStorageMode(StorageMode value)
AWS_KAFKA_API MutableClusterInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
MutableClusterInfo & WithLoggingInfo(LoggingInfoT &&value)
void SetRebalancing(RebalancingT &&value)
void SetConnectivityInfo(ConnectivityInfoT &&value)
void SetConfigurationInfo(ConfigurationInfoT &&value)
MutableClusterInfo & WithConnectivityInfo(ConnectivityInfoT &&value)
const ConfigurationInfo & GetConfigurationInfo() const
EnhancedMonitoring GetEnhancedMonitoring() const
MutableClusterInfo & WithClientAuthentication(ClientAuthenticationT &&value)
const ZookeeperAccess & GetZookeeperAccess() const
MutableClusterInfo & WithBrokerCountUpdateInfo(BrokerCountUpdateInfoT &&value)
MutableClusterInfo & WithOpenMonitoring(OpenMonitoringT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue