Class CfnEndpoint.KafkaSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dms.CfnEndpoint.KafkaSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpoint.KafkaSettingsProperty>
- Enclosing interface:
- CfnEndpoint.KafkaSettingsProperty
@Stability(Stable)
public static final class CfnEndpoint.KafkaSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpoint.KafkaSettingsProperty>
A builder for
CfnEndpoint.KafkaSettingsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnEndpoint.KafkaSettingsProperty.getBroker()
build()
Builds the configured instance.includeControlDetails
(Boolean includeControlDetails) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludeControlDetails()
includeControlDetails
(IResolvable includeControlDetails) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludeControlDetails()
includeNullAndEmpty
(Boolean includeNullAndEmpty) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludeNullAndEmpty()
includeNullAndEmpty
(IResolvable includeNullAndEmpty) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludeNullAndEmpty()
includePartitionValue
(Boolean includePartitionValue) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludePartitionValue()
includePartitionValue
(IResolvable includePartitionValue) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludePartitionValue()
includeTableAlterOperations
(Boolean includeTableAlterOperations) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludeTableAlterOperations()
includeTableAlterOperations
(IResolvable includeTableAlterOperations) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludeTableAlterOperations()
includeTransactionDetails
(Boolean includeTransactionDetails) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludeTransactionDetails()
includeTransactionDetails
(IResolvable includeTransactionDetails) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludeTransactionDetails()
messageFormat
(String messageFormat) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getMessageFormat()
messageMaxBytes
(Number messageMaxBytes) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getMessageMaxBytes()
noHexPrefix
(Boolean noHexPrefix) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getNoHexPrefix()
noHexPrefix
(IResolvable noHexPrefix) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getNoHexPrefix()
partitionIncludeSchemaTable
(Boolean partitionIncludeSchemaTable) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getPartitionIncludeSchemaTable()
partitionIncludeSchemaTable
(IResolvable partitionIncludeSchemaTable) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getPartitionIncludeSchemaTable()
saslPassword
(String saslPassword) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getSaslPassword()
saslUserName
(String saslUserName) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getSaslUserName()
securityProtocol
(String securityProtocol) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getSecurityProtocol()
sslCaCertificateArn
(String sslCaCertificateArn) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getSslCaCertificateArn()
sslClientCertificateArn
(String sslClientCertificateArn) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getSslClientCertificateArn()
sslClientKeyArn
(String sslClientKeyArn) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getSslClientKeyArn()
sslClientKeyPassword
(String sslClientKeyPassword) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getSslClientKeyPassword()
Sets the value ofCfnEndpoint.KafkaSettingsProperty.getTopic()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
broker
Sets the value ofCfnEndpoint.KafkaSettingsProperty.getBroker()
- Parameters:
broker
- A comma-separated list of one or more broker locations in your Kafka cluster that host your Kafka instance. Specify each broker location in the form*broker-hostname-or-ip* : *port*
. For example,"ec2-12-345-678-901.compute-1.amazonaws.com:2345"
. For more information and examples of specifying a list of broker locations, see Using Apache Kafka as a target for AWS Database Migration Service in the AWS Database Migration Service User Guide .- Returns:
this
-
includeControlDetails
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder includeControlDetails(Boolean includeControlDetails) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludeControlDetails()
- Parameters:
includeControlDetails
- Shows detailed control information for table definition, column definition, and table and column changes in the Kafka message output. The default isfalse
.- Returns:
this
-
includeControlDetails
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder includeControlDetails(IResolvable includeControlDetails) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludeControlDetails()
- Parameters:
includeControlDetails
- Shows detailed control information for table definition, column definition, and table and column changes in the Kafka message output. The default isfalse
.- Returns:
this
-
includeNullAndEmpty
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder includeNullAndEmpty(Boolean includeNullAndEmpty) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludeNullAndEmpty()
- Parameters:
includeNullAndEmpty
- Include NULL and empty columns for records migrated to the endpoint. The default isfalse
.- Returns:
this
-
includeNullAndEmpty
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder includeNullAndEmpty(IResolvable includeNullAndEmpty) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludeNullAndEmpty()
- Parameters:
includeNullAndEmpty
- Include NULL and empty columns for records migrated to the endpoint. The default isfalse
.- Returns:
this
-
includePartitionValue
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder includePartitionValue(Boolean includePartitionValue) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludePartitionValue()
- Parameters:
includePartitionValue
- Shows the partition value within the Kafka message output unless the partition type isschema-table-type
. The default isfalse
.- Returns:
this
-
includePartitionValue
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder includePartitionValue(IResolvable includePartitionValue) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludePartitionValue()
- Parameters:
includePartitionValue
- Shows the partition value within the Kafka message output unless the partition type isschema-table-type
. The default isfalse
.- Returns:
this
-
includeTableAlterOperations
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder includeTableAlterOperations(Boolean includeTableAlterOperations) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludeTableAlterOperations()
- Parameters:
includeTableAlterOperations
- Includes any data definition language (DDL) operations that change the table in the control data, such asrename-table
,drop-table
,add-column
,drop-column
, andrename-column
. The default isfalse
.- Returns:
this
-
includeTableAlterOperations
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder includeTableAlterOperations(IResolvable includeTableAlterOperations) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludeTableAlterOperations()
- Parameters:
includeTableAlterOperations
- Includes any data definition language (DDL) operations that change the table in the control data, such asrename-table
,drop-table
,add-column
,drop-column
, andrename-column
. The default isfalse
.- Returns:
this
-
includeTransactionDetails
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder includeTransactionDetails(Boolean includeTransactionDetails) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludeTransactionDetails()
- Parameters:
includeTransactionDetails
- Provides detailed transaction information from the source database. This information includes a commit timestamp, a log position, and values fortransaction_id
, previoustransaction_id
, andtransaction_record_id
(the record offset within a transaction). The default isfalse
.- Returns:
this
-
includeTransactionDetails
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder includeTransactionDetails(IResolvable includeTransactionDetails) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getIncludeTransactionDetails()
- Parameters:
includeTransactionDetails
- Provides detailed transaction information from the source database. This information includes a commit timestamp, a log position, and values fortransaction_id
, previoustransaction_id
, andtransaction_record_id
(the record offset within a transaction). The default isfalse
.- Returns:
this
-
messageFormat
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder messageFormat(String messageFormat) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getMessageFormat()
- Parameters:
messageFormat
- The output format for the records created on the endpoint. The message format isJSON
(default) orJSON_UNFORMATTED
(a single line with no tab).- Returns:
this
-
messageMaxBytes
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder messageMaxBytes(Number messageMaxBytes) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getMessageMaxBytes()
- Parameters:
messageMaxBytes
- The maximum size in bytes for records created on the endpoint The default is 1,000,000.- Returns:
this
-
noHexPrefix
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder noHexPrefix(Boolean noHexPrefix) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getNoHexPrefix()
- Parameters:
noHexPrefix
- Set this optional parameter totrue
to avoid adding a '0x' prefix to raw data in hexadecimal format. For example, by default, AWS DMS adds a '0x' prefix to the LOB column type in hexadecimal format moving from an Oracle source to a Kafka target. Use theNoHexPrefix
endpoint setting to enable migration of RAW data type columns without adding the '0x' prefix.- Returns:
this
-
noHexPrefix
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder noHexPrefix(IResolvable noHexPrefix) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getNoHexPrefix()
- Parameters:
noHexPrefix
- Set this optional parameter totrue
to avoid adding a '0x' prefix to raw data in hexadecimal format. For example, by default, AWS DMS adds a '0x' prefix to the LOB column type in hexadecimal format moving from an Oracle source to a Kafka target. Use theNoHexPrefix
endpoint setting to enable migration of RAW data type columns without adding the '0x' prefix.- Returns:
this
-
partitionIncludeSchemaTable
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder partitionIncludeSchemaTable(Boolean partitionIncludeSchemaTable) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getPartitionIncludeSchemaTable()
- Parameters:
partitionIncludeSchemaTable
- Prefixes schema and table names to partition values, when the partition type isprimary-key-type
. Doing this increases data distribution among Kafka partitions. For example, suppose that a SysBench schema has thousands of tables and each table has only limited range for a primary key. In this case, the same primary key is sent from thousands of tables to the same partition, which causes throttling. The default isfalse
.- Returns:
this
-
partitionIncludeSchemaTable
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder partitionIncludeSchemaTable(IResolvable partitionIncludeSchemaTable) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getPartitionIncludeSchemaTable()
- Parameters:
partitionIncludeSchemaTable
- Prefixes schema and table names to partition values, when the partition type isprimary-key-type
. Doing this increases data distribution among Kafka partitions. For example, suppose that a SysBench schema has thousands of tables and each table has only limited range for a primary key. In this case, the same primary key is sent from thousands of tables to the same partition, which causes throttling. The default isfalse
.- Returns:
this
-
saslPassword
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder saslPassword(String saslPassword) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getSaslPassword()
- Parameters:
saslPassword
- The secure password that you created when you first set up your Amazon MSK cluster to validate a client identity and make an encrypted connection between server and client using SASL-SSL authentication.- Returns:
this
-
saslUserName
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder saslUserName(String saslUserName) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getSaslUserName()
- Parameters:
saslUserName
- The secure user name you created when you first set up your Amazon MSK cluster to validate a client identity and make an encrypted connection between server and client using SASL-SSL authentication.- Returns:
this
-
securityProtocol
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder securityProtocol(String securityProtocol) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getSecurityProtocol()
- Parameters:
securityProtocol
- Set secure connection to a Kafka target endpoint using Transport Layer Security (TLS). Options includessl-encryption
,ssl-authentication
, andsasl-ssl
.sasl-ssl
requiresSaslUsername
andSaslPassword
.- Returns:
this
-
sslCaCertificateArn
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder sslCaCertificateArn(String sslCaCertificateArn) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getSslCaCertificateArn()
- Parameters:
sslCaCertificateArn
- The Amazon Resource Name (ARN) for the private certificate authority (CA) cert that AWS DMS uses to securely connect to your Kafka target endpoint.- Returns:
this
-
sslClientCertificateArn
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder sslClientCertificateArn(String sslClientCertificateArn) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getSslClientCertificateArn()
- Parameters:
sslClientCertificateArn
- The Amazon Resource Name (ARN) of the client certificate used to securely connect to a Kafka target endpoint.- Returns:
this
-
sslClientKeyArn
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder sslClientKeyArn(String sslClientKeyArn) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getSslClientKeyArn()
- Parameters:
sslClientKeyArn
- The Amazon Resource Name (ARN) for the client private key used to securely connect to a Kafka target endpoint.- Returns:
this
-
sslClientKeyPassword
@Stability(Stable) public CfnEndpoint.KafkaSettingsProperty.Builder sslClientKeyPassword(String sslClientKeyPassword) Sets the value ofCfnEndpoint.KafkaSettingsProperty.getSslClientKeyPassword()
- Parameters:
sslClientKeyPassword
- The password for the client private key used to securely connect to a Kafka target endpoint.- Returns:
this
-
topic
Sets the value ofCfnEndpoint.KafkaSettingsProperty.getTopic()
- Parameters:
topic
- The topic to which you migrate the data. If you don't specify a topic, AWS DMS specifies"kafka-default-topic"
as the migration topic.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEndpoint.KafkaSettingsProperty>
- Returns:
- a new instance of
CfnEndpoint.KafkaSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-