AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateClusterRequest.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/KafkaRequest.h>
9#include <aws/kafka/model/BrokerNodeGroupInfo.h>
10#include <aws/kafka/model/ClientAuthentication.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/kafka/model/ConfigurationInfo.h>
13#include <aws/kafka/model/EncryptionInfo.h>
14#include <aws/kafka/model/EnhancedMonitoring.h>
15#include <aws/kafka/model/OpenMonitoringInfo.h>
16#include <aws/kafka/model/LoggingInfo.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/kafka/model/StorageMode.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Kafka
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_KAFKA_API CreateClusterRequest();
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; }
40
41 AWS_KAFKA_API Aws::String SerializePayload() const override;
42
43
45
50 inline const BrokerNodeGroupInfo& GetBrokerNodeGroupInfo() const{ return m_brokerNodeGroupInfo; }
51 inline bool BrokerNodeGroupInfoHasBeenSet() const { return m_brokerNodeGroupInfoHasBeenSet; }
52 inline void SetBrokerNodeGroupInfo(const BrokerNodeGroupInfo& value) { m_brokerNodeGroupInfoHasBeenSet = true; m_brokerNodeGroupInfo = value; }
53 inline void SetBrokerNodeGroupInfo(BrokerNodeGroupInfo&& value) { m_brokerNodeGroupInfoHasBeenSet = true; m_brokerNodeGroupInfo = std::move(value); }
57
59
65 inline const ClientAuthentication& GetClientAuthentication() const{ return m_clientAuthentication; }
66 inline bool ClientAuthenticationHasBeenSet() const { return m_clientAuthenticationHasBeenSet; }
67 inline void SetClientAuthentication(const ClientAuthentication& value) { m_clientAuthenticationHasBeenSet = true; m_clientAuthentication = value; }
68 inline void SetClientAuthentication(ClientAuthentication&& value) { m_clientAuthenticationHasBeenSet = true; m_clientAuthentication = std::move(value); }
72
74
79 inline const Aws::String& GetClusterName() const{ return m_clusterName; }
80 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
81 inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
82 inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
83 inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
84 inline CreateClusterRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
85 inline CreateClusterRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
86 inline CreateClusterRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;}
88
90
96 inline const ConfigurationInfo& GetConfigurationInfo() const{ return m_configurationInfo; }
97 inline bool ConfigurationInfoHasBeenSet() const { return m_configurationInfoHasBeenSet; }
98 inline void SetConfigurationInfo(const ConfigurationInfo& value) { m_configurationInfoHasBeenSet = true; m_configurationInfo = value; }
99 inline void SetConfigurationInfo(ConfigurationInfo&& value) { m_configurationInfoHasBeenSet = true; m_configurationInfo = std::move(value); }
101 inline CreateClusterRequest& WithConfigurationInfo(ConfigurationInfo&& value) { SetConfigurationInfo(std::move(value)); return *this;}
103
105
110 inline const EncryptionInfo& GetEncryptionInfo() const{ return m_encryptionInfo; }
111 inline bool EncryptionInfoHasBeenSet() const { return m_encryptionInfoHasBeenSet; }
112 inline void SetEncryptionInfo(const EncryptionInfo& value) { m_encryptionInfoHasBeenSet = true; m_encryptionInfo = value; }
113 inline void SetEncryptionInfo(EncryptionInfo&& value) { m_encryptionInfoHasBeenSet = true; m_encryptionInfo = std::move(value); }
114 inline CreateClusterRequest& WithEncryptionInfo(const EncryptionInfo& value) { SetEncryptionInfo(value); return *this;}
115 inline CreateClusterRequest& WithEncryptionInfo(EncryptionInfo&& value) { SetEncryptionInfo(std::move(value)); return *this;}
117
119
126 inline const EnhancedMonitoring& GetEnhancedMonitoring() const{ return m_enhancedMonitoring; }
127 inline bool EnhancedMonitoringHasBeenSet() const { return m_enhancedMonitoringHasBeenSet; }
128 inline void SetEnhancedMonitoring(const EnhancedMonitoring& value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring = value; }
129 inline void SetEnhancedMonitoring(EnhancedMonitoring&& value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring = std::move(value); }
131 inline CreateClusterRequest& WithEnhancedMonitoring(EnhancedMonitoring&& value) { SetEnhancedMonitoring(std::move(value)); return *this;}
133
135
140 inline const OpenMonitoringInfo& GetOpenMonitoring() const{ return m_openMonitoring; }
141 inline bool OpenMonitoringHasBeenSet() const { return m_openMonitoringHasBeenSet; }
142 inline void SetOpenMonitoring(const OpenMonitoringInfo& value) { m_openMonitoringHasBeenSet = true; m_openMonitoring = value; }
143 inline void SetOpenMonitoring(OpenMonitoringInfo&& value) { m_openMonitoringHasBeenSet = true; m_openMonitoring = std::move(value); }
145 inline CreateClusterRequest& WithOpenMonitoring(OpenMonitoringInfo&& value) { SetOpenMonitoring(std::move(value)); return *this;}
147
149
154 inline const Aws::String& GetKafkaVersion() const{ return m_kafkaVersion; }
155 inline bool KafkaVersionHasBeenSet() const { return m_kafkaVersionHasBeenSet; }
156 inline void SetKafkaVersion(const Aws::String& value) { m_kafkaVersionHasBeenSet = true; m_kafkaVersion = value; }
157 inline void SetKafkaVersion(Aws::String&& value) { m_kafkaVersionHasBeenSet = true; m_kafkaVersion = std::move(value); }
158 inline void SetKafkaVersion(const char* value) { m_kafkaVersionHasBeenSet = true; m_kafkaVersion.assign(value); }
159 inline CreateClusterRequest& WithKafkaVersion(const Aws::String& value) { SetKafkaVersion(value); return *this;}
160 inline CreateClusterRequest& WithKafkaVersion(Aws::String&& value) { SetKafkaVersion(std::move(value)); return *this;}
161 inline CreateClusterRequest& WithKafkaVersion(const char* value) { SetKafkaVersion(value); return *this;}
163
165
166 inline const LoggingInfo& GetLoggingInfo() const{ return m_loggingInfo; }
167 inline bool LoggingInfoHasBeenSet() const { return m_loggingInfoHasBeenSet; }
168 inline void SetLoggingInfo(const LoggingInfo& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = value; }
169 inline void SetLoggingInfo(LoggingInfo&& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = std::move(value); }
170 inline CreateClusterRequest& WithLoggingInfo(const LoggingInfo& value) { SetLoggingInfo(value); return *this;}
171 inline CreateClusterRequest& WithLoggingInfo(LoggingInfo&& value) { SetLoggingInfo(std::move(value)); return *this;}
173
175
180 inline int GetNumberOfBrokerNodes() const{ return m_numberOfBrokerNodes; }
181 inline bool NumberOfBrokerNodesHasBeenSet() const { return m_numberOfBrokerNodesHasBeenSet; }
182 inline void SetNumberOfBrokerNodes(int value) { m_numberOfBrokerNodesHasBeenSet = true; m_numberOfBrokerNodes = value; }
183 inline CreateClusterRequest& WithNumberOfBrokerNodes(int value) { SetNumberOfBrokerNodes(value); return *this;}
185
187
192 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
193 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
194 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
195 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
196 inline CreateClusterRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
197 inline CreateClusterRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
198 inline CreateClusterRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
199 inline CreateClusterRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
200 inline CreateClusterRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
201 inline CreateClusterRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
202 inline CreateClusterRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
203 inline CreateClusterRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
204 inline CreateClusterRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
206
208
214 inline const StorageMode& GetStorageMode() const{ return m_storageMode; }
215 inline bool StorageModeHasBeenSet() const { return m_storageModeHasBeenSet; }
216 inline void SetStorageMode(const StorageMode& value) { m_storageModeHasBeenSet = true; m_storageMode = value; }
217 inline void SetStorageMode(StorageMode&& value) { m_storageModeHasBeenSet = true; m_storageMode = std::move(value); }
218 inline CreateClusterRequest& WithStorageMode(const StorageMode& value) { SetStorageMode(value); return *this;}
219 inline CreateClusterRequest& WithStorageMode(StorageMode&& value) { SetStorageMode(std::move(value)); return *this;}
221 private:
222
223 BrokerNodeGroupInfo m_brokerNodeGroupInfo;
224 bool m_brokerNodeGroupInfoHasBeenSet = false;
225
226 ClientAuthentication m_clientAuthentication;
227 bool m_clientAuthenticationHasBeenSet = false;
228
229 Aws::String m_clusterName;
230 bool m_clusterNameHasBeenSet = false;
231
232 ConfigurationInfo m_configurationInfo;
233 bool m_configurationInfoHasBeenSet = false;
234
235 EncryptionInfo m_encryptionInfo;
236 bool m_encryptionInfoHasBeenSet = false;
237
238 EnhancedMonitoring m_enhancedMonitoring;
239 bool m_enhancedMonitoringHasBeenSet = false;
240
241 OpenMonitoringInfo m_openMonitoring;
242 bool m_openMonitoringHasBeenSet = false;
243
244 Aws::String m_kafkaVersion;
245 bool m_kafkaVersionHasBeenSet = false;
246
247 LoggingInfo m_loggingInfo;
248 bool m_loggingInfoHasBeenSet = false;
249
250 int m_numberOfBrokerNodes;
251 bool m_numberOfBrokerNodesHasBeenSet = false;
252
254 bool m_tagsHasBeenSet = false;
255
256 StorageMode m_storageMode;
257 bool m_storageModeHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace Kafka
262} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetLoggingInfo(const LoggingInfo &value)
CreateClusterRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateClusterRequest & WithEnhancedMonitoring(EnhancedMonitoring &&value)
CreateClusterRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetOpenMonitoring(OpenMonitoringInfo &&value)
CreateClusterRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateClusterRequest & AddTags(const char *key, const char *value)
void SetOpenMonitoring(const OpenMonitoringInfo &value)
CreateClusterRequest & WithKafkaVersion(const char *value)
CreateClusterRequest & WithNumberOfBrokerNodes(int value)
CreateClusterRequest & WithKafkaVersion(const Aws::String &value)
const EncryptionInfo & GetEncryptionInfo() const
void SetClientAuthentication(ClientAuthentication &&value)
void SetStorageMode(const StorageMode &value)
const ClientAuthentication & GetClientAuthentication() const
CreateClusterRequest & WithOpenMonitoring(const OpenMonitoringInfo &value)
void SetEnhancedMonitoring(const EnhancedMonitoring &value)
CreateClusterRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateClusterRequest & WithEncryptionInfo(EncryptionInfo &&value)
CreateClusterRequest & AddTags(const char *key, Aws::String &&value)
CreateClusterRequest & WithClientAuthentication(ClientAuthentication &&value)
CreateClusterRequest & WithEnhancedMonitoring(const EnhancedMonitoring &value)
void SetEncryptionInfo(EncryptionInfo &&value)
CreateClusterRequest & WithOpenMonitoring(OpenMonitoringInfo &&value)
const OpenMonitoringInfo & GetOpenMonitoring() const
void SetKafkaVersion(const Aws::String &value)
CreateClusterRequest & AddTags(Aws::String &&key, const char *value)
const ConfigurationInfo & GetConfigurationInfo() const
CreateClusterRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateClusterRequest & WithClusterName(const Aws::String &value)
void SetBrokerNodeGroupInfo(const BrokerNodeGroupInfo &value)
void SetConfigurationInfo(ConfigurationInfo &&value)
CreateClusterRequest & WithLoggingInfo(LoggingInfo &&value)
CreateClusterRequest & WithBrokerNodeGroupInfo(BrokerNodeGroupInfo &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateClusterRequest & WithClusterName(Aws::String &&value)
void SetEnhancedMonitoring(EnhancedMonitoring &&value)
CreateClusterRequest & WithLoggingInfo(const LoggingInfo &value)
CreateClusterRequest & WithStorageMode(StorageMode &&value)
CreateClusterRequest & WithEncryptionInfo(const EncryptionInfo &value)
void SetBrokerNodeGroupInfo(BrokerNodeGroupInfo &&value)
CreateClusterRequest & WithConfigurationInfo(ConfigurationInfo &&value)
const BrokerNodeGroupInfo & GetBrokerNodeGroupInfo() const
AWS_KAFKA_API Aws::String SerializePayload() const override
CreateClusterRequest & WithClusterName(const char *value)
void SetEncryptionInfo(const EncryptionInfo &value)
CreateClusterRequest & WithConfigurationInfo(const ConfigurationInfo &value)
void SetClientAuthentication(const ClientAuthentication &value)
void SetClusterName(const Aws::String &value)
CreateClusterRequest & WithKafkaVersion(Aws::String &&value)
const EnhancedMonitoring & GetEnhancedMonitoring() const
CreateClusterRequest & WithClientAuthentication(const ClientAuthentication &value)
CreateClusterRequest & WithStorageMode(const StorageMode &value)
CreateClusterRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetConfigurationInfo(const ConfigurationInfo &value)
CreateClusterRequest & WithBrokerNodeGroupInfo(const BrokerNodeGroupInfo &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&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