AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
KafkaSettings.h
1
6#pragma once
7#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dms/model/MessageFormatValue.h>
10#include <aws/dms/model/KafkaSecurityProtocol.h>
11#include <aws/dms/model/KafkaSaslMechanism.h>
12#include <aws/dms/model/KafkaSslEndpointIdentificationAlgorithm.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DatabaseMigrationService
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_DATABASEMIGRATIONSERVICE_API KafkaSettings() = default;
42 AWS_DATABASEMIGRATIONSERVICE_API KafkaSettings(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DATABASEMIGRATIONSERVICE_API KafkaSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
58 inline const Aws::String& GetBroker() const { return m_broker; }
59 inline bool BrokerHasBeenSet() const { return m_brokerHasBeenSet; }
60 template<typename BrokerT = Aws::String>
61 void SetBroker(BrokerT&& value) { m_brokerHasBeenSet = true; m_broker = std::forward<BrokerT>(value); }
62 template<typename BrokerT = Aws::String>
63 KafkaSettings& WithBroker(BrokerT&& value) { SetBroker(std::forward<BrokerT>(value)); return *this;}
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) { m_topicHasBeenSet = true; m_topic = std::forward<TopicT>(value); }
75 template<typename TopicT = Aws::String>
76 KafkaSettings& WithTopic(TopicT&& value) { SetTopic(std::forward<TopicT>(value)); return *this;}
78
80
85 inline MessageFormatValue GetMessageFormat() const { return m_messageFormat; }
86 inline bool MessageFormatHasBeenSet() const { return m_messageFormatHasBeenSet; }
87 inline void SetMessageFormat(MessageFormatValue value) { m_messageFormatHasBeenSet = true; m_messageFormat = value; }
90
92
99 inline bool GetIncludeTransactionDetails() const { return m_includeTransactionDetails; }
100 inline bool IncludeTransactionDetailsHasBeenSet() const { return m_includeTransactionDetailsHasBeenSet; }
101 inline void SetIncludeTransactionDetails(bool value) { m_includeTransactionDetailsHasBeenSet = true; m_includeTransactionDetails = value; }
104
106
111 inline bool GetIncludePartitionValue() const { return m_includePartitionValue; }
112 inline bool IncludePartitionValueHasBeenSet() const { return m_includePartitionValueHasBeenSet; }
113 inline void SetIncludePartitionValue(bool value) { m_includePartitionValueHasBeenSet = true; m_includePartitionValue = value; }
114 inline KafkaSettings& WithIncludePartitionValue(bool value) { SetIncludePartitionValue(value); return *this;}
116
118
126 inline bool GetPartitionIncludeSchemaTable() const { return m_partitionIncludeSchemaTable; }
127 inline bool PartitionIncludeSchemaTableHasBeenSet() const { return m_partitionIncludeSchemaTableHasBeenSet; }
128 inline void SetPartitionIncludeSchemaTable(bool value) { m_partitionIncludeSchemaTableHasBeenSet = true; m_partitionIncludeSchemaTable = value; }
131
133
139 inline bool GetIncludeTableAlterOperations() const { return m_includeTableAlterOperations; }
140 inline bool IncludeTableAlterOperationsHasBeenSet() const { return m_includeTableAlterOperationsHasBeenSet; }
141 inline void SetIncludeTableAlterOperations(bool value) { m_includeTableAlterOperationsHasBeenSet = true; m_includeTableAlterOperations = value; }
144
146
151 inline bool GetIncludeControlDetails() const { return m_includeControlDetails; }
152 inline bool IncludeControlDetailsHasBeenSet() const { return m_includeControlDetailsHasBeenSet; }
153 inline void SetIncludeControlDetails(bool value) { m_includeControlDetailsHasBeenSet = true; m_includeControlDetails = value; }
154 inline KafkaSettings& WithIncludeControlDetails(bool value) { SetIncludeControlDetails(value); return *this;}
156
158
162 inline int GetMessageMaxBytes() const { return m_messageMaxBytes; }
163 inline bool MessageMaxBytesHasBeenSet() const { return m_messageMaxBytesHasBeenSet; }
164 inline void SetMessageMaxBytes(int value) { m_messageMaxBytesHasBeenSet = true; m_messageMaxBytes = value; }
165 inline KafkaSettings& WithMessageMaxBytes(int value) { SetMessageMaxBytes(value); return *this;}
167
169
173 inline bool GetIncludeNullAndEmpty() const { return m_includeNullAndEmpty; }
174 inline bool IncludeNullAndEmptyHasBeenSet() const { return m_includeNullAndEmptyHasBeenSet; }
175 inline void SetIncludeNullAndEmpty(bool value) { m_includeNullAndEmptyHasBeenSet = true; m_includeNullAndEmpty = value; }
176 inline KafkaSettings& WithIncludeNullAndEmpty(bool value) { SetIncludeNullAndEmpty(value); return *this;}
178
180
187 inline KafkaSecurityProtocol GetSecurityProtocol() const { return m_securityProtocol; }
188 inline bool SecurityProtocolHasBeenSet() const { return m_securityProtocolHasBeenSet; }
189 inline void SetSecurityProtocol(KafkaSecurityProtocol value) { m_securityProtocolHasBeenSet = true; m_securityProtocol = value; }
192
194
198 inline const Aws::String& GetSslClientCertificateArn() const { return m_sslClientCertificateArn; }
199 inline bool SslClientCertificateArnHasBeenSet() const { return m_sslClientCertificateArnHasBeenSet; }
200 template<typename SslClientCertificateArnT = Aws::String>
201 void SetSslClientCertificateArn(SslClientCertificateArnT&& value) { m_sslClientCertificateArnHasBeenSet = true; m_sslClientCertificateArn = std::forward<SslClientCertificateArnT>(value); }
202 template<typename SslClientCertificateArnT = Aws::String>
203 KafkaSettings& WithSslClientCertificateArn(SslClientCertificateArnT&& value) { SetSslClientCertificateArn(std::forward<SslClientCertificateArnT>(value)); return *this;}
205
207
211 inline const Aws::String& GetSslClientKeyArn() const { return m_sslClientKeyArn; }
212 inline bool SslClientKeyArnHasBeenSet() const { return m_sslClientKeyArnHasBeenSet; }
213 template<typename SslClientKeyArnT = Aws::String>
214 void SetSslClientKeyArn(SslClientKeyArnT&& value) { m_sslClientKeyArnHasBeenSet = true; m_sslClientKeyArn = std::forward<SslClientKeyArnT>(value); }
215 template<typename SslClientKeyArnT = Aws::String>
216 KafkaSettings& WithSslClientKeyArn(SslClientKeyArnT&& value) { SetSslClientKeyArn(std::forward<SslClientKeyArnT>(value)); return *this;}
218
220
224 inline const Aws::String& GetSslClientKeyPassword() const { return m_sslClientKeyPassword; }
225 inline bool SslClientKeyPasswordHasBeenSet() const { return m_sslClientKeyPasswordHasBeenSet; }
226 template<typename SslClientKeyPasswordT = Aws::String>
227 void SetSslClientKeyPassword(SslClientKeyPasswordT&& value) { m_sslClientKeyPasswordHasBeenSet = true; m_sslClientKeyPassword = std::forward<SslClientKeyPasswordT>(value); }
228 template<typename SslClientKeyPasswordT = Aws::String>
229 KafkaSettings& WithSslClientKeyPassword(SslClientKeyPasswordT&& value) { SetSslClientKeyPassword(std::forward<SslClientKeyPasswordT>(value)); return *this;}
231
233
237 inline const Aws::String& GetSslCaCertificateArn() const { return m_sslCaCertificateArn; }
238 inline bool SslCaCertificateArnHasBeenSet() const { return m_sslCaCertificateArnHasBeenSet; }
239 template<typename SslCaCertificateArnT = Aws::String>
240 void SetSslCaCertificateArn(SslCaCertificateArnT&& value) { m_sslCaCertificateArnHasBeenSet = true; m_sslCaCertificateArn = std::forward<SslCaCertificateArnT>(value); }
241 template<typename SslCaCertificateArnT = Aws::String>
242 KafkaSettings& WithSslCaCertificateArn(SslCaCertificateArnT&& value) { SetSslCaCertificateArn(std::forward<SslCaCertificateArnT>(value)); return *this;}
244
246
251 inline const Aws::String& GetSaslUsername() const { return m_saslUsername; }
252 inline bool SaslUsernameHasBeenSet() const { return m_saslUsernameHasBeenSet; }
253 template<typename SaslUsernameT = Aws::String>
254 void SetSaslUsername(SaslUsernameT&& value) { m_saslUsernameHasBeenSet = true; m_saslUsername = std::forward<SaslUsernameT>(value); }
255 template<typename SaslUsernameT = Aws::String>
256 KafkaSettings& WithSaslUsername(SaslUsernameT&& value) { SetSaslUsername(std::forward<SaslUsernameT>(value)); return *this;}
258
260
265 inline const Aws::String& GetSaslPassword() const { return m_saslPassword; }
266 inline bool SaslPasswordHasBeenSet() const { return m_saslPasswordHasBeenSet; }
267 template<typename SaslPasswordT = Aws::String>
268 void SetSaslPassword(SaslPasswordT&& value) { m_saslPasswordHasBeenSet = true; m_saslPassword = std::forward<SaslPasswordT>(value); }
269 template<typename SaslPasswordT = Aws::String>
270 KafkaSettings& WithSaslPassword(SaslPasswordT&& value) { SetSaslPassword(std::forward<SaslPasswordT>(value)); return *this;}
272
274
281 inline bool GetNoHexPrefix() const { return m_noHexPrefix; }
282 inline bool NoHexPrefixHasBeenSet() const { return m_noHexPrefixHasBeenSet; }
283 inline void SetNoHexPrefix(bool value) { m_noHexPrefixHasBeenSet = true; m_noHexPrefix = value; }
284 inline KafkaSettings& WithNoHexPrefix(bool value) { SetNoHexPrefix(value); return *this;}
286
288
294 inline KafkaSaslMechanism GetSaslMechanism() const { return m_saslMechanism; }
295 inline bool SaslMechanismHasBeenSet() const { return m_saslMechanismHasBeenSet; }
296 inline void SetSaslMechanism(KafkaSaslMechanism value) { m_saslMechanismHasBeenSet = true; m_saslMechanism = value; }
299
301
305 inline KafkaSslEndpointIdentificationAlgorithm GetSslEndpointIdentificationAlgorithm() const { return m_sslEndpointIdentificationAlgorithm; }
306 inline bool SslEndpointIdentificationAlgorithmHasBeenSet() const { return m_sslEndpointIdentificationAlgorithmHasBeenSet; }
307 inline void SetSslEndpointIdentificationAlgorithm(KafkaSslEndpointIdentificationAlgorithm value) { m_sslEndpointIdentificationAlgorithmHasBeenSet = true; m_sslEndpointIdentificationAlgorithm = value; }
310
312
315 inline bool GetUseLargeIntegerValue() const { return m_useLargeIntegerValue; }
316 inline bool UseLargeIntegerValueHasBeenSet() const { return m_useLargeIntegerValueHasBeenSet; }
317 inline void SetUseLargeIntegerValue(bool value) { m_useLargeIntegerValueHasBeenSet = true; m_useLargeIntegerValue = value; }
318 inline KafkaSettings& WithUseLargeIntegerValue(bool value) { SetUseLargeIntegerValue(value); return *this;}
320 private:
321
322 Aws::String m_broker;
323 bool m_brokerHasBeenSet = false;
324
325 Aws::String m_topic;
326 bool m_topicHasBeenSet = false;
327
329 bool m_messageFormatHasBeenSet = false;
330
331 bool m_includeTransactionDetails{false};
332 bool m_includeTransactionDetailsHasBeenSet = false;
333
334 bool m_includePartitionValue{false};
335 bool m_includePartitionValueHasBeenSet = false;
336
337 bool m_partitionIncludeSchemaTable{false};
338 bool m_partitionIncludeSchemaTableHasBeenSet = false;
339
340 bool m_includeTableAlterOperations{false};
341 bool m_includeTableAlterOperationsHasBeenSet = false;
342
343 bool m_includeControlDetails{false};
344 bool m_includeControlDetailsHasBeenSet = false;
345
346 int m_messageMaxBytes{0};
347 bool m_messageMaxBytesHasBeenSet = false;
348
349 bool m_includeNullAndEmpty{false};
350 bool m_includeNullAndEmptyHasBeenSet = false;
351
353 bool m_securityProtocolHasBeenSet = false;
354
355 Aws::String m_sslClientCertificateArn;
356 bool m_sslClientCertificateArnHasBeenSet = false;
357
358 Aws::String m_sslClientKeyArn;
359 bool m_sslClientKeyArnHasBeenSet = false;
360
361 Aws::String m_sslClientKeyPassword;
362 bool m_sslClientKeyPasswordHasBeenSet = false;
363
364 Aws::String m_sslCaCertificateArn;
365 bool m_sslCaCertificateArnHasBeenSet = false;
366
367 Aws::String m_saslUsername;
368 bool m_saslUsernameHasBeenSet = false;
369
370 Aws::String m_saslPassword;
371 bool m_saslPasswordHasBeenSet = false;
372
373 bool m_noHexPrefix{false};
374 bool m_noHexPrefixHasBeenSet = false;
375
377 bool m_saslMechanismHasBeenSet = false;
378
380 bool m_sslEndpointIdentificationAlgorithmHasBeenSet = false;
381
382 bool m_useLargeIntegerValue{false};
383 bool m_useLargeIntegerValueHasBeenSet = false;
384 };
385
386} // namespace Model
387} // namespace DatabaseMigrationService
388} // 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