AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
DescribeConnectorResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
13#include <aws/kafkaconnect/model/CapacityDescription.h>
14#include <aws/kafkaconnect/model/ConnectorState.h>
15#include <aws/kafkaconnect/model/KafkaClusterClientAuthenticationDescription.h>
16#include <aws/kafkaconnect/model/KafkaClusterDescription.h>
17#include <aws/kafkaconnect/model/KafkaClusterEncryptionInTransitDescription.h>
18#include <aws/kafkaconnect/model/LogDeliveryDescription.h>
19#include <aws/kafkaconnect/model/NetworkType.h>
20#include <aws/kafkaconnect/model/PluginDescription.h>
21#include <aws/kafkaconnect/model/StateDescription.h>
22#include <aws/kafkaconnect/model/WorkerConfigurationDescription.h>
23
24#include <utility>
25
26namespace Aws {
27template <typename RESULT_TYPE>
28class AmazonWebServiceResult;
29
30namespace Utils {
31namespace Json {
32class JsonValue;
33} // namespace Json
34} // namespace Utils
35namespace KafkaConnect {
36namespace Model {
38 public:
39 AWS_KAFKACONNECT_API DescribeConnectorResult() = default;
42
44
48 inline const CapacityDescription& GetCapacity() const { return m_capacity; }
49 template <typename CapacityT = CapacityDescription>
50 void SetCapacity(CapacityT&& value) {
51 m_capacityHasBeenSet = true;
52 m_capacity = std::forward<CapacityT>(value);
53 }
54 template <typename CapacityT = CapacityDescription>
56 SetCapacity(std::forward<CapacityT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetConnectorArn() const { return m_connectorArn; }
66 template <typename ConnectorArnT = Aws::String>
67 void SetConnectorArn(ConnectorArnT&& value) {
68 m_connectorArnHasBeenSet = true;
69 m_connectorArn = std::forward<ConnectorArnT>(value);
70 }
71 template <typename ConnectorArnT = Aws::String>
72 DescribeConnectorResult& WithConnectorArn(ConnectorArnT&& value) {
73 SetConnectorArn(std::forward<ConnectorArnT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::Map<Aws::String, Aws::String>& GetConnectorConfiguration() const { return m_connectorConfiguration; }
84 template <typename ConnectorConfigurationT = Aws::Map<Aws::String, Aws::String>>
85 void SetConnectorConfiguration(ConnectorConfigurationT&& value) {
86 m_connectorConfigurationHasBeenSet = true;
87 m_connectorConfiguration = std::forward<ConnectorConfigurationT>(value);
88 }
89 template <typename ConnectorConfigurationT = Aws::Map<Aws::String, Aws::String>>
90 DescribeConnectorResult& WithConnectorConfiguration(ConnectorConfigurationT&& value) {
91 SetConnectorConfiguration(std::forward<ConnectorConfigurationT>(value));
92 return *this;
93 }
94 template <typename ConnectorConfigurationKeyT = Aws::String, typename ConnectorConfigurationValueT = Aws::String>
95 DescribeConnectorResult& AddConnectorConfiguration(ConnectorConfigurationKeyT&& key, ConnectorConfigurationValueT&& value) {
96 m_connectorConfigurationHasBeenSet = true;
97 m_connectorConfiguration.emplace(std::forward<ConnectorConfigurationKeyT>(key), std::forward<ConnectorConfigurationValueT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetConnectorDescription() const { return m_connectorDescription; }
107 template <typename ConnectorDescriptionT = Aws::String>
108 void SetConnectorDescription(ConnectorDescriptionT&& value) {
109 m_connectorDescriptionHasBeenSet = true;
110 m_connectorDescription = std::forward<ConnectorDescriptionT>(value);
111 }
112 template <typename ConnectorDescriptionT = Aws::String>
113 DescribeConnectorResult& WithConnectorDescription(ConnectorDescriptionT&& value) {
114 SetConnectorDescription(std::forward<ConnectorDescriptionT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetConnectorName() const { return m_connectorName; }
124 template <typename ConnectorNameT = Aws::String>
125 void SetConnectorName(ConnectorNameT&& value) {
126 m_connectorNameHasBeenSet = true;
127 m_connectorName = std::forward<ConnectorNameT>(value);
128 }
129 template <typename ConnectorNameT = Aws::String>
131 SetConnectorName(std::forward<ConnectorNameT>(value));
132 return *this;
133 }
135
137
140 inline ConnectorState GetConnectorState() const { return m_connectorState; }
142 m_connectorStateHasBeenSet = true;
143 m_connectorState = value;
144 }
146 SetConnectorState(value);
147 return *this;
148 }
150
152
155 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
156 template <typename CreationTimeT = Aws::Utils::DateTime>
157 void SetCreationTime(CreationTimeT&& value) {
158 m_creationTimeHasBeenSet = true;
159 m_creationTime = std::forward<CreationTimeT>(value);
160 }
161 template <typename CreationTimeT = Aws::Utils::DateTime>
163 SetCreationTime(std::forward<CreationTimeT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
173 template <typename CurrentVersionT = Aws::String>
174 void SetCurrentVersion(CurrentVersionT&& value) {
175 m_currentVersionHasBeenSet = true;
176 m_currentVersion = std::forward<CurrentVersionT>(value);
177 }
178 template <typename CurrentVersionT = Aws::String>
179 DescribeConnectorResult& WithCurrentVersion(CurrentVersionT&& value) {
180 SetCurrentVersion(std::forward<CurrentVersionT>(value));
181 return *this;
182 }
184
186
189 inline const KafkaClusterDescription& GetKafkaCluster() const { return m_kafkaCluster; }
190 template <typename KafkaClusterT = KafkaClusterDescription>
191 void SetKafkaCluster(KafkaClusterT&& value) {
192 m_kafkaClusterHasBeenSet = true;
193 m_kafkaCluster = std::forward<KafkaClusterT>(value);
194 }
195 template <typename KafkaClusterT = KafkaClusterDescription>
197 SetKafkaCluster(std::forward<KafkaClusterT>(value));
198 return *this;
199 }
201
203
208 return m_kafkaClusterClientAuthentication;
209 }
210 template <typename KafkaClusterClientAuthenticationT = KafkaClusterClientAuthenticationDescription>
211 void SetKafkaClusterClientAuthentication(KafkaClusterClientAuthenticationT&& value) {
212 m_kafkaClusterClientAuthenticationHasBeenSet = true;
213 m_kafkaClusterClientAuthentication = std::forward<KafkaClusterClientAuthenticationT>(value);
214 }
215 template <typename KafkaClusterClientAuthenticationT = KafkaClusterClientAuthenticationDescription>
216 DescribeConnectorResult& WithKafkaClusterClientAuthentication(KafkaClusterClientAuthenticationT&& value) {
217 SetKafkaClusterClientAuthentication(std::forward<KafkaClusterClientAuthenticationT>(value));
218 return *this;
219 }
221
223
227 return m_kafkaClusterEncryptionInTransit;
228 }
229 template <typename KafkaClusterEncryptionInTransitT = KafkaClusterEncryptionInTransitDescription>
230 void SetKafkaClusterEncryptionInTransit(KafkaClusterEncryptionInTransitT&& value) {
231 m_kafkaClusterEncryptionInTransitHasBeenSet = true;
232 m_kafkaClusterEncryptionInTransit = std::forward<KafkaClusterEncryptionInTransitT>(value);
233 }
234 template <typename KafkaClusterEncryptionInTransitT = KafkaClusterEncryptionInTransitDescription>
235 DescribeConnectorResult& WithKafkaClusterEncryptionInTransit(KafkaClusterEncryptionInTransitT&& value) {
236 SetKafkaClusterEncryptionInTransit(std::forward<KafkaClusterEncryptionInTransitT>(value));
237 return *this;
238 }
240
242
246 inline const Aws::String& GetKafkaConnectVersion() const { return m_kafkaConnectVersion; }
247 template <typename KafkaConnectVersionT = Aws::String>
248 void SetKafkaConnectVersion(KafkaConnectVersionT&& value) {
249 m_kafkaConnectVersionHasBeenSet = true;
250 m_kafkaConnectVersion = std::forward<KafkaConnectVersionT>(value);
251 }
252 template <typename KafkaConnectVersionT = Aws::String>
253 DescribeConnectorResult& WithKafkaConnectVersion(KafkaConnectVersionT&& value) {
254 SetKafkaConnectVersion(std::forward<KafkaConnectVersionT>(value));
255 return *this;
256 }
258
260
263 inline const LogDeliveryDescription& GetLogDelivery() const { return m_logDelivery; }
264 template <typename LogDeliveryT = LogDeliveryDescription>
265 void SetLogDelivery(LogDeliveryT&& value) {
266 m_logDeliveryHasBeenSet = true;
267 m_logDelivery = std::forward<LogDeliveryT>(value);
268 }
269 template <typename LogDeliveryT = LogDeliveryDescription>
271 SetLogDelivery(std::forward<LogDeliveryT>(value));
272 return *this;
273 }
275
277
281 inline NetworkType GetNetworkType() const { return m_networkType; }
282 inline void SetNetworkType(NetworkType value) {
283 m_networkTypeHasBeenSet = true;
284 m_networkType = value;
285 }
287 SetNetworkType(value);
288 return *this;
289 }
291
293
296 inline const Aws::Vector<PluginDescription>& GetPlugins() const { return m_plugins; }
297 template <typename PluginsT = Aws::Vector<PluginDescription>>
298 void SetPlugins(PluginsT&& value) {
299 m_pluginsHasBeenSet = true;
300 m_plugins = std::forward<PluginsT>(value);
301 }
302 template <typename PluginsT = Aws::Vector<PluginDescription>>
304 SetPlugins(std::forward<PluginsT>(value));
305 return *this;
306 }
307 template <typename PluginsT = PluginDescription>
309 m_pluginsHasBeenSet = true;
310 m_plugins.emplace_back(std::forward<PluginsT>(value));
311 return *this;
312 }
314
316
320 inline const Aws::String& GetServiceExecutionRoleArn() const { return m_serviceExecutionRoleArn; }
321 template <typename ServiceExecutionRoleArnT = Aws::String>
322 void SetServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) {
323 m_serviceExecutionRoleArnHasBeenSet = true;
324 m_serviceExecutionRoleArn = std::forward<ServiceExecutionRoleArnT>(value);
325 }
326 template <typename ServiceExecutionRoleArnT = Aws::String>
327 DescribeConnectorResult& WithServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) {
328 SetServiceExecutionRoleArn(std::forward<ServiceExecutionRoleArnT>(value));
329 return *this;
330 }
332
334
337 inline const WorkerConfigurationDescription& GetWorkerConfiguration() const { return m_workerConfiguration; }
338 template <typename WorkerConfigurationT = WorkerConfigurationDescription>
339 void SetWorkerConfiguration(WorkerConfigurationT&& value) {
340 m_workerConfigurationHasBeenSet = true;
341 m_workerConfiguration = std::forward<WorkerConfigurationT>(value);
342 }
343 template <typename WorkerConfigurationT = WorkerConfigurationDescription>
344 DescribeConnectorResult& WithWorkerConfiguration(WorkerConfigurationT&& value) {
345 SetWorkerConfiguration(std::forward<WorkerConfigurationT>(value));
346 return *this;
347 }
349
351
354 inline const StateDescription& GetStateDescription() const { return m_stateDescription; }
355 template <typename StateDescriptionT = StateDescription>
356 void SetStateDescription(StateDescriptionT&& value) {
357 m_stateDescriptionHasBeenSet = true;
358 m_stateDescription = std::forward<StateDescriptionT>(value);
359 }
360 template <typename StateDescriptionT = StateDescription>
361 DescribeConnectorResult& WithStateDescription(StateDescriptionT&& value) {
362 SetStateDescription(std::forward<StateDescriptionT>(value));
363 return *this;
364 }
366
368
369 inline const Aws::String& GetRequestId() const { return m_requestId; }
370 template <typename RequestIdT = Aws::String>
371 void SetRequestId(RequestIdT&& value) {
372 m_requestIdHasBeenSet = true;
373 m_requestId = std::forward<RequestIdT>(value);
374 }
375 template <typename RequestIdT = Aws::String>
377 SetRequestId(std::forward<RequestIdT>(value));
378 return *this;
379 }
381 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
382
383 private:
384 CapacityDescription m_capacity;
385
386 Aws::String m_connectorArn;
387
388 Aws::Map<Aws::String, Aws::String> m_connectorConfiguration;
389
390 Aws::String m_connectorDescription;
391
392 Aws::String m_connectorName;
393
394 ConnectorState m_connectorState{ConnectorState::NOT_SET};
395
396 Aws::Utils::DateTime m_creationTime{};
397
398 Aws::String m_currentVersion;
399
400 KafkaClusterDescription m_kafkaCluster;
401
402 KafkaClusterClientAuthenticationDescription m_kafkaClusterClientAuthentication;
403
404 KafkaClusterEncryptionInTransitDescription m_kafkaClusterEncryptionInTransit;
405
406 Aws::String m_kafkaConnectVersion;
407
408 LogDeliveryDescription m_logDelivery;
409
410 NetworkType m_networkType{NetworkType::NOT_SET};
411
413
414 Aws::String m_serviceExecutionRoleArn;
415
416 WorkerConfigurationDescription m_workerConfiguration;
417
418 StateDescription m_stateDescription;
419
420 Aws::String m_requestId;
421 Aws::Http::HttpResponseCode m_HttpResponseCode;
422 bool m_capacityHasBeenSet = false;
423 bool m_connectorArnHasBeenSet = false;
424 bool m_connectorConfigurationHasBeenSet = false;
425 bool m_connectorDescriptionHasBeenSet = false;
426 bool m_connectorNameHasBeenSet = false;
427 bool m_connectorStateHasBeenSet = false;
428 bool m_creationTimeHasBeenSet = false;
429 bool m_currentVersionHasBeenSet = false;
430 bool m_kafkaClusterHasBeenSet = false;
431 bool m_kafkaClusterClientAuthenticationHasBeenSet = false;
432 bool m_kafkaClusterEncryptionInTransitHasBeenSet = false;
433 bool m_kafkaConnectVersionHasBeenSet = false;
434 bool m_logDeliveryHasBeenSet = false;
435 bool m_networkTypeHasBeenSet = false;
436 bool m_pluginsHasBeenSet = false;
437 bool m_serviceExecutionRoleArnHasBeenSet = false;
438 bool m_workerConfigurationHasBeenSet = false;
439 bool m_stateDescriptionHasBeenSet = false;
440 bool m_requestIdHasBeenSet = false;
441};
442
443} // namespace Model
444} // namespace KafkaConnect
445} // namespace Aws
void SetKafkaClusterClientAuthentication(KafkaClusterClientAuthenticationT &&value)
void SetWorkerConfiguration(WorkerConfigurationT &&value)
DescribeConnectorResult & WithCreationTime(CreationTimeT &&value)
DescribeConnectorResult & WithKafkaCluster(KafkaClusterT &&value)
DescribeConnectorResult & AddConnectorConfiguration(ConnectorConfigurationKeyT &&key, ConnectorConfigurationValueT &&value)
DescribeConnectorResult & WithStateDescription(StateDescriptionT &&value)
const KafkaClusterClientAuthenticationDescription & GetKafkaClusterClientAuthentication() const
DescribeConnectorResult & WithKafkaClusterClientAuthentication(KafkaClusterClientAuthenticationT &&value)
DescribeConnectorResult & WithKafkaConnectVersion(KafkaConnectVersionT &&value)
DescribeConnectorResult & WithServiceExecutionRoleArn(ServiceExecutionRoleArnT &&value)
const WorkerConfigurationDescription & GetWorkerConfiguration() const
const LogDeliveryDescription & GetLogDelivery() const
DescribeConnectorResult & AddPlugins(PluginsT &&value)
DescribeConnectorResult & WithRequestId(RequestIdT &&value)
void SetKafkaClusterEncryptionInTransit(KafkaClusterEncryptionInTransitT &&value)
const KafkaClusterDescription & GetKafkaCluster() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetConnectorDescription(ConnectorDescriptionT &&value)
DescribeConnectorResult & WithConnectorArn(ConnectorArnT &&value)
DescribeConnectorResult & WithConnectorConfiguration(ConnectorConfigurationT &&value)
DescribeConnectorResult & WithCapacity(CapacityT &&value)
AWS_KAFKACONNECT_API DescribeConnectorResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeConnectorResult & WithLogDelivery(LogDeliveryT &&value)
DescribeConnectorResult & WithKafkaClusterEncryptionInTransit(KafkaClusterEncryptionInTransitT &&value)
DescribeConnectorResult & WithConnectorDescription(ConnectorDescriptionT &&value)
AWS_KAFKACONNECT_API DescribeConnectorResult()=default
DescribeConnectorResult & WithCurrentVersion(CurrentVersionT &&value)
DescribeConnectorResult & WithPlugins(PluginsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetConnectorConfiguration() const
void SetConnectorConfiguration(ConnectorConfigurationT &&value)
void SetKafkaConnectVersion(KafkaConnectVersionT &&value)
void SetServiceExecutionRoleArn(ServiceExecutionRoleArnT &&value)
DescribeConnectorResult & WithConnectorState(ConnectorState value)
DescribeConnectorResult & WithNetworkType(NetworkType value)
const KafkaClusterEncryptionInTransitDescription & GetKafkaClusterEncryptionInTransit() const
DescribeConnectorResult & WithConnectorName(ConnectorNameT &&value)
AWS_KAFKACONNECT_API DescribeConnectorResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeConnectorResult & WithWorkerConfiguration(WorkerConfigurationT &&value)
const Aws::Vector< PluginDescription > & GetPlugins() const
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
Aws::Utils::Json::JsonValue JsonValue