Class CfnConnectorMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.kafkaconnect.CfnConnectorMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectorMixinProps>
- Enclosing interface:
CfnConnectorMixinProps
@Stability(Stable)
public static final class CfnConnectorMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectorMixinProps>
A builder for
CfnConnectorMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnConnectorMixinProps.getCapacity()capacity(IResolvable capacity) Sets the value ofCfnConnectorMixinProps.getCapacity()connectorConfiguration(Map<String, String> connectorConfiguration) Sets the value ofCfnConnectorMixinProps.getConnectorConfiguration()connectorConfiguration(IResolvable connectorConfiguration) Sets the value ofCfnConnectorMixinProps.getConnectorConfiguration()connectorDescription(String connectorDescription) Sets the value ofCfnConnectorMixinProps.getConnectorDescription()connectorName(String connectorName) Sets the value ofCfnConnectorMixinProps.getConnectorName()kafkaCluster(CfnConnectorPropsMixin.KafkaClusterProperty kafkaCluster) Sets the value ofCfnConnectorMixinProps.getKafkaCluster()kafkaCluster(IResolvable kafkaCluster) Sets the value ofCfnConnectorMixinProps.getKafkaCluster()kafkaClusterClientAuthentication(CfnConnectorPropsMixin.KafkaClusterClientAuthenticationProperty kafkaClusterClientAuthentication) Sets the value ofCfnConnectorMixinProps.getKafkaClusterClientAuthentication()kafkaClusterClientAuthentication(IResolvable kafkaClusterClientAuthentication) Sets the value ofCfnConnectorMixinProps.getKafkaClusterClientAuthentication()kafkaClusterEncryptionInTransit(CfnConnectorPropsMixin.KafkaClusterEncryptionInTransitProperty kafkaClusterEncryptionInTransit) Sets the value ofCfnConnectorMixinProps.getKafkaClusterEncryptionInTransit()kafkaClusterEncryptionInTransit(IResolvable kafkaClusterEncryptionInTransit) Sets the value ofCfnConnectorMixinProps.getKafkaClusterEncryptionInTransit()kafkaConnectVersion(String kafkaConnectVersion) Sets the value ofCfnConnectorMixinProps.getKafkaConnectVersion()logDelivery(CfnConnectorPropsMixin.LogDeliveryProperty logDelivery) Sets the value ofCfnConnectorMixinProps.getLogDelivery()logDelivery(IResolvable logDelivery) Sets the value ofCfnConnectorMixinProps.getLogDelivery()networkType(String networkType) Sets the value ofCfnConnectorMixinProps.getNetworkType()Sets the value ofCfnConnectorMixinProps.getPlugins()plugins(IResolvable plugins) Sets the value ofCfnConnectorMixinProps.getPlugins()serviceExecutionRoleArn(String serviceExecutionRoleArn) Sets the value ofCfnConnectorMixinProps.getServiceExecutionRoleArn()Sets the value ofCfnConnectorMixinProps.getTags()workerConfiguration(CfnConnectorPropsMixin.WorkerConfigurationProperty workerConfiguration) Sets the value ofCfnConnectorMixinProps.getWorkerConfiguration()workerConfiguration(IResolvable workerConfiguration) Sets the value ofCfnConnectorMixinProps.getWorkerConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacity
Sets the value ofCfnConnectorMixinProps.getCapacity()- Parameters:
capacity- The connector's compute capacity settings.- Returns:
this
-
capacity
@Stability(Stable) public CfnConnectorMixinProps.Builder capacity(CfnConnectorPropsMixin.CapacityProperty capacity) Sets the value ofCfnConnectorMixinProps.getCapacity()- Parameters:
capacity- The connector's compute capacity settings.- Returns:
this
-
connectorConfiguration
@Stability(Stable) public CfnConnectorMixinProps.Builder connectorConfiguration(Map<String, String> connectorConfiguration) Sets the value ofCfnConnectorMixinProps.getConnectorConfiguration()- Parameters:
connectorConfiguration- The configuration of the connector.- Returns:
this
-
connectorConfiguration
@Stability(Stable) public CfnConnectorMixinProps.Builder connectorConfiguration(IResolvable connectorConfiguration) Sets the value ofCfnConnectorMixinProps.getConnectorConfiguration()- Parameters:
connectorConfiguration- The configuration of the connector.- Returns:
this
-
connectorDescription
@Stability(Stable) public CfnConnectorMixinProps.Builder connectorDescription(String connectorDescription) Sets the value ofCfnConnectorMixinProps.getConnectorDescription()- Parameters:
connectorDescription- The description of the connector.- Returns:
this
-
connectorName
Sets the value ofCfnConnectorMixinProps.getConnectorName()- Parameters:
connectorName- The name of the connector. 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 ofCfnConnectorMixinProps.getKafkaCluster()- Parameters:
kafkaCluster- The details of the Apache Kafka cluster to which the connector is connected.- Returns:
this
-
kafkaCluster
@Stability(Stable) public CfnConnectorMixinProps.Builder kafkaCluster(CfnConnectorPropsMixin.KafkaClusterProperty kafkaCluster) Sets the value ofCfnConnectorMixinProps.getKafkaCluster()- Parameters:
kafkaCluster- The details of the Apache Kafka cluster to which the connector is connected.- Returns:
this
-
kafkaClusterClientAuthentication
@Stability(Stable) public CfnConnectorMixinProps.Builder kafkaClusterClientAuthentication(IResolvable kafkaClusterClientAuthentication) Sets the value ofCfnConnectorMixinProps.getKafkaClusterClientAuthentication()- Parameters:
kafkaClusterClientAuthentication- The type of client authentication used to connect to the Apache Kafka cluster. The value is NONE when no client authentication is used.- Returns:
this
-
kafkaClusterClientAuthentication
@Stability(Stable) public CfnConnectorMixinProps.Builder kafkaClusterClientAuthentication(CfnConnectorPropsMixin.KafkaClusterClientAuthenticationProperty kafkaClusterClientAuthentication) Sets the value ofCfnConnectorMixinProps.getKafkaClusterClientAuthentication()- Parameters:
kafkaClusterClientAuthentication- The type of client authentication used to connect to the Apache Kafka cluster. The value is NONE when no client authentication is used.- Returns:
this
-
kafkaClusterEncryptionInTransit
@Stability(Stable) public CfnConnectorMixinProps.Builder kafkaClusterEncryptionInTransit(IResolvable kafkaClusterEncryptionInTransit) Sets the value ofCfnConnectorMixinProps.getKafkaClusterEncryptionInTransit()- Parameters:
kafkaClusterEncryptionInTransit- Details of encryption in transit to the Apache Kafka cluster.- Returns:
this
-
kafkaClusterEncryptionInTransit
@Stability(Stable) public CfnConnectorMixinProps.Builder kafkaClusterEncryptionInTransit(CfnConnectorPropsMixin.KafkaClusterEncryptionInTransitProperty kafkaClusterEncryptionInTransit) Sets the value ofCfnConnectorMixinProps.getKafkaClusterEncryptionInTransit()- Parameters:
kafkaClusterEncryptionInTransit- Details of encryption in transit to the Apache Kafka cluster.- Returns:
this
-
kafkaConnectVersion
@Stability(Stable) public CfnConnectorMixinProps.Builder kafkaConnectVersion(String kafkaConnectVersion) Sets the value ofCfnConnectorMixinProps.getKafkaConnectVersion()- Parameters:
kafkaConnectVersion- The version of Kafka Connect. It has to be compatible with both the Apache Kafka cluster's version and the plugins.- Returns:
this
-
logDelivery
Sets the value ofCfnConnectorMixinProps.getLogDelivery()- Parameters:
logDelivery- The settings for delivering connector logs to Amazon CloudWatch Logs.- Returns:
this
-
logDelivery
@Stability(Stable) public CfnConnectorMixinProps.Builder logDelivery(CfnConnectorPropsMixin.LogDeliveryProperty logDelivery) Sets the value ofCfnConnectorMixinProps.getLogDelivery()- Parameters:
logDelivery- The settings for delivering connector logs to Amazon CloudWatch Logs.- Returns:
this
-
networkType
Sets the value ofCfnConnectorMixinProps.getNetworkType()- Parameters:
networkType- The network type of the connector. It gives connectors connectivity to either IPv4 (IPV4) or IPv4 and IPv6 (DUAL) destinations. Defaults to IPV4.- Returns:
this
-
plugins
Sets the value ofCfnConnectorMixinProps.getPlugins()- Parameters:
plugins- Specifies which plugin to use for the connector. You must specify a single-element list. Amazon MSK Connect does not currently support specifying multiple plugins.- Returns:
this
-
plugins
Sets the value ofCfnConnectorMixinProps.getPlugins()- Parameters:
plugins- Specifies which plugin to use for the connector. You must specify a single-element list. Amazon MSK Connect does not currently support specifying multiple plugins.- Returns:
this
-
serviceExecutionRoleArn
@Stability(Stable) public CfnConnectorMixinProps.Builder serviceExecutionRoleArn(String serviceExecutionRoleArn) Sets the value ofCfnConnectorMixinProps.getServiceExecutionRoleArn()- Parameters:
serviceExecutionRoleArn- The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon Web Services resources.- Returns:
this
-
tags
Sets the value ofCfnConnectorMixinProps.getTags()- Parameters:
tags- A collection of tags associated with a resource.- Returns:
this
-
workerConfiguration
@Stability(Stable) public CfnConnectorMixinProps.Builder workerConfiguration(IResolvable workerConfiguration) Sets the value ofCfnConnectorMixinProps.getWorkerConfiguration()- Parameters:
workerConfiguration- The worker configurations that are in use with the connector.- Returns:
this
-
workerConfiguration
@Stability(Stable) public CfnConnectorMixinProps.Builder workerConfiguration(CfnConnectorPropsMixin.WorkerConfigurationProperty workerConfiguration) Sets the value ofCfnConnectorMixinProps.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<CfnConnectorMixinProps>- Returns:
- a new instance of
CfnConnectorMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-