AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBroker(const Aws::String& value) { m_brokerHasBeenSet = true; m_broker = value; }
61 inline void SetBroker(Aws::String&& value) { m_brokerHasBeenSet = true; m_broker = std::move(value); }
62 inline void SetBroker(const char* value) { m_brokerHasBeenSet = true; m_broker.assign(value); }
63 inline KafkaSettings& WithBroker(const Aws::String& value) { SetBroker(value); return *this;}
64 inline KafkaSettings& WithBroker(Aws::String&& value) { SetBroker(std::move(value)); return *this;}
65 inline KafkaSettings& WithBroker(const char* value) { SetBroker(value); return *this;}
67
69
73 inline const Aws::String& GetTopic() const{ return m_topic; }
74 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
75 inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; }
76 inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); }
77 inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); }
78 inline KafkaSettings& WithTopic(const Aws::String& value) { SetTopic(value); return *this;}
79 inline KafkaSettings& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;}
80 inline KafkaSettings& WithTopic(const char* value) { SetTopic(value); return *this;}
82
84
89 inline const MessageFormatValue& GetMessageFormat() const{ return m_messageFormat; }
90 inline bool MessageFormatHasBeenSet() const { return m_messageFormatHasBeenSet; }
91 inline void SetMessageFormat(const MessageFormatValue& value) { m_messageFormatHasBeenSet = true; m_messageFormat = value; }
92 inline void SetMessageFormat(MessageFormatValue&& value) { m_messageFormatHasBeenSet = true; m_messageFormat = std::move(value); }
93 inline KafkaSettings& WithMessageFormat(const MessageFormatValue& value) { SetMessageFormat(value); return *this;}
94 inline KafkaSettings& WithMessageFormat(MessageFormatValue&& value) { SetMessageFormat(std::move(value)); return *this;}
96
98
105 inline bool GetIncludeTransactionDetails() const{ return m_includeTransactionDetails; }
106 inline bool IncludeTransactionDetailsHasBeenSet() const { return m_includeTransactionDetailsHasBeenSet; }
107 inline void SetIncludeTransactionDetails(bool value) { m_includeTransactionDetailsHasBeenSet = true; m_includeTransactionDetails = value; }
110
112
117 inline bool GetIncludePartitionValue() const{ return m_includePartitionValue; }
118 inline bool IncludePartitionValueHasBeenSet() const { return m_includePartitionValueHasBeenSet; }
119 inline void SetIncludePartitionValue(bool value) { m_includePartitionValueHasBeenSet = true; m_includePartitionValue = value; }
120 inline KafkaSettings& WithIncludePartitionValue(bool value) { SetIncludePartitionValue(value); return *this;}
122
124
132 inline bool GetPartitionIncludeSchemaTable() const{ return m_partitionIncludeSchemaTable; }
133 inline bool PartitionIncludeSchemaTableHasBeenSet() const { return m_partitionIncludeSchemaTableHasBeenSet; }
134 inline void SetPartitionIncludeSchemaTable(bool value) { m_partitionIncludeSchemaTableHasBeenSet = true; m_partitionIncludeSchemaTable = value; }
137
139
145 inline bool GetIncludeTableAlterOperations() const{ return m_includeTableAlterOperations; }
146 inline bool IncludeTableAlterOperationsHasBeenSet() const { return m_includeTableAlterOperationsHasBeenSet; }
147 inline void SetIncludeTableAlterOperations(bool value) { m_includeTableAlterOperationsHasBeenSet = true; m_includeTableAlterOperations = value; }
150
152
157 inline bool GetIncludeControlDetails() const{ return m_includeControlDetails; }
158 inline bool IncludeControlDetailsHasBeenSet() const { return m_includeControlDetailsHasBeenSet; }
159 inline void SetIncludeControlDetails(bool value) { m_includeControlDetailsHasBeenSet = true; m_includeControlDetails = value; }
160 inline KafkaSettings& WithIncludeControlDetails(bool value) { SetIncludeControlDetails(value); return *this;}
162
164
168 inline int GetMessageMaxBytes() const{ return m_messageMaxBytes; }
169 inline bool MessageMaxBytesHasBeenSet() const { return m_messageMaxBytesHasBeenSet; }
170 inline void SetMessageMaxBytes(int value) { m_messageMaxBytesHasBeenSet = true; m_messageMaxBytes = value; }
171 inline KafkaSettings& WithMessageMaxBytes(int value) { SetMessageMaxBytes(value); return *this;}
173
175
179 inline bool GetIncludeNullAndEmpty() const{ return m_includeNullAndEmpty; }
180 inline bool IncludeNullAndEmptyHasBeenSet() const { return m_includeNullAndEmptyHasBeenSet; }
181 inline void SetIncludeNullAndEmpty(bool value) { m_includeNullAndEmptyHasBeenSet = true; m_includeNullAndEmpty = value; }
182 inline KafkaSettings& WithIncludeNullAndEmpty(bool value) { SetIncludeNullAndEmpty(value); return *this;}
184
186
193 inline const KafkaSecurityProtocol& GetSecurityProtocol() const{ return m_securityProtocol; }
194 inline bool SecurityProtocolHasBeenSet() const { return m_securityProtocolHasBeenSet; }
195 inline void SetSecurityProtocol(const KafkaSecurityProtocol& value) { m_securityProtocolHasBeenSet = true; m_securityProtocol = value; }
196 inline void SetSecurityProtocol(KafkaSecurityProtocol&& value) { m_securityProtocolHasBeenSet = true; m_securityProtocol = std::move(value); }
198 inline KafkaSettings& WithSecurityProtocol(KafkaSecurityProtocol&& value) { SetSecurityProtocol(std::move(value)); return *this;}
200
202
206 inline const Aws::String& GetSslClientCertificateArn() const{ return m_sslClientCertificateArn; }
207 inline bool SslClientCertificateArnHasBeenSet() const { return m_sslClientCertificateArnHasBeenSet; }
208 inline void SetSslClientCertificateArn(const Aws::String& value) { m_sslClientCertificateArnHasBeenSet = true; m_sslClientCertificateArn = value; }
209 inline void SetSslClientCertificateArn(Aws::String&& value) { m_sslClientCertificateArnHasBeenSet = true; m_sslClientCertificateArn = std::move(value); }
210 inline void SetSslClientCertificateArn(const char* value) { m_sslClientCertificateArnHasBeenSet = true; m_sslClientCertificateArn.assign(value); }
212 inline KafkaSettings& WithSslClientCertificateArn(Aws::String&& value) { SetSslClientCertificateArn(std::move(value)); return *this;}
213 inline KafkaSettings& WithSslClientCertificateArn(const char* value) { SetSslClientCertificateArn(value); return *this;}
215
217
221 inline const Aws::String& GetSslClientKeyArn() const{ return m_sslClientKeyArn; }
222 inline bool SslClientKeyArnHasBeenSet() const { return m_sslClientKeyArnHasBeenSet; }
223 inline void SetSslClientKeyArn(const Aws::String& value) { m_sslClientKeyArnHasBeenSet = true; m_sslClientKeyArn = value; }
224 inline void SetSslClientKeyArn(Aws::String&& value) { m_sslClientKeyArnHasBeenSet = true; m_sslClientKeyArn = std::move(value); }
225 inline void SetSslClientKeyArn(const char* value) { m_sslClientKeyArnHasBeenSet = true; m_sslClientKeyArn.assign(value); }
226 inline KafkaSettings& WithSslClientKeyArn(const Aws::String& value) { SetSslClientKeyArn(value); return *this;}
227 inline KafkaSettings& WithSslClientKeyArn(Aws::String&& value) { SetSslClientKeyArn(std::move(value)); return *this;}
228 inline KafkaSettings& WithSslClientKeyArn(const char* value) { SetSslClientKeyArn(value); return *this;}
230
232
236 inline const Aws::String& GetSslClientKeyPassword() const{ return m_sslClientKeyPassword; }
237 inline bool SslClientKeyPasswordHasBeenSet() const { return m_sslClientKeyPasswordHasBeenSet; }
238 inline void SetSslClientKeyPassword(const Aws::String& value) { m_sslClientKeyPasswordHasBeenSet = true; m_sslClientKeyPassword = value; }
239 inline void SetSslClientKeyPassword(Aws::String&& value) { m_sslClientKeyPasswordHasBeenSet = true; m_sslClientKeyPassword = std::move(value); }
240 inline void SetSslClientKeyPassword(const char* value) { m_sslClientKeyPasswordHasBeenSet = true; m_sslClientKeyPassword.assign(value); }
241 inline KafkaSettings& WithSslClientKeyPassword(const Aws::String& value) { SetSslClientKeyPassword(value); return *this;}
242 inline KafkaSettings& WithSslClientKeyPassword(Aws::String&& value) { SetSslClientKeyPassword(std::move(value)); return *this;}
243 inline KafkaSettings& WithSslClientKeyPassword(const char* value) { SetSslClientKeyPassword(value); return *this;}
245
247
251 inline const Aws::String& GetSslCaCertificateArn() const{ return m_sslCaCertificateArn; }
252 inline bool SslCaCertificateArnHasBeenSet() const { return m_sslCaCertificateArnHasBeenSet; }
253 inline void SetSslCaCertificateArn(const Aws::String& value) { m_sslCaCertificateArnHasBeenSet = true; m_sslCaCertificateArn = value; }
254 inline void SetSslCaCertificateArn(Aws::String&& value) { m_sslCaCertificateArnHasBeenSet = true; m_sslCaCertificateArn = std::move(value); }
255 inline void SetSslCaCertificateArn(const char* value) { m_sslCaCertificateArnHasBeenSet = true; m_sslCaCertificateArn.assign(value); }
256 inline KafkaSettings& WithSslCaCertificateArn(const Aws::String& value) { SetSslCaCertificateArn(value); return *this;}
257 inline KafkaSettings& WithSslCaCertificateArn(Aws::String&& value) { SetSslCaCertificateArn(std::move(value)); return *this;}
258 inline KafkaSettings& WithSslCaCertificateArn(const char* value) { SetSslCaCertificateArn(value); return *this;}
260
262
267 inline const Aws::String& GetSaslUsername() const{ return m_saslUsername; }
268 inline bool SaslUsernameHasBeenSet() const { return m_saslUsernameHasBeenSet; }
269 inline void SetSaslUsername(const Aws::String& value) { m_saslUsernameHasBeenSet = true; m_saslUsername = value; }
270 inline void SetSaslUsername(Aws::String&& value) { m_saslUsernameHasBeenSet = true; m_saslUsername = std::move(value); }
271 inline void SetSaslUsername(const char* value) { m_saslUsernameHasBeenSet = true; m_saslUsername.assign(value); }
272 inline KafkaSettings& WithSaslUsername(const Aws::String& value) { SetSaslUsername(value); return *this;}
273 inline KafkaSettings& WithSaslUsername(Aws::String&& value) { SetSaslUsername(std::move(value)); return *this;}
274 inline KafkaSettings& WithSaslUsername(const char* value) { SetSaslUsername(value); return *this;}
276
278
283 inline const Aws::String& GetSaslPassword() const{ return m_saslPassword; }
284 inline bool SaslPasswordHasBeenSet() const { return m_saslPasswordHasBeenSet; }
285 inline void SetSaslPassword(const Aws::String& value) { m_saslPasswordHasBeenSet = true; m_saslPassword = value; }
286 inline void SetSaslPassword(Aws::String&& value) { m_saslPasswordHasBeenSet = true; m_saslPassword = std::move(value); }
287 inline void SetSaslPassword(const char* value) { m_saslPasswordHasBeenSet = true; m_saslPassword.assign(value); }
288 inline KafkaSettings& WithSaslPassword(const Aws::String& value) { SetSaslPassword(value); return *this;}
289 inline KafkaSettings& WithSaslPassword(Aws::String&& value) { SetSaslPassword(std::move(value)); return *this;}
290 inline KafkaSettings& WithSaslPassword(const char* value) { SetSaslPassword(value); return *this;}
292
294
301 inline bool GetNoHexPrefix() const{ return m_noHexPrefix; }
302 inline bool NoHexPrefixHasBeenSet() const { return m_noHexPrefixHasBeenSet; }
303 inline void SetNoHexPrefix(bool value) { m_noHexPrefixHasBeenSet = true; m_noHexPrefix = value; }
304 inline KafkaSettings& WithNoHexPrefix(bool value) { SetNoHexPrefix(value); return *this;}
306
308
314 inline const KafkaSaslMechanism& GetSaslMechanism() const{ return m_saslMechanism; }
315 inline bool SaslMechanismHasBeenSet() const { return m_saslMechanismHasBeenSet; }
316 inline void SetSaslMechanism(const KafkaSaslMechanism& value) { m_saslMechanismHasBeenSet = true; m_saslMechanism = value; }
317 inline void SetSaslMechanism(KafkaSaslMechanism&& value) { m_saslMechanismHasBeenSet = true; m_saslMechanism = std::move(value); }
318 inline KafkaSettings& WithSaslMechanism(const KafkaSaslMechanism& value) { SetSaslMechanism(value); return *this;}
319 inline KafkaSettings& WithSaslMechanism(KafkaSaslMechanism&& value) { SetSaslMechanism(std::move(value)); return *this;}
321
323
327 inline const KafkaSslEndpointIdentificationAlgorithm& GetSslEndpointIdentificationAlgorithm() const{ return m_sslEndpointIdentificationAlgorithm; }
328 inline bool SslEndpointIdentificationAlgorithmHasBeenSet() const { return m_sslEndpointIdentificationAlgorithmHasBeenSet; }
329 inline void SetSslEndpointIdentificationAlgorithm(const KafkaSslEndpointIdentificationAlgorithm& value) { m_sslEndpointIdentificationAlgorithmHasBeenSet = true; m_sslEndpointIdentificationAlgorithm = value; }
330 inline void SetSslEndpointIdentificationAlgorithm(KafkaSslEndpointIdentificationAlgorithm&& value) { m_sslEndpointIdentificationAlgorithmHasBeenSet = true; m_sslEndpointIdentificationAlgorithm = std::move(value); }
334 private:
335
336 Aws::String m_broker;
337 bool m_brokerHasBeenSet = false;
338
339 Aws::String m_topic;
340 bool m_topicHasBeenSet = false;
341
342 MessageFormatValue m_messageFormat;
343 bool m_messageFormatHasBeenSet = false;
344
345 bool m_includeTransactionDetails;
346 bool m_includeTransactionDetailsHasBeenSet = false;
347
348 bool m_includePartitionValue;
349 bool m_includePartitionValueHasBeenSet = false;
350
351 bool m_partitionIncludeSchemaTable;
352 bool m_partitionIncludeSchemaTableHasBeenSet = false;
353
354 bool m_includeTableAlterOperations;
355 bool m_includeTableAlterOperationsHasBeenSet = false;
356
357 bool m_includeControlDetails;
358 bool m_includeControlDetailsHasBeenSet = false;
359
360 int m_messageMaxBytes;
361 bool m_messageMaxBytesHasBeenSet = false;
362
363 bool m_includeNullAndEmpty;
364 bool m_includeNullAndEmptyHasBeenSet = false;
365
366 KafkaSecurityProtocol m_securityProtocol;
367 bool m_securityProtocolHasBeenSet = false;
368
369 Aws::String m_sslClientCertificateArn;
370 bool m_sslClientCertificateArnHasBeenSet = false;
371
372 Aws::String m_sslClientKeyArn;
373 bool m_sslClientKeyArnHasBeenSet = false;
374
375 Aws::String m_sslClientKeyPassword;
376 bool m_sslClientKeyPasswordHasBeenSet = false;
377
378 Aws::String m_sslCaCertificateArn;
379 bool m_sslCaCertificateArnHasBeenSet = false;
380
381 Aws::String m_saslUsername;
382 bool m_saslUsernameHasBeenSet = false;
383
384 Aws::String m_saslPassword;
385 bool m_saslPasswordHasBeenSet = false;
386
387 bool m_noHexPrefix;
388 bool m_noHexPrefixHasBeenSet = false;
389
390 KafkaSaslMechanism m_saslMechanism;
391 bool m_saslMechanismHasBeenSet = false;
392
393 KafkaSslEndpointIdentificationAlgorithm m_sslEndpointIdentificationAlgorithm;
394 bool m_sslEndpointIdentificationAlgorithmHasBeenSet = false;
395 };
396
397} // namespace Model
398} // namespace DatabaseMigrationService
399} // namespace Aws
void SetMessageFormat(MessageFormatValue &&value)
KafkaSettings & WithPartitionIncludeSchemaTable(bool value)
KafkaSettings & WithIncludeTableAlterOperations(bool value)
const KafkaSecurityProtocol & GetSecurityProtocol() const
KafkaSettings & WithSslEndpointIdentificationAlgorithm(KafkaSslEndpointIdentificationAlgorithm &&value)
KafkaSettings & WithIncludeTransactionDetails(bool value)
void SetSslClientCertificateArn(const Aws::String &value)
void SetSslClientKeyPassword(const Aws::String &value)
KafkaSettings & WithSslClientCertificateArn(Aws::String &&value)
KafkaSettings & WithBroker(Aws::String &&value)
void SetSslEndpointIdentificationAlgorithm(KafkaSslEndpointIdentificationAlgorithm &&value)
KafkaSettings & WithSslCaCertificateArn(const Aws::String &value)
KafkaSettings & WithSslClientKeyPassword(const char *value)
KafkaSettings & WithMessageFormat(MessageFormatValue &&value)
KafkaSettings & WithSslClientKeyArn(const Aws::String &value)
void SetSslCaCertificateArn(const Aws::String &value)
KafkaSettings & WithSslCaCertificateArn(const char *value)
KafkaSettings & WithSaslPassword(Aws::String &&value)
KafkaSettings & WithSaslPassword(const Aws::String &value)
KafkaSettings & WithSaslMechanism(const KafkaSaslMechanism &value)
KafkaSettings & WithSecurityProtocol(const KafkaSecurityProtocol &value)
KafkaSettings & WithTopic(Aws::String &&value)
KafkaSettings & WithSecurityProtocol(KafkaSecurityProtocol &&value)
AWS_DATABASEMIGRATIONSERVICE_API KafkaSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
const KafkaSaslMechanism & GetSaslMechanism() const
KafkaSettings & WithSaslMechanism(KafkaSaslMechanism &&value)
KafkaSettings & WithBroker(const Aws::String &value)
KafkaSettings & WithSslCaCertificateArn(Aws::String &&value)
KafkaSettings & WithSslClientCertificateArn(const char *value)
void SetMessageFormat(const MessageFormatValue &value)
KafkaSettings & WithMessageFormat(const MessageFormatValue &value)
KafkaSettings & WithTopic(const char *value)
KafkaSettings & WithSaslUsername(const Aws::String &value)
void SetSslEndpointIdentificationAlgorithm(const KafkaSslEndpointIdentificationAlgorithm &value)
KafkaSettings & WithSaslPassword(const char *value)
AWS_DATABASEMIGRATIONSERVICE_API KafkaSettings(Aws::Utils::Json::JsonView jsonValue)
KafkaSettings & WithBroker(const char *value)
void SetSecurityProtocol(const KafkaSecurityProtocol &value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
KafkaSettings & WithTopic(const Aws::String &value)
KafkaSettings & WithSslClientKeyPassword(const Aws::String &value)
KafkaSettings & WithSslClientKeyArn(Aws::String &&value)
KafkaSettings & WithSslClientKeyArn(const char *value)
KafkaSettings & WithSslClientKeyPassword(Aws::String &&value)
void SetSaslMechanism(const KafkaSaslMechanism &value)
AWS_DATABASEMIGRATIONSERVICE_API KafkaSettings()
void SetSaslMechanism(KafkaSaslMechanism &&value)
const MessageFormatValue & GetMessageFormat() const
void SetSslClientKeyArn(const Aws::String &value)
KafkaSettings & WithSslEndpointIdentificationAlgorithm(const KafkaSslEndpointIdentificationAlgorithm &value)
const KafkaSslEndpointIdentificationAlgorithm & GetSslEndpointIdentificationAlgorithm() const
KafkaSettings & WithSslClientCertificateArn(const Aws::String &value)
KafkaSettings & WithSaslUsername(Aws::String &&value)
KafkaSettings & WithSaslUsername(const char *value)
void SetSecurityProtocol(KafkaSecurityProtocol &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue