AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kafka/KafkaRequest.h>
10#include <aws/kafka/Kafka_EXPORTS.h>
11#include <aws/kafka/model/BrokerNodeGroupInfo.h>
12#include <aws/kafka/model/ClientAuthentication.h>
13#include <aws/kafka/model/ConfigurationInfo.h>
14#include <aws/kafka/model/EncryptionInfo.h>
15#include <aws/kafka/model/EnhancedMonitoring.h>
16#include <aws/kafka/model/LoggingInfo.h>
17#include <aws/kafka/model/OpenMonitoringInfo.h>
18#include <aws/kafka/model/Rebalancing.h>
19#include <aws/kafka/model/StorageMode.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Kafka {
25namespace Model {
26
30 public:
31 AWS_KAFKA_API CreateClusterRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; }
38
39 AWS_KAFKA_API Aws::String SerializePayload() const override;
40
42
47 inline const BrokerNodeGroupInfo& GetBrokerNodeGroupInfo() const { return m_brokerNodeGroupInfo; }
48 inline bool BrokerNodeGroupInfoHasBeenSet() const { return m_brokerNodeGroupInfoHasBeenSet; }
49 template <typename BrokerNodeGroupInfoT = BrokerNodeGroupInfo>
50 void SetBrokerNodeGroupInfo(BrokerNodeGroupInfoT&& value) {
51 m_brokerNodeGroupInfoHasBeenSet = true;
52 m_brokerNodeGroupInfo = std::forward<BrokerNodeGroupInfoT>(value);
53 }
54 template <typename BrokerNodeGroupInfoT = BrokerNodeGroupInfo>
55 CreateClusterRequest& WithBrokerNodeGroupInfo(BrokerNodeGroupInfoT&& value) {
56 SetBrokerNodeGroupInfo(std::forward<BrokerNodeGroupInfoT>(value));
57 return *this;
58 }
60
62
69 inline const Rebalancing& GetRebalancing() const { return m_rebalancing; }
70 inline bool RebalancingHasBeenSet() const { return m_rebalancingHasBeenSet; }
71 template <typename RebalancingT = Rebalancing>
72 void SetRebalancing(RebalancingT&& value) {
73 m_rebalancingHasBeenSet = true;
74 m_rebalancing = std::forward<RebalancingT>(value);
75 }
76 template <typename RebalancingT = Rebalancing>
77 CreateClusterRequest& WithRebalancing(RebalancingT&& value) {
78 SetRebalancing(std::forward<RebalancingT>(value));
79 return *this;
80 }
82
84
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) {
94 m_clientAuthenticationHasBeenSet = true;
95 m_clientAuthentication = std::forward<ClientAuthenticationT>(value);
96 }
97 template <typename ClientAuthenticationT = ClientAuthentication>
98 CreateClusterRequest& WithClientAuthentication(ClientAuthenticationT&& value) {
99 SetClientAuthentication(std::forward<ClientAuthenticationT>(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 CreateClusterRequest& WithClusterName(ClusterNameT&& value) {
119 SetClusterName(std::forward<ClusterNameT>(value));
120 return *this;
121 }
123
125
131 inline const ConfigurationInfo& GetConfigurationInfo() const { return m_configurationInfo; }
132 inline bool ConfigurationInfoHasBeenSet() const { return m_configurationInfoHasBeenSet; }
133 template <typename ConfigurationInfoT = ConfigurationInfo>
134 void SetConfigurationInfo(ConfigurationInfoT&& value) {
135 m_configurationInfoHasBeenSet = true;
136 m_configurationInfo = std::forward<ConfigurationInfoT>(value);
137 }
138 template <typename ConfigurationInfoT = ConfigurationInfo>
139 CreateClusterRequest& WithConfigurationInfo(ConfigurationInfoT&& value) {
140 SetConfigurationInfo(std::forward<ConfigurationInfoT>(value));
141 return *this;
142 }
144
146
151 inline const EncryptionInfo& GetEncryptionInfo() const { return m_encryptionInfo; }
152 inline bool EncryptionInfoHasBeenSet() const { return m_encryptionInfoHasBeenSet; }
153 template <typename EncryptionInfoT = EncryptionInfo>
154 void SetEncryptionInfo(EncryptionInfoT&& value) {
155 m_encryptionInfoHasBeenSet = true;
156 m_encryptionInfo = std::forward<EncryptionInfoT>(value);
157 }
158 template <typename EncryptionInfoT = EncryptionInfo>
159 CreateClusterRequest& WithEncryptionInfo(EncryptionInfoT&& value) {
160 SetEncryptionInfo(std::forward<EncryptionInfoT>(value));
161 return *this;
162 }
164
166
173 inline EnhancedMonitoring GetEnhancedMonitoring() const { return m_enhancedMonitoring; }
174 inline bool EnhancedMonitoringHasBeenSet() const { return m_enhancedMonitoringHasBeenSet; }
176 m_enhancedMonitoringHasBeenSet = true;
177 m_enhancedMonitoring = value;
178 }
181 return *this;
182 }
184
186
191 inline const OpenMonitoringInfo& GetOpenMonitoring() const { return m_openMonitoring; }
192 inline bool OpenMonitoringHasBeenSet() const { return m_openMonitoringHasBeenSet; }
193 template <typename OpenMonitoringT = OpenMonitoringInfo>
194 void SetOpenMonitoring(OpenMonitoringT&& value) {
195 m_openMonitoringHasBeenSet = true;
196 m_openMonitoring = std::forward<OpenMonitoringT>(value);
197 }
198 template <typename OpenMonitoringT = OpenMonitoringInfo>
199 CreateClusterRequest& WithOpenMonitoring(OpenMonitoringT&& value) {
200 SetOpenMonitoring(std::forward<OpenMonitoringT>(value));
201 return *this;
202 }
204
206
211 inline const Aws::String& GetKafkaVersion() const { return m_kafkaVersion; }
212 inline bool KafkaVersionHasBeenSet() const { return m_kafkaVersionHasBeenSet; }
213 template <typename KafkaVersionT = Aws::String>
214 void SetKafkaVersion(KafkaVersionT&& value) {
215 m_kafkaVersionHasBeenSet = true;
216 m_kafkaVersion = std::forward<KafkaVersionT>(value);
217 }
218 template <typename KafkaVersionT = Aws::String>
219 CreateClusterRequest& WithKafkaVersion(KafkaVersionT&& value) {
220 SetKafkaVersion(std::forward<KafkaVersionT>(value));
221 return *this;
222 }
224
226
227 inline const LoggingInfo& GetLoggingInfo() const { return m_loggingInfo; }
228 inline bool LoggingInfoHasBeenSet() const { return m_loggingInfoHasBeenSet; }
229 template <typename LoggingInfoT = LoggingInfo>
230 void SetLoggingInfo(LoggingInfoT&& value) {
231 m_loggingInfoHasBeenSet = true;
232 m_loggingInfo = std::forward<LoggingInfoT>(value);
233 }
234 template <typename LoggingInfoT = LoggingInfo>
235 CreateClusterRequest& WithLoggingInfo(LoggingInfoT&& value) {
236 SetLoggingInfo(std::forward<LoggingInfoT>(value));
237 return *this;
238 }
240
242
247 inline int GetNumberOfBrokerNodes() const { return m_numberOfBrokerNodes; }
248 inline bool NumberOfBrokerNodesHasBeenSet() const { return m_numberOfBrokerNodesHasBeenSet; }
249 inline void SetNumberOfBrokerNodes(int value) {
250 m_numberOfBrokerNodesHasBeenSet = true;
251 m_numberOfBrokerNodes = value;
252 }
255 return *this;
256 }
258
260
265 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
266 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
267 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
268 void SetTags(TagsT&& value) {
269 m_tagsHasBeenSet = true;
270 m_tags = std::forward<TagsT>(value);
271 }
272 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
274 SetTags(std::forward<TagsT>(value));
275 return *this;
276 }
277 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
278 CreateClusterRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
279 m_tagsHasBeenSet = true;
280 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
281 return *this;
282 }
284
286
292 inline StorageMode GetStorageMode() const { return m_storageMode; }
293 inline bool StorageModeHasBeenSet() const { return m_storageModeHasBeenSet; }
294 inline void SetStorageMode(StorageMode value) {
295 m_storageModeHasBeenSet = true;
296 m_storageMode = value;
297 }
299 SetStorageMode(value);
300 return *this;
301 }
303 private:
304 BrokerNodeGroupInfo m_brokerNodeGroupInfo;
305
306 Rebalancing m_rebalancing;
307
308 ClientAuthentication m_clientAuthentication;
309
310 Aws::String m_clusterName;
311
312 ConfigurationInfo m_configurationInfo;
313
314 EncryptionInfo m_encryptionInfo;
315
317
318 OpenMonitoringInfo m_openMonitoring;
319
320 Aws::String m_kafkaVersion;
321
322 LoggingInfo m_loggingInfo;
323
324 int m_numberOfBrokerNodes{0};
325
327
328 StorageMode m_storageMode{StorageMode::NOT_SET};
329 bool m_brokerNodeGroupInfoHasBeenSet = false;
330 bool m_rebalancingHasBeenSet = false;
331 bool m_clientAuthenticationHasBeenSet = false;
332 bool m_clusterNameHasBeenSet = false;
333 bool m_configurationInfoHasBeenSet = false;
334 bool m_encryptionInfoHasBeenSet = false;
335 bool m_enhancedMonitoringHasBeenSet = false;
336 bool m_openMonitoringHasBeenSet = false;
337 bool m_kafkaVersionHasBeenSet = false;
338 bool m_loggingInfoHasBeenSet = false;
339 bool m_numberOfBrokerNodesHasBeenSet = false;
340 bool m_tagsHasBeenSet = false;
341 bool m_storageModeHasBeenSet = false;
342};
343
344} // namespace Model
345} // namespace Kafka
346} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateClusterRequest & WithEnhancedMonitoring(EnhancedMonitoring value)
void SetEnhancedMonitoring(EnhancedMonitoring value)
CreateClusterRequest & WithNumberOfBrokerNodes(int value)
CreateClusterRequest & WithStorageMode(StorageMode value)
const EncryptionInfo & GetEncryptionInfo() const
void SetClientAuthentication(ClientAuthenticationT &&value)
CreateClusterRequest & WithLoggingInfo(LoggingInfoT &&value)
CreateClusterRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const ClientAuthentication & GetClientAuthentication() const
void SetOpenMonitoring(OpenMonitoringT &&value)
CreateClusterRequest & WithOpenMonitoring(OpenMonitoringT &&value)
CreateClusterRequest & WithEncryptionInfo(EncryptionInfoT &&value)
void SetBrokerNodeGroupInfo(BrokerNodeGroupInfoT &&value)
EnhancedMonitoring GetEnhancedMonitoring() const
const OpenMonitoringInfo & GetOpenMonitoring() const
const ConfigurationInfo & GetConfigurationInfo() const
void SetConfigurationInfo(ConfigurationInfoT &&value)
void SetEncryptionInfo(EncryptionInfoT &&value)
CreateClusterRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateClusterRequest & WithRebalancing(RebalancingT &&value)
AWS_KAFKA_API CreateClusterRequest()=default
const BrokerNodeGroupInfo & GetBrokerNodeGroupInfo() const
AWS_KAFKA_API Aws::String SerializePayload() const override
CreateClusterRequest & WithBrokerNodeGroupInfo(BrokerNodeGroupInfoT &&value)
CreateClusterRequest & WithClientAuthentication(ClientAuthenticationT &&value)
CreateClusterRequest & WithClusterName(ClusterNameT &&value)
CreateClusterRequest & WithConfigurationInfo(ConfigurationInfoT &&value)
CreateClusterRequest & WithKafkaVersion(KafkaVersionT &&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