AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename BrokerNodeGroupInfoT = BrokerNodeGroupInfo>
53 void SetBrokerNodeGroupInfo(BrokerNodeGroupInfoT&& value) { m_brokerNodeGroupInfoHasBeenSet = true; m_brokerNodeGroupInfo = std::forward<BrokerNodeGroupInfoT>(value); }
54 template<typename BrokerNodeGroupInfoT = BrokerNodeGroupInfo>
55 CreateClusterRequest& WithBrokerNodeGroupInfo(BrokerNodeGroupInfoT&& value) { SetBrokerNodeGroupInfo(std::forward<BrokerNodeGroupInfoT>(value)); return *this;}
57
59
65 inline const ClientAuthentication& GetClientAuthentication() const { return m_clientAuthentication; }
66 inline bool ClientAuthenticationHasBeenSet() const { return m_clientAuthenticationHasBeenSet; }
67 template<typename ClientAuthenticationT = ClientAuthentication>
68 void SetClientAuthentication(ClientAuthenticationT&& value) { m_clientAuthenticationHasBeenSet = true; m_clientAuthentication = std::forward<ClientAuthenticationT>(value); }
69 template<typename ClientAuthenticationT = ClientAuthentication>
70 CreateClusterRequest& WithClientAuthentication(ClientAuthenticationT&& value) { SetClientAuthentication(std::forward<ClientAuthenticationT>(value)); return *this;}
72
74
79 inline const Aws::String& GetClusterName() const { return m_clusterName; }
80 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
81 template<typename ClusterNameT = Aws::String>
82 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
83 template<typename ClusterNameT = Aws::String>
84 CreateClusterRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
86
88
94 inline const ConfigurationInfo& GetConfigurationInfo() const { return m_configurationInfo; }
95 inline bool ConfigurationInfoHasBeenSet() const { return m_configurationInfoHasBeenSet; }
96 template<typename ConfigurationInfoT = ConfigurationInfo>
97 void SetConfigurationInfo(ConfigurationInfoT&& value) { m_configurationInfoHasBeenSet = true; m_configurationInfo = std::forward<ConfigurationInfoT>(value); }
98 template<typename ConfigurationInfoT = ConfigurationInfo>
99 CreateClusterRequest& WithConfigurationInfo(ConfigurationInfoT&& value) { SetConfigurationInfo(std::forward<ConfigurationInfoT>(value)); return *this;}
101
103
108 inline const EncryptionInfo& GetEncryptionInfo() const { return m_encryptionInfo; }
109 inline bool EncryptionInfoHasBeenSet() const { return m_encryptionInfoHasBeenSet; }
110 template<typename EncryptionInfoT = EncryptionInfo>
111 void SetEncryptionInfo(EncryptionInfoT&& value) { m_encryptionInfoHasBeenSet = true; m_encryptionInfo = std::forward<EncryptionInfoT>(value); }
112 template<typename EncryptionInfoT = EncryptionInfo>
113 CreateClusterRequest& WithEncryptionInfo(EncryptionInfoT&& value) { SetEncryptionInfo(std::forward<EncryptionInfoT>(value)); return *this;}
115
117
124 inline EnhancedMonitoring GetEnhancedMonitoring() const { return m_enhancedMonitoring; }
125 inline bool EnhancedMonitoringHasBeenSet() const { return m_enhancedMonitoringHasBeenSet; }
126 inline void SetEnhancedMonitoring(EnhancedMonitoring value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring = value; }
129
131
136 inline const OpenMonitoringInfo& GetOpenMonitoring() const { return m_openMonitoring; }
137 inline bool OpenMonitoringHasBeenSet() const { return m_openMonitoringHasBeenSet; }
138 template<typename OpenMonitoringT = OpenMonitoringInfo>
139 void SetOpenMonitoring(OpenMonitoringT&& value) { m_openMonitoringHasBeenSet = true; m_openMonitoring = std::forward<OpenMonitoringT>(value); }
140 template<typename OpenMonitoringT = OpenMonitoringInfo>
141 CreateClusterRequest& WithOpenMonitoring(OpenMonitoringT&& value) { SetOpenMonitoring(std::forward<OpenMonitoringT>(value)); return *this;}
143
145
150 inline const Aws::String& GetKafkaVersion() const { return m_kafkaVersion; }
151 inline bool KafkaVersionHasBeenSet() const { return m_kafkaVersionHasBeenSet; }
152 template<typename KafkaVersionT = Aws::String>
153 void SetKafkaVersion(KafkaVersionT&& value) { m_kafkaVersionHasBeenSet = true; m_kafkaVersion = std::forward<KafkaVersionT>(value); }
154 template<typename KafkaVersionT = Aws::String>
155 CreateClusterRequest& WithKafkaVersion(KafkaVersionT&& value) { SetKafkaVersion(std::forward<KafkaVersionT>(value)); return *this;}
157
159
160 inline const LoggingInfo& GetLoggingInfo() const { return m_loggingInfo; }
161 inline bool LoggingInfoHasBeenSet() const { return m_loggingInfoHasBeenSet; }
162 template<typename LoggingInfoT = LoggingInfo>
163 void SetLoggingInfo(LoggingInfoT&& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = std::forward<LoggingInfoT>(value); }
164 template<typename LoggingInfoT = LoggingInfo>
165 CreateClusterRequest& WithLoggingInfo(LoggingInfoT&& value) { SetLoggingInfo(std::forward<LoggingInfoT>(value)); return *this;}
167
169
174 inline int GetNumberOfBrokerNodes() const { return m_numberOfBrokerNodes; }
175 inline bool NumberOfBrokerNodesHasBeenSet() const { return m_numberOfBrokerNodesHasBeenSet; }
176 inline void SetNumberOfBrokerNodes(int value) { m_numberOfBrokerNodesHasBeenSet = true; m_numberOfBrokerNodes = value; }
177 inline CreateClusterRequest& WithNumberOfBrokerNodes(int value) { SetNumberOfBrokerNodes(value); return *this;}
179
181
186 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
187 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
188 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
189 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
190 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
191 CreateClusterRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
192 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
193 CreateClusterRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
194 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
195 }
197
199
205 inline StorageMode GetStorageMode() const { return m_storageMode; }
206 inline bool StorageModeHasBeenSet() const { return m_storageModeHasBeenSet; }
207 inline void SetStorageMode(StorageMode value) { m_storageModeHasBeenSet = true; m_storageMode = value; }
208 inline CreateClusterRequest& WithStorageMode(StorageMode value) { SetStorageMode(value); return *this;}
210 private:
211
212 BrokerNodeGroupInfo m_brokerNodeGroupInfo;
213 bool m_brokerNodeGroupInfoHasBeenSet = false;
214
215 ClientAuthentication m_clientAuthentication;
216 bool m_clientAuthenticationHasBeenSet = false;
217
218 Aws::String m_clusterName;
219 bool m_clusterNameHasBeenSet = false;
220
221 ConfigurationInfo m_configurationInfo;
222 bool m_configurationInfoHasBeenSet = false;
223
224 EncryptionInfo m_encryptionInfo;
225 bool m_encryptionInfoHasBeenSet = false;
226
228 bool m_enhancedMonitoringHasBeenSet = false;
229
230 OpenMonitoringInfo m_openMonitoring;
231 bool m_openMonitoringHasBeenSet = false;
232
233 Aws::String m_kafkaVersion;
234 bool m_kafkaVersionHasBeenSet = false;
235
236 LoggingInfo m_loggingInfo;
237 bool m_loggingInfoHasBeenSet = false;
238
239 int m_numberOfBrokerNodes{0};
240 bool m_numberOfBrokerNodesHasBeenSet = false;
241
243 bool m_tagsHasBeenSet = false;
244
245 StorageMode m_storageMode{StorageMode::NOT_SET};
246 bool m_storageModeHasBeenSet = false;
247 };
248
249} // namespace Model
250} // namespace Kafka
251} // 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
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