AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CreateConnectorRequest.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/kafkaconnect/KafkaConnectRequest.h>
11#include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
12#include <aws/kafkaconnect/model/Capacity.h>
13#include <aws/kafkaconnect/model/KafkaCluster.h>
14#include <aws/kafkaconnect/model/KafkaClusterClientAuthentication.h>
15#include <aws/kafkaconnect/model/KafkaClusterEncryptionInTransit.h>
16#include <aws/kafkaconnect/model/LogDelivery.h>
17#include <aws/kafkaconnect/model/NetworkType.h>
18#include <aws/kafkaconnect/model/Plugin.h>
19#include <aws/kafkaconnect/model/WorkerConfiguration.h>
20
21#include <utility>
22
23namespace Aws {
24namespace KafkaConnect {
25namespace Model {
26
30 public:
31 AWS_KAFKACONNECT_API CreateConnectorRequest() = 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 "CreateConnector"; }
38
39 AWS_KAFKACONNECT_API Aws::String SerializePayload() const override;
40
42
46 inline const Capacity& GetCapacity() const { return m_capacity; }
47 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
48 template <typename CapacityT = Capacity>
49 void SetCapacity(CapacityT&& value) {
50 m_capacityHasBeenSet = true;
51 m_capacity = std::forward<CapacityT>(value);
52 }
53 template <typename CapacityT = Capacity>
55 SetCapacity(std::forward<CapacityT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::Map<Aws::String, Aws::String>& GetConnectorConfiguration() const { return m_connectorConfiguration; }
66 inline bool ConnectorConfigurationHasBeenSet() const { return m_connectorConfigurationHasBeenSet; }
67 template <typename ConnectorConfigurationT = Aws::Map<Aws::String, Aws::String>>
68 void SetConnectorConfiguration(ConnectorConfigurationT&& value) {
69 m_connectorConfigurationHasBeenSet = true;
70 m_connectorConfiguration = std::forward<ConnectorConfigurationT>(value);
71 }
72 template <typename ConnectorConfigurationT = Aws::Map<Aws::String, Aws::String>>
73 CreateConnectorRequest& WithConnectorConfiguration(ConnectorConfigurationT&& value) {
74 SetConnectorConfiguration(std::forward<ConnectorConfigurationT>(value));
75 return *this;
76 }
77 template <typename ConnectorConfigurationKeyT = Aws::String, typename ConnectorConfigurationValueT = Aws::String>
78 CreateConnectorRequest& AddConnectorConfiguration(ConnectorConfigurationKeyT&& key, ConnectorConfigurationValueT&& value) {
79 m_connectorConfigurationHasBeenSet = true;
80 m_connectorConfiguration.emplace(std::forward<ConnectorConfigurationKeyT>(key), std::forward<ConnectorConfigurationValueT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetConnectorDescription() const { return m_connectorDescription; }
90 inline bool ConnectorDescriptionHasBeenSet() const { return m_connectorDescriptionHasBeenSet; }
91 template <typename ConnectorDescriptionT = Aws::String>
92 void SetConnectorDescription(ConnectorDescriptionT&& value) {
93 m_connectorDescriptionHasBeenSet = true;
94 m_connectorDescription = std::forward<ConnectorDescriptionT>(value);
95 }
96 template <typename ConnectorDescriptionT = Aws::String>
97 CreateConnectorRequest& WithConnectorDescription(ConnectorDescriptionT&& value) {
98 SetConnectorDescription(std::forward<ConnectorDescriptionT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetConnectorName() const { return m_connectorName; }
108 inline bool ConnectorNameHasBeenSet() const { return m_connectorNameHasBeenSet; }
109 template <typename ConnectorNameT = Aws::String>
110 void SetConnectorName(ConnectorNameT&& value) {
111 m_connectorNameHasBeenSet = true;
112 m_connectorName = std::forward<ConnectorNameT>(value);
113 }
114 template <typename ConnectorNameT = Aws::String>
115 CreateConnectorRequest& WithConnectorName(ConnectorNameT&& value) {
116 SetConnectorName(std::forward<ConnectorNameT>(value));
117 return *this;
118 }
120
122
125 inline const KafkaCluster& GetKafkaCluster() const { return m_kafkaCluster; }
126 inline bool KafkaClusterHasBeenSet() const { return m_kafkaClusterHasBeenSet; }
127 template <typename KafkaClusterT = KafkaCluster>
128 void SetKafkaCluster(KafkaClusterT&& value) {
129 m_kafkaClusterHasBeenSet = true;
130 m_kafkaCluster = std::forward<KafkaClusterT>(value);
131 }
132 template <typename KafkaClusterT = KafkaCluster>
133 CreateConnectorRequest& WithKafkaCluster(KafkaClusterT&& value) {
134 SetKafkaCluster(std::forward<KafkaClusterT>(value));
135 return *this;
136 }
138
140
143 inline const KafkaClusterClientAuthentication& GetKafkaClusterClientAuthentication() const { return m_kafkaClusterClientAuthentication; }
144 inline bool KafkaClusterClientAuthenticationHasBeenSet() const { return m_kafkaClusterClientAuthenticationHasBeenSet; }
145 template <typename KafkaClusterClientAuthenticationT = KafkaClusterClientAuthentication>
146 void SetKafkaClusterClientAuthentication(KafkaClusterClientAuthenticationT&& value) {
147 m_kafkaClusterClientAuthenticationHasBeenSet = true;
148 m_kafkaClusterClientAuthentication = std::forward<KafkaClusterClientAuthenticationT>(value);
149 }
150 template <typename KafkaClusterClientAuthenticationT = KafkaClusterClientAuthentication>
151 CreateConnectorRequest& WithKafkaClusterClientAuthentication(KafkaClusterClientAuthenticationT&& value) {
152 SetKafkaClusterClientAuthentication(std::forward<KafkaClusterClientAuthenticationT>(value));
153 return *this;
154 }
156
158
161 inline const KafkaClusterEncryptionInTransit& GetKafkaClusterEncryptionInTransit() const { return m_kafkaClusterEncryptionInTransit; }
162 inline bool KafkaClusterEncryptionInTransitHasBeenSet() const { return m_kafkaClusterEncryptionInTransitHasBeenSet; }
163 template <typename KafkaClusterEncryptionInTransitT = KafkaClusterEncryptionInTransit>
164 void SetKafkaClusterEncryptionInTransit(KafkaClusterEncryptionInTransitT&& value) {
165 m_kafkaClusterEncryptionInTransitHasBeenSet = true;
166 m_kafkaClusterEncryptionInTransit = std::forward<KafkaClusterEncryptionInTransitT>(value);
167 }
168 template <typename KafkaClusterEncryptionInTransitT = KafkaClusterEncryptionInTransit>
169 CreateConnectorRequest& WithKafkaClusterEncryptionInTransit(KafkaClusterEncryptionInTransitT&& value) {
170 SetKafkaClusterEncryptionInTransit(std::forward<KafkaClusterEncryptionInTransitT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::String& GetKafkaConnectVersion() const { return m_kafkaConnectVersion; }
181 inline bool KafkaConnectVersionHasBeenSet() const { return m_kafkaConnectVersionHasBeenSet; }
182 template <typename KafkaConnectVersionT = Aws::String>
183 void SetKafkaConnectVersion(KafkaConnectVersionT&& value) {
184 m_kafkaConnectVersionHasBeenSet = true;
185 m_kafkaConnectVersion = std::forward<KafkaConnectVersionT>(value);
186 }
187 template <typename KafkaConnectVersionT = Aws::String>
188 CreateConnectorRequest& WithKafkaConnectVersion(KafkaConnectVersionT&& value) {
189 SetKafkaConnectVersion(std::forward<KafkaConnectVersionT>(value));
190 return *this;
191 }
193
195
198 inline const LogDelivery& GetLogDelivery() const { return m_logDelivery; }
199 inline bool LogDeliveryHasBeenSet() const { return m_logDeliveryHasBeenSet; }
200 template <typename LogDeliveryT = LogDelivery>
201 void SetLogDelivery(LogDeliveryT&& value) {
202 m_logDeliveryHasBeenSet = true;
203 m_logDelivery = std::forward<LogDeliveryT>(value);
204 }
205 template <typename LogDeliveryT = LogDelivery>
207 SetLogDelivery(std::forward<LogDeliveryT>(value));
208 return *this;
209 }
211
213
217 inline NetworkType GetNetworkType() const { return m_networkType; }
218 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
219 inline void SetNetworkType(NetworkType value) {
220 m_networkTypeHasBeenSet = true;
221 m_networkType = value;
222 }
224 SetNetworkType(value);
225 return *this;
226 }
228
230
238 inline const Aws::Vector<Plugin>& GetPlugins() const { return m_plugins; }
239 inline bool PluginsHasBeenSet() const { return m_pluginsHasBeenSet; }
240 template <typename PluginsT = Aws::Vector<Plugin>>
241 void SetPlugins(PluginsT&& value) {
242 m_pluginsHasBeenSet = true;
243 m_plugins = std::forward<PluginsT>(value);
244 }
245 template <typename PluginsT = Aws::Vector<Plugin>>
247 SetPlugins(std::forward<PluginsT>(value));
248 return *this;
249 }
250 template <typename PluginsT = Plugin>
252 m_pluginsHasBeenSet = true;
253 m_plugins.emplace_back(std::forward<PluginsT>(value));
254 return *this;
255 }
257
259
266 inline const Aws::String& GetServiceExecutionRoleArn() const { return m_serviceExecutionRoleArn; }
267 inline bool ServiceExecutionRoleArnHasBeenSet() const { return m_serviceExecutionRoleArnHasBeenSet; }
268 template <typename ServiceExecutionRoleArnT = Aws::String>
269 void SetServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) {
270 m_serviceExecutionRoleArnHasBeenSet = true;
271 m_serviceExecutionRoleArn = std::forward<ServiceExecutionRoleArnT>(value);
272 }
273 template <typename ServiceExecutionRoleArnT = Aws::String>
274 CreateConnectorRequest& WithServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) {
275 SetServiceExecutionRoleArn(std::forward<ServiceExecutionRoleArnT>(value));
276 return *this;
277 }
279
281
284 inline const WorkerConfiguration& GetWorkerConfiguration() const { return m_workerConfiguration; }
285 inline bool WorkerConfigurationHasBeenSet() const { return m_workerConfigurationHasBeenSet; }
286 template <typename WorkerConfigurationT = WorkerConfiguration>
287 void SetWorkerConfiguration(WorkerConfigurationT&& value) {
288 m_workerConfigurationHasBeenSet = true;
289 m_workerConfiguration = std::forward<WorkerConfigurationT>(value);
290 }
291 template <typename WorkerConfigurationT = WorkerConfiguration>
292 CreateConnectorRequest& WithWorkerConfiguration(WorkerConfigurationT&& value) {
293 SetWorkerConfiguration(std::forward<WorkerConfigurationT>(value));
294 return *this;
295 }
297
299
302 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
303 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
304 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
305 void SetTags(TagsT&& value) {
306 m_tagsHasBeenSet = true;
307 m_tags = std::forward<TagsT>(value);
308 }
309 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
311 SetTags(std::forward<TagsT>(value));
312 return *this;
313 }
314 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
315 CreateConnectorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
316 m_tagsHasBeenSet = true;
317 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
318 return *this;
319 }
321 private:
322 Capacity m_capacity;
323
324 Aws::Map<Aws::String, Aws::String> m_connectorConfiguration;
325
326 Aws::String m_connectorDescription;
327
328 Aws::String m_connectorName;
329
330 KafkaCluster m_kafkaCluster;
331
332 KafkaClusterClientAuthentication m_kafkaClusterClientAuthentication;
333
334 KafkaClusterEncryptionInTransit m_kafkaClusterEncryptionInTransit;
335
336 Aws::String m_kafkaConnectVersion;
337
338 LogDelivery m_logDelivery;
339
340 NetworkType m_networkType{NetworkType::NOT_SET};
341
342 Aws::Vector<Plugin> m_plugins;
343
344 Aws::String m_serviceExecutionRoleArn;
345
346 WorkerConfiguration m_workerConfiguration;
347
349 bool m_capacityHasBeenSet = false;
350 bool m_connectorConfigurationHasBeenSet = false;
351 bool m_connectorDescriptionHasBeenSet = false;
352 bool m_connectorNameHasBeenSet = false;
353 bool m_kafkaClusterHasBeenSet = false;
354 bool m_kafkaClusterClientAuthenticationHasBeenSet = false;
355 bool m_kafkaClusterEncryptionInTransitHasBeenSet = false;
356 bool m_kafkaConnectVersionHasBeenSet = false;
357 bool m_logDeliveryHasBeenSet = false;
358 bool m_networkTypeHasBeenSet = false;
359 bool m_pluginsHasBeenSet = false;
360 bool m_serviceExecutionRoleArnHasBeenSet = false;
361 bool m_workerConfigurationHasBeenSet = false;
362 bool m_tagsHasBeenSet = false;
363};
364
365} // namespace Model
366} // namespace KafkaConnect
367} // namespace Aws
CreateConnectorRequest & WithConnectorDescription(ConnectorDescriptionT &&value)
CreateConnectorRequest & WithKafkaClusterEncryptionInTransit(KafkaClusterEncryptionInTransitT &&value)
CreateConnectorRequest & AddConnectorConfiguration(ConnectorConfigurationKeyT &&key, ConnectorConfigurationValueT &&value)
CreateConnectorRequest & WithCapacity(CapacityT &&value)
CreateConnectorRequest & WithLogDelivery(LogDeliveryT &&value)
AWS_KAFKACONNECT_API Aws::String SerializePayload() const override
CreateConnectorRequest & WithTags(TagsT &&value)
CreateConnectorRequest & WithConnectorName(ConnectorNameT &&value)
CreateConnectorRequest & AddPlugins(PluginsT &&value)
CreateConnectorRequest & WithKafkaClusterClientAuthentication(KafkaClusterClientAuthenticationT &&value)
void SetConnectorDescription(ConnectorDescriptionT &&value)
CreateConnectorRequest & WithKafkaCluster(KafkaClusterT &&value)
CreateConnectorRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateConnectorRequest & WithConnectorConfiguration(ConnectorConfigurationT &&value)
AWS_KAFKACONNECT_API CreateConnectorRequest()=default
CreateConnectorRequest & WithWorkerConfiguration(WorkerConfigurationT &&value)
const KafkaClusterClientAuthentication & GetKafkaClusterClientAuthentication() const
void SetKafkaConnectVersion(KafkaConnectVersionT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const KafkaClusterEncryptionInTransit & GetKafkaClusterEncryptionInTransit() const
const WorkerConfiguration & GetWorkerConfiguration() const
void SetConnectorConfiguration(ConnectorConfigurationT &&value)
CreateConnectorRequest & WithNetworkType(NetworkType value)
void SetKafkaClusterClientAuthentication(KafkaClusterClientAuthenticationT &&value)
void SetWorkerConfiguration(WorkerConfigurationT &&value)
const Aws::Vector< Plugin > & GetPlugins() const
CreateConnectorRequest & WithServiceExecutionRoleArn(ServiceExecutionRoleArnT &&value)
void SetKafkaClusterEncryptionInTransit(KafkaClusterEncryptionInTransitT &&value)
void SetServiceExecutionRoleArn(ServiceExecutionRoleArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetConnectorConfiguration() const
CreateConnectorRequest & WithPlugins(PluginsT &&value)
CreateConnectorRequest & WithKafkaConnectVersion(KafkaConnectVersionT &&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
std::vector< T, Aws::Allocator< T > > Vector