AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateConnectorRequest.h
1
6#pragma once
7#include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
8#include <aws/kafkaconnect/KafkaConnectRequest.h>
9#include <aws/kafkaconnect/model/Capacity.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/kafkaconnect/model/KafkaCluster.h>
13#include <aws/kafkaconnect/model/KafkaClusterClientAuthentication.h>
14#include <aws/kafkaconnect/model/KafkaClusterEncryptionInTransit.h>
15#include <aws/kafkaconnect/model/LogDelivery.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <aws/kafkaconnect/model/WorkerConfiguration.h>
18#include <aws/kafkaconnect/model/Plugin.h>
19#include <utility>
20
21namespace Aws
22{
23namespace KafkaConnect
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_KAFKACONNECT_API CreateConnectorRequest() = 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 "CreateConnector"; }
40
41 AWS_KAFKACONNECT_API Aws::String SerializePayload() const override;
42
43
45
49 inline const Capacity& GetCapacity() const { return m_capacity; }
50 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
51 template<typename CapacityT = Capacity>
52 void SetCapacity(CapacityT&& value) { m_capacityHasBeenSet = true; m_capacity = std::forward<CapacityT>(value); }
53 template<typename CapacityT = Capacity>
54 CreateConnectorRequest& WithCapacity(CapacityT&& value) { SetCapacity(std::forward<CapacityT>(value)); return *this;}
56
58
62 inline const Aws::Map<Aws::String, Aws::String>& GetConnectorConfiguration() const { return m_connectorConfiguration; }
63 inline bool ConnectorConfigurationHasBeenSet() const { return m_connectorConfigurationHasBeenSet; }
64 template<typename ConnectorConfigurationT = Aws::Map<Aws::String, Aws::String>>
65 void SetConnectorConfiguration(ConnectorConfigurationT&& value) { m_connectorConfigurationHasBeenSet = true; m_connectorConfiguration = std::forward<ConnectorConfigurationT>(value); }
66 template<typename ConnectorConfigurationT = Aws::Map<Aws::String, Aws::String>>
67 CreateConnectorRequest& WithConnectorConfiguration(ConnectorConfigurationT&& value) { SetConnectorConfiguration(std::forward<ConnectorConfigurationT>(value)); return *this;}
68 template<typename ConnectorConfigurationKeyT = Aws::String, typename ConnectorConfigurationValueT = Aws::String>
69 CreateConnectorRequest& AddConnectorConfiguration(ConnectorConfigurationKeyT&& key, ConnectorConfigurationValueT&& value) {
70 m_connectorConfigurationHasBeenSet = true; m_connectorConfiguration.emplace(std::forward<ConnectorConfigurationKeyT>(key), std::forward<ConnectorConfigurationValueT>(value)); return *this;
71 }
73
75
78 inline const Aws::String& GetConnectorDescription() const { return m_connectorDescription; }
79 inline bool ConnectorDescriptionHasBeenSet() const { return m_connectorDescriptionHasBeenSet; }
80 template<typename ConnectorDescriptionT = Aws::String>
81 void SetConnectorDescription(ConnectorDescriptionT&& value) { m_connectorDescriptionHasBeenSet = true; m_connectorDescription = std::forward<ConnectorDescriptionT>(value); }
82 template<typename ConnectorDescriptionT = Aws::String>
83 CreateConnectorRequest& WithConnectorDescription(ConnectorDescriptionT&& value) { SetConnectorDescription(std::forward<ConnectorDescriptionT>(value)); return *this;}
85
87
90 inline const Aws::String& GetConnectorName() const { return m_connectorName; }
91 inline bool ConnectorNameHasBeenSet() const { return m_connectorNameHasBeenSet; }
92 template<typename ConnectorNameT = Aws::String>
93 void SetConnectorName(ConnectorNameT&& value) { m_connectorNameHasBeenSet = true; m_connectorName = std::forward<ConnectorNameT>(value); }
94 template<typename ConnectorNameT = Aws::String>
95 CreateConnectorRequest& WithConnectorName(ConnectorNameT&& value) { SetConnectorName(std::forward<ConnectorNameT>(value)); return *this;}
97
99
102 inline const KafkaCluster& GetKafkaCluster() const { return m_kafkaCluster; }
103 inline bool KafkaClusterHasBeenSet() const { return m_kafkaClusterHasBeenSet; }
104 template<typename KafkaClusterT = KafkaCluster>
105 void SetKafkaCluster(KafkaClusterT&& value) { m_kafkaClusterHasBeenSet = true; m_kafkaCluster = std::forward<KafkaClusterT>(value); }
106 template<typename KafkaClusterT = KafkaCluster>
107 CreateConnectorRequest& WithKafkaCluster(KafkaClusterT&& value) { SetKafkaCluster(std::forward<KafkaClusterT>(value)); return *this;}
109
111
114 inline const KafkaClusterClientAuthentication& GetKafkaClusterClientAuthentication() const { return m_kafkaClusterClientAuthentication; }
115 inline bool KafkaClusterClientAuthenticationHasBeenSet() const { return m_kafkaClusterClientAuthenticationHasBeenSet; }
116 template<typename KafkaClusterClientAuthenticationT = KafkaClusterClientAuthentication>
117 void SetKafkaClusterClientAuthentication(KafkaClusterClientAuthenticationT&& value) { m_kafkaClusterClientAuthenticationHasBeenSet = true; m_kafkaClusterClientAuthentication = std::forward<KafkaClusterClientAuthenticationT>(value); }
118 template<typename KafkaClusterClientAuthenticationT = KafkaClusterClientAuthentication>
119 CreateConnectorRequest& WithKafkaClusterClientAuthentication(KafkaClusterClientAuthenticationT&& value) { SetKafkaClusterClientAuthentication(std::forward<KafkaClusterClientAuthenticationT>(value)); return *this;}
121
123
126 inline const KafkaClusterEncryptionInTransit& GetKafkaClusterEncryptionInTransit() const { return m_kafkaClusterEncryptionInTransit; }
127 inline bool KafkaClusterEncryptionInTransitHasBeenSet() const { return m_kafkaClusterEncryptionInTransitHasBeenSet; }
128 template<typename KafkaClusterEncryptionInTransitT = KafkaClusterEncryptionInTransit>
129 void SetKafkaClusterEncryptionInTransit(KafkaClusterEncryptionInTransitT&& value) { m_kafkaClusterEncryptionInTransitHasBeenSet = true; m_kafkaClusterEncryptionInTransit = std::forward<KafkaClusterEncryptionInTransitT>(value); }
130 template<typename KafkaClusterEncryptionInTransitT = KafkaClusterEncryptionInTransit>
131 CreateConnectorRequest& WithKafkaClusterEncryptionInTransit(KafkaClusterEncryptionInTransitT&& value) { SetKafkaClusterEncryptionInTransit(std::forward<KafkaClusterEncryptionInTransitT>(value)); return *this;}
133
135
139 inline const Aws::String& GetKafkaConnectVersion() const { return m_kafkaConnectVersion; }
140 inline bool KafkaConnectVersionHasBeenSet() const { return m_kafkaConnectVersionHasBeenSet; }
141 template<typename KafkaConnectVersionT = Aws::String>
142 void SetKafkaConnectVersion(KafkaConnectVersionT&& value) { m_kafkaConnectVersionHasBeenSet = true; m_kafkaConnectVersion = std::forward<KafkaConnectVersionT>(value); }
143 template<typename KafkaConnectVersionT = Aws::String>
144 CreateConnectorRequest& WithKafkaConnectVersion(KafkaConnectVersionT&& value) { SetKafkaConnectVersion(std::forward<KafkaConnectVersionT>(value)); return *this;}
146
148
151 inline const LogDelivery& GetLogDelivery() const { return m_logDelivery; }
152 inline bool LogDeliveryHasBeenSet() const { return m_logDeliveryHasBeenSet; }
153 template<typename LogDeliveryT = LogDelivery>
154 void SetLogDelivery(LogDeliveryT&& value) { m_logDeliveryHasBeenSet = true; m_logDelivery = std::forward<LogDeliveryT>(value); }
155 template<typename LogDeliveryT = LogDelivery>
156 CreateConnectorRequest& WithLogDelivery(LogDeliveryT&& value) { SetLogDelivery(std::forward<LogDeliveryT>(value)); return *this;}
158
160
168 inline const Aws::Vector<Plugin>& GetPlugins() const { return m_plugins; }
169 inline bool PluginsHasBeenSet() const { return m_pluginsHasBeenSet; }
170 template<typename PluginsT = Aws::Vector<Plugin>>
171 void SetPlugins(PluginsT&& value) { m_pluginsHasBeenSet = true; m_plugins = std::forward<PluginsT>(value); }
172 template<typename PluginsT = Aws::Vector<Plugin>>
173 CreateConnectorRequest& WithPlugins(PluginsT&& value) { SetPlugins(std::forward<PluginsT>(value)); return *this;}
174 template<typename PluginsT = Plugin>
175 CreateConnectorRequest& AddPlugins(PluginsT&& value) { m_pluginsHasBeenSet = true; m_plugins.emplace_back(std::forward<PluginsT>(value)); return *this; }
177
179
186 inline const Aws::String& GetServiceExecutionRoleArn() const { return m_serviceExecutionRoleArn; }
187 inline bool ServiceExecutionRoleArnHasBeenSet() const { return m_serviceExecutionRoleArnHasBeenSet; }
188 template<typename ServiceExecutionRoleArnT = Aws::String>
189 void SetServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) { m_serviceExecutionRoleArnHasBeenSet = true; m_serviceExecutionRoleArn = std::forward<ServiceExecutionRoleArnT>(value); }
190 template<typename ServiceExecutionRoleArnT = Aws::String>
191 CreateConnectorRequest& WithServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) { SetServiceExecutionRoleArn(std::forward<ServiceExecutionRoleArnT>(value)); return *this;}
193
195
198 inline const WorkerConfiguration& GetWorkerConfiguration() const { return m_workerConfiguration; }
199 inline bool WorkerConfigurationHasBeenSet() const { return m_workerConfigurationHasBeenSet; }
200 template<typename WorkerConfigurationT = WorkerConfiguration>
201 void SetWorkerConfiguration(WorkerConfigurationT&& value) { m_workerConfigurationHasBeenSet = true; m_workerConfiguration = std::forward<WorkerConfigurationT>(value); }
202 template<typename WorkerConfigurationT = WorkerConfiguration>
203 CreateConnectorRequest& WithWorkerConfiguration(WorkerConfigurationT&& value) { SetWorkerConfiguration(std::forward<WorkerConfigurationT>(value)); return *this;}
205
207
210 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
211 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
212 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
213 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
214 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
215 CreateConnectorRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
216 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
217 CreateConnectorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
218 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
219 }
221 private:
222
223 Capacity m_capacity;
224 bool m_capacityHasBeenSet = false;
225
226 Aws::Map<Aws::String, Aws::String> m_connectorConfiguration;
227 bool m_connectorConfigurationHasBeenSet = false;
228
229 Aws::String m_connectorDescription;
230 bool m_connectorDescriptionHasBeenSet = false;
231
232 Aws::String m_connectorName;
233 bool m_connectorNameHasBeenSet = false;
234
235 KafkaCluster m_kafkaCluster;
236 bool m_kafkaClusterHasBeenSet = false;
237
238 KafkaClusterClientAuthentication m_kafkaClusterClientAuthentication;
239 bool m_kafkaClusterClientAuthenticationHasBeenSet = false;
240
241 KafkaClusterEncryptionInTransit m_kafkaClusterEncryptionInTransit;
242 bool m_kafkaClusterEncryptionInTransitHasBeenSet = false;
243
244 Aws::String m_kafkaConnectVersion;
245 bool m_kafkaConnectVersionHasBeenSet = false;
246
247 LogDelivery m_logDelivery;
248 bool m_logDeliveryHasBeenSet = false;
249
250 Aws::Vector<Plugin> m_plugins;
251 bool m_pluginsHasBeenSet = false;
252
253 Aws::String m_serviceExecutionRoleArn;
254 bool m_serviceExecutionRoleArnHasBeenSet = false;
255
256 WorkerConfiguration m_workerConfiguration;
257 bool m_workerConfigurationHasBeenSet = false;
258
260 bool m_tagsHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace KafkaConnect
265} // 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)
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