AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
KafkaSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
9#include <aws/dms/model/KafkaSaslMechanism.h>
10#include <aws/dms/model/KafkaSecurityProtocol.h>
11#include <aws/dms/model/KafkaSslEndpointIdentificationAlgorithm.h>
12#include <aws/dms/model/MessageFormatValue.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DatabaseMigrationService {
24namespace Model {
25
35 public:
36 AWS_DATABASEMIGRATIONSERVICE_API KafkaSettings() = default;
37 AWS_DATABASEMIGRATIONSERVICE_API KafkaSettings(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATABASEMIGRATIONSERVICE_API KafkaSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
52 inline const Aws::String& GetBroker() const { return m_broker; }
53 inline bool BrokerHasBeenSet() const { return m_brokerHasBeenSet; }
54 template <typename BrokerT = Aws::String>
55 void SetBroker(BrokerT&& value) {
56 m_brokerHasBeenSet = true;
57 m_broker = std::forward<BrokerT>(value);
58 }
59 template <typename BrokerT = Aws::String>
60 KafkaSettings& WithBroker(BrokerT&& value) {
61 SetBroker(std::forward<BrokerT>(value));
62 return *this;
63 }
65
67
71 inline const Aws::String& GetTopic() const { return m_topic; }
72 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
73 template <typename TopicT = Aws::String>
74 void SetTopic(TopicT&& value) {
75 m_topicHasBeenSet = true;
76 m_topic = std::forward<TopicT>(value);
77 }
78 template <typename TopicT = Aws::String>
79 KafkaSettings& WithTopic(TopicT&& value) {
80 SetTopic(std::forward<TopicT>(value));
81 return *this;
82 }
84
86
91 inline MessageFormatValue GetMessageFormat() const { return m_messageFormat; }
92 inline bool MessageFormatHasBeenSet() const { return m_messageFormatHasBeenSet; }
94 m_messageFormatHasBeenSet = true;
95 m_messageFormat = value;
96 }
98 SetMessageFormat(value);
99 return *this;
100 }
102
104
111 inline bool GetIncludeTransactionDetails() const { return m_includeTransactionDetails; }
112 inline bool IncludeTransactionDetailsHasBeenSet() const { return m_includeTransactionDetailsHasBeenSet; }
113 inline void SetIncludeTransactionDetails(bool value) {
114 m_includeTransactionDetailsHasBeenSet = true;
115 m_includeTransactionDetails = value;
116 }
119 return *this;
120 }
122
124
129 inline bool GetIncludePartitionValue() const { return m_includePartitionValue; }
130 inline bool IncludePartitionValueHasBeenSet() const { return m_includePartitionValueHasBeenSet; }
131 inline void SetIncludePartitionValue(bool value) {
132 m_includePartitionValueHasBeenSet = true;
133 m_includePartitionValue = value;
134 }
137 return *this;
138 }
140
142
150 inline bool GetPartitionIncludeSchemaTable() const { return m_partitionIncludeSchemaTable; }
151 inline bool PartitionIncludeSchemaTableHasBeenSet() const { return m_partitionIncludeSchemaTableHasBeenSet; }
152 inline void SetPartitionIncludeSchemaTable(bool value) {
153 m_partitionIncludeSchemaTableHasBeenSet = true;
154 m_partitionIncludeSchemaTable = value;
155 }
158 return *this;
159 }
161
163
169 inline bool GetIncludeTableAlterOperations() const { return m_includeTableAlterOperations; }
170 inline bool IncludeTableAlterOperationsHasBeenSet() const { return m_includeTableAlterOperationsHasBeenSet; }
171 inline void SetIncludeTableAlterOperations(bool value) {
172 m_includeTableAlterOperationsHasBeenSet = true;
173 m_includeTableAlterOperations = value;
174 }
177 return *this;
178 }
180
182
187 inline bool GetIncludeControlDetails() const { return m_includeControlDetails; }
188 inline bool IncludeControlDetailsHasBeenSet() const { return m_includeControlDetailsHasBeenSet; }
189 inline void SetIncludeControlDetails(bool value) {
190 m_includeControlDetailsHasBeenSet = true;
191 m_includeControlDetails = value;
192 }
195 return *this;
196 }
198
200
204 inline int GetMessageMaxBytes() const { return m_messageMaxBytes; }
205 inline bool MessageMaxBytesHasBeenSet() const { return m_messageMaxBytesHasBeenSet; }
206 inline void SetMessageMaxBytes(int value) {
207 m_messageMaxBytesHasBeenSet = true;
208 m_messageMaxBytes = value;
209 }
211 SetMessageMaxBytes(value);
212 return *this;
213 }
215
217
221 inline bool GetIncludeNullAndEmpty() const { return m_includeNullAndEmpty; }
222 inline bool IncludeNullAndEmptyHasBeenSet() const { return m_includeNullAndEmptyHasBeenSet; }
223 inline void SetIncludeNullAndEmpty(bool value) {
224 m_includeNullAndEmptyHasBeenSet = true;
225 m_includeNullAndEmpty = value;
226 }
229 return *this;
230 }
232
234
241 inline KafkaSecurityProtocol GetSecurityProtocol() const { return m_securityProtocol; }
242 inline bool SecurityProtocolHasBeenSet() const { return m_securityProtocolHasBeenSet; }
244 m_securityProtocolHasBeenSet = true;
245 m_securityProtocol = value;
246 }
248 SetSecurityProtocol(value);
249 return *this;
250 }
252
254
258 inline const Aws::String& GetSslClientCertificateArn() const { return m_sslClientCertificateArn; }
259 inline bool SslClientCertificateArnHasBeenSet() const { return m_sslClientCertificateArnHasBeenSet; }
260 template <typename SslClientCertificateArnT = Aws::String>
261 void SetSslClientCertificateArn(SslClientCertificateArnT&& value) {
262 m_sslClientCertificateArnHasBeenSet = true;
263 m_sslClientCertificateArn = std::forward<SslClientCertificateArnT>(value);
264 }
265 template <typename SslClientCertificateArnT = Aws::String>
266 KafkaSettings& WithSslClientCertificateArn(SslClientCertificateArnT&& value) {
267 SetSslClientCertificateArn(std::forward<SslClientCertificateArnT>(value));
268 return *this;
269 }
271
273
277 inline const Aws::String& GetSslClientKeyArn() const { return m_sslClientKeyArn; }
278 inline bool SslClientKeyArnHasBeenSet() const { return m_sslClientKeyArnHasBeenSet; }
279 template <typename SslClientKeyArnT = Aws::String>
280 void SetSslClientKeyArn(SslClientKeyArnT&& value) {
281 m_sslClientKeyArnHasBeenSet = true;
282 m_sslClientKeyArn = std::forward<SslClientKeyArnT>(value);
283 }
284 template <typename SslClientKeyArnT = Aws::String>
285 KafkaSettings& WithSslClientKeyArn(SslClientKeyArnT&& value) {
286 SetSslClientKeyArn(std::forward<SslClientKeyArnT>(value));
287 return *this;
288 }
290
292
296 inline const Aws::String& GetSslClientKeyPassword() const { return m_sslClientKeyPassword; }
297 inline bool SslClientKeyPasswordHasBeenSet() const { return m_sslClientKeyPasswordHasBeenSet; }
298 template <typename SslClientKeyPasswordT = Aws::String>
299 void SetSslClientKeyPassword(SslClientKeyPasswordT&& value) {
300 m_sslClientKeyPasswordHasBeenSet = true;
301 m_sslClientKeyPassword = std::forward<SslClientKeyPasswordT>(value);
302 }
303 template <typename SslClientKeyPasswordT = Aws::String>
304 KafkaSettings& WithSslClientKeyPassword(SslClientKeyPasswordT&& value) {
305 SetSslClientKeyPassword(std::forward<SslClientKeyPasswordT>(value));
306 return *this;
307 }
309
311
315 inline const Aws::String& GetSslCaCertificateArn() const { return m_sslCaCertificateArn; }
316 inline bool SslCaCertificateArnHasBeenSet() const { return m_sslCaCertificateArnHasBeenSet; }
317 template <typename SslCaCertificateArnT = Aws::String>
318 void SetSslCaCertificateArn(SslCaCertificateArnT&& value) {
319 m_sslCaCertificateArnHasBeenSet = true;
320 m_sslCaCertificateArn = std::forward<SslCaCertificateArnT>(value);
321 }
322 template <typename SslCaCertificateArnT = Aws::String>
323 KafkaSettings& WithSslCaCertificateArn(SslCaCertificateArnT&& value) {
324 SetSslCaCertificateArn(std::forward<SslCaCertificateArnT>(value));
325 return *this;
326 }
328
330
335 inline const Aws::String& GetSaslUsername() const { return m_saslUsername; }
336 inline bool SaslUsernameHasBeenSet() const { return m_saslUsernameHasBeenSet; }
337 template <typename SaslUsernameT = Aws::String>
338 void SetSaslUsername(SaslUsernameT&& value) {
339 m_saslUsernameHasBeenSet = true;
340 m_saslUsername = std::forward<SaslUsernameT>(value);
341 }
342 template <typename SaslUsernameT = Aws::String>
343 KafkaSettings& WithSaslUsername(SaslUsernameT&& value) {
344 SetSaslUsername(std::forward<SaslUsernameT>(value));
345 return *this;
346 }
348
350
355 inline const Aws::String& GetSaslPassword() const { return m_saslPassword; }
356 inline bool SaslPasswordHasBeenSet() const { return m_saslPasswordHasBeenSet; }
357 template <typename SaslPasswordT = Aws::String>
358 void SetSaslPassword(SaslPasswordT&& value) {
359 m_saslPasswordHasBeenSet = true;
360 m_saslPassword = std::forward<SaslPasswordT>(value);
361 }
362 template <typename SaslPasswordT = Aws::String>
363 KafkaSettings& WithSaslPassword(SaslPasswordT&& value) {
364 SetSaslPassword(std::forward<SaslPasswordT>(value));
365 return *this;
366 }
368
370
377 inline bool GetNoHexPrefix() const { return m_noHexPrefix; }
378 inline bool NoHexPrefixHasBeenSet() const { return m_noHexPrefixHasBeenSet; }
379 inline void SetNoHexPrefix(bool value) {
380 m_noHexPrefixHasBeenSet = true;
381 m_noHexPrefix = value;
382 }
383 inline KafkaSettings& WithNoHexPrefix(bool value) {
384 SetNoHexPrefix(value);
385 return *this;
386 }
388
390
396 inline KafkaSaslMechanism GetSaslMechanism() const { return m_saslMechanism; }
397 inline bool SaslMechanismHasBeenSet() const { return m_saslMechanismHasBeenSet; }
399 m_saslMechanismHasBeenSet = true;
400 m_saslMechanism = value;
401 }
403 SetSaslMechanism(value);
404 return *this;
405 }
407
409
414 return m_sslEndpointIdentificationAlgorithm;
415 }
416 inline bool SslEndpointIdentificationAlgorithmHasBeenSet() const { return m_sslEndpointIdentificationAlgorithmHasBeenSet; }
418 m_sslEndpointIdentificationAlgorithmHasBeenSet = true;
419 m_sslEndpointIdentificationAlgorithm = value;
420 }
423 return *this;
424 }
426
428
431 inline bool GetUseLargeIntegerValue() const { return m_useLargeIntegerValue; }
432 inline bool UseLargeIntegerValueHasBeenSet() const { return m_useLargeIntegerValueHasBeenSet; }
433 inline void SetUseLargeIntegerValue(bool value) {
434 m_useLargeIntegerValueHasBeenSet = true;
435 m_useLargeIntegerValue = value;
436 }
439 return *this;
440 }
442 private:
443 Aws::String m_broker;
444
445 Aws::String m_topic;
446
448
449 bool m_includeTransactionDetails{false};
450
451 bool m_includePartitionValue{false};
452
453 bool m_partitionIncludeSchemaTable{false};
454
455 bool m_includeTableAlterOperations{false};
456
457 bool m_includeControlDetails{false};
458
459 int m_messageMaxBytes{0};
460
461 bool m_includeNullAndEmpty{false};
462
464
465 Aws::String m_sslClientCertificateArn;
466
467 Aws::String m_sslClientKeyArn;
468
469 Aws::String m_sslClientKeyPassword;
470
471 Aws::String m_sslCaCertificateArn;
472
473 Aws::String m_saslUsername;
474
475 Aws::String m_saslPassword;
476
477 bool m_noHexPrefix{false};
478
480
482
483 bool m_useLargeIntegerValue{false};
484 bool m_brokerHasBeenSet = false;
485 bool m_topicHasBeenSet = false;
486 bool m_messageFormatHasBeenSet = false;
487 bool m_includeTransactionDetailsHasBeenSet = false;
488 bool m_includePartitionValueHasBeenSet = false;
489 bool m_partitionIncludeSchemaTableHasBeenSet = false;
490 bool m_includeTableAlterOperationsHasBeenSet = false;
491 bool m_includeControlDetailsHasBeenSet = false;
492 bool m_messageMaxBytesHasBeenSet = false;
493 bool m_includeNullAndEmptyHasBeenSet = false;
494 bool m_securityProtocolHasBeenSet = false;
495 bool m_sslClientCertificateArnHasBeenSet = false;
496 bool m_sslClientKeyArnHasBeenSet = false;
497 bool m_sslClientKeyPasswordHasBeenSet = false;
498 bool m_sslCaCertificateArnHasBeenSet = false;
499 bool m_saslUsernameHasBeenSet = false;
500 bool m_saslPasswordHasBeenSet = false;
501 bool m_noHexPrefixHasBeenSet = false;
502 bool m_saslMechanismHasBeenSet = false;
503 bool m_sslEndpointIdentificationAlgorithmHasBeenSet = false;
504 bool m_useLargeIntegerValueHasBeenSet = false;
505};
506
507} // namespace Model
508} // namespace DatabaseMigrationService
509} // namespace Aws
KafkaSettings & WithPartitionIncludeSchemaTable(bool value)
KafkaSettings & WithSaslPassword(SaslPasswordT &&value)
KafkaSettings & WithSaslMechanism(KafkaSaslMechanism value)
KafkaSettings & WithIncludeTableAlterOperations(bool value)
KafkaSslEndpointIdentificationAlgorithm GetSslEndpointIdentificationAlgorithm() const
void SetMessageFormat(MessageFormatValue value)
AWS_DATABASEMIGRATIONSERVICE_API KafkaSettings()=default
void SetSslClientCertificateArn(SslClientCertificateArnT &&value)
KafkaSettings & WithIncludeTransactionDetails(bool value)
KafkaSettings & WithSslClientCertificateArn(SslClientCertificateArnT &&value)
KafkaSettings & WithSaslUsername(SaslUsernameT &&value)
KafkaSettings & WithSslClientKeyPassword(SslClientKeyPasswordT &&value)
KafkaSettings & WithSecurityProtocol(KafkaSecurityProtocol value)
KafkaSettings & WithMessageFormat(MessageFormatValue value)
KafkaSettings & WithSslClientKeyArn(SslClientKeyArnT &&value)
void SetSslCaCertificateArn(SslCaCertificateArnT &&value)
AWS_DATABASEMIGRATIONSERVICE_API KafkaSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
KafkaSettings & WithSslCaCertificateArn(SslCaCertificateArnT &&value)
void SetSslEndpointIdentificationAlgorithm(KafkaSslEndpointIdentificationAlgorithm value)
void SetSslClientKeyPassword(SslClientKeyPasswordT &&value)
void SetSslClientKeyArn(SslClientKeyArnT &&value)
void SetSecurityProtocol(KafkaSecurityProtocol value)
AWS_DATABASEMIGRATIONSERVICE_API KafkaSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
KafkaSettings & WithSslEndpointIdentificationAlgorithm(KafkaSslEndpointIdentificationAlgorithm value)
KafkaSettings & WithBroker(BrokerT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue