Class CfnConnectorProps.Builder
java.lang.Object
software.amazon.awscdk.services.kafkaconnect.CfnConnectorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectorProps>
- Enclosing interface:
CfnConnectorProps
@Stability(Stable)
public static final class CfnConnectorProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectorProps>
A builder for
CfnConnectorProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacity(IResolvable capacity) Sets the value ofCfnConnectorProps.getCapacity()capacity(CfnConnector.CapacityProperty capacity) Sets the value ofCfnConnectorProps.getCapacity()connectorConfiguration(Map<String, String> connectorConfiguration) Sets the value ofCfnConnectorProps.getConnectorConfiguration()connectorConfiguration(IResolvable connectorConfiguration) Sets the value ofCfnConnectorProps.getConnectorConfiguration()connectorDescription(String connectorDescription) Sets the value ofCfnConnectorProps.getConnectorDescription()connectorName(String connectorName) Sets the value ofCfnConnectorProps.getConnectorName()kafkaCluster(IResolvable kafkaCluster) Sets the value ofCfnConnectorProps.getKafkaCluster()kafkaCluster(CfnConnector.KafkaClusterProperty kafkaCluster) Sets the value ofCfnConnectorProps.getKafkaCluster()kafkaClusterClientAuthentication(IResolvable kafkaClusterClientAuthentication) Sets the value ofCfnConnectorProps.getKafkaClusterClientAuthentication()kafkaClusterClientAuthentication(CfnConnector.KafkaClusterClientAuthenticationProperty kafkaClusterClientAuthentication) Sets the value ofCfnConnectorProps.getKafkaClusterClientAuthentication()kafkaClusterEncryptionInTransit(IResolvable kafkaClusterEncryptionInTransit) Sets the value ofCfnConnectorProps.getKafkaClusterEncryptionInTransit()kafkaClusterEncryptionInTransit(CfnConnector.KafkaClusterEncryptionInTransitProperty kafkaClusterEncryptionInTransit) Sets the value ofCfnConnectorProps.getKafkaClusterEncryptionInTransit()kafkaConnectVersion(String kafkaConnectVersion) Sets the value ofCfnConnectorProps.getKafkaConnectVersion()logDelivery(IResolvable logDelivery) Sets the value ofCfnConnectorProps.getLogDelivery()logDelivery(CfnConnector.LogDeliveryProperty logDelivery) Sets the value ofCfnConnectorProps.getLogDelivery()Sets the value ofCfnConnectorProps.getPlugins()plugins(IResolvable plugins) Sets the value ofCfnConnectorProps.getPlugins()serviceExecutionRoleArn(String serviceExecutionRoleArn) Sets the value ofCfnConnectorProps.getServiceExecutionRoleArn()Sets the value ofCfnConnectorProps.getTags()workerConfiguration(IResolvable workerConfiguration) Sets the value ofCfnConnectorProps.getWorkerConfiguration()workerConfiguration(CfnConnector.WorkerConfigurationProperty workerConfiguration) Sets the value ofCfnConnectorProps.getWorkerConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacity
Sets the value ofCfnConnectorProps.getCapacity()- Parameters:
capacity- The connector's compute capacity settings. This parameter is required.- Returns:
this
-
capacity
@Stability(Stable) public CfnConnectorProps.Builder capacity(CfnConnector.CapacityProperty capacity) Sets the value ofCfnConnectorProps.getCapacity()- Parameters:
capacity- The connector's compute capacity settings. This parameter is required.- Returns:
this
-
connectorConfiguration
@Stability(Stable) public CfnConnectorProps.Builder connectorConfiguration(Map<String, String> connectorConfiguration) Sets the value ofCfnConnectorProps.getConnectorConfiguration()- Parameters:
connectorConfiguration- The configuration of the connector. This parameter is required.- Returns:
this
-
connectorConfiguration
@Stability(Stable) public CfnConnectorProps.Builder connectorConfiguration(IResolvable connectorConfiguration) Sets the value ofCfnConnectorProps.getConnectorConfiguration()- Parameters:
connectorConfiguration- The configuration of the connector. This parameter is required.- Returns:
this
-
connectorName
Sets the value ofCfnConnectorProps.getConnectorName()- Parameters:
connectorName- The name of the connector. This parameter is required. The connector name must be unique and can include up to 128 characters. Valid characters you can include in a connector name are: a-z, A-Z, 0-9, and -.- Returns:
this
-
kafkaCluster
Sets the value ofCfnConnectorProps.getKafkaCluster()- Parameters:
kafkaCluster- The details of the Apache Kafka cluster to which the connector is connected. This parameter is required.- Returns:
this
-
kafkaCluster
@Stability(Stable) public CfnConnectorProps.Builder kafkaCluster(CfnConnector.KafkaClusterProperty kafkaCluster) Sets the value ofCfnConnectorProps.getKafkaCluster()- Parameters:
kafkaCluster- The details of the Apache Kafka cluster to which the connector is connected. This parameter is required.- Returns:
this
-
kafkaClusterClientAuthentication
@Stability(Stable) public CfnConnectorProps.Builder kafkaClusterClientAuthentication(IResolvable kafkaClusterClientAuthentication) Sets the value ofCfnConnectorProps.getKafkaClusterClientAuthentication()- Parameters:
kafkaClusterClientAuthentication- The type of client authentication used to connect to the Apache Kafka cluster. This parameter is required. The value is NONE when no client authentication is used.- Returns:
this
-
kafkaClusterClientAuthentication
@Stability(Stable) public CfnConnectorProps.Builder kafkaClusterClientAuthentication(CfnConnector.KafkaClusterClientAuthenticationProperty kafkaClusterClientAuthentication) Sets the value ofCfnConnectorProps.getKafkaClusterClientAuthentication()- Parameters:
kafkaClusterClientAuthentication- The type of client authentication used to connect to the Apache Kafka cluster. This parameter is required. The value is NONE when no client authentication is used.- Returns:
this
-
kafkaClusterEncryptionInTransit
@Stability(Stable) public CfnConnectorProps.Builder kafkaClusterEncryptionInTransit(IResolvable kafkaClusterEncryptionInTransit) Sets the value ofCfnConnectorProps.getKafkaClusterEncryptionInTransit()- Parameters:
kafkaClusterEncryptionInTransit- Details of encryption in transit to the Apache Kafka cluster. This parameter is required.- Returns:
this
-
kafkaClusterEncryptionInTransit
@Stability(Stable) public CfnConnectorProps.Builder kafkaClusterEncryptionInTransit(CfnConnector.KafkaClusterEncryptionInTransitProperty kafkaClusterEncryptionInTransit) Sets the value ofCfnConnectorProps.getKafkaClusterEncryptionInTransit()- Parameters:
kafkaClusterEncryptionInTransit- Details of encryption in transit to the Apache Kafka cluster. This parameter is required.- Returns:
this
-
kafkaConnectVersion
Sets the value ofCfnConnectorProps.getKafkaConnectVersion()- Parameters:
kafkaConnectVersion- The version of Kafka Connect. This parameter is required. It has to be compatible with both the Apache Kafka cluster's version and the plugins.- Returns:
this
-
plugins
Sets the value ofCfnConnectorProps.getPlugins()- Parameters:
plugins- Specifies which plugin to use for the connector. This parameter is required. You must specify a single-element list. Amazon MSK Connect does not currently support specifying multiple plugins.- Returns:
this
-
plugins
Sets the value ofCfnConnectorProps.getPlugins()- Parameters:
plugins- Specifies which plugin to use for the connector. This parameter is required. You must specify a single-element list. Amazon MSK Connect does not currently support specifying multiple plugins.- Returns:
this
-
serviceExecutionRoleArn
@Stability(Stable) public CfnConnectorProps.Builder serviceExecutionRoleArn(String serviceExecutionRoleArn) Sets the value ofCfnConnectorProps.getServiceExecutionRoleArn()- Parameters:
serviceExecutionRoleArn- The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon Web Services resources. This parameter is required.- Returns:
this
-
connectorDescription
@Stability(Stable) public CfnConnectorProps.Builder connectorDescription(String connectorDescription) Sets the value ofCfnConnectorProps.getConnectorDescription()- Parameters:
connectorDescription- The description of the connector.- Returns:
this
-
logDelivery
Sets the value ofCfnConnectorProps.getLogDelivery()- Parameters:
logDelivery- The settings for delivering connector logs to Amazon CloudWatch Logs.- Returns:
this
-
logDelivery
@Stability(Stable) public CfnConnectorProps.Builder logDelivery(CfnConnector.LogDeliveryProperty logDelivery) Sets the value ofCfnConnectorProps.getLogDelivery()- Parameters:
logDelivery- The settings for delivering connector logs to Amazon CloudWatch Logs.- Returns:
this
-
tags
Sets the value ofCfnConnectorProps.getTags()- Parameters:
tags- A collection of tags associated with a resource.- Returns:
this
-
workerConfiguration
@Stability(Stable) public CfnConnectorProps.Builder workerConfiguration(IResolvable workerConfiguration) Sets the value ofCfnConnectorProps.getWorkerConfiguration()- Parameters:
workerConfiguration- The worker configurations that are in use with the connector.- Returns:
this
-
workerConfiguration
@Stability(Stable) public CfnConnectorProps.Builder workerConfiguration(CfnConnector.WorkerConfigurationProperty workerConfiguration) Sets the value ofCfnConnectorProps.getWorkerConfiguration()- Parameters:
workerConfiguration- The worker configurations that are in use with the connector.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnectorProps>- Returns:
- a new instance of
CfnConnectorProps - Throws:
NullPointerException- if any required attribute was not provided
-