Class CfnConnector.KafkaClusterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kafkaconnect.CfnConnector.KafkaClusterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnector.KafkaClusterProperty>
- Enclosing interface:
CfnConnector.KafkaClusterProperty
@Stability(Stable)
public static final class CfnConnector.KafkaClusterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnector.KafkaClusterProperty>
A builder for
CfnConnector.KafkaClusterProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapacheKafkaCluster
(IResolvable apacheKafkaCluster) Sets the value ofCfnConnector.KafkaClusterProperty.getApacheKafkaCluster()
apacheKafkaCluster
(CfnConnector.ApacheKafkaClusterProperty apacheKafkaCluster) Sets the value ofCfnConnector.KafkaClusterProperty.getApacheKafkaCluster()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apacheKafkaCluster
@Stability(Stable) public CfnConnector.KafkaClusterProperty.Builder apacheKafkaCluster(IResolvable apacheKafkaCluster) Sets the value ofCfnConnector.KafkaClusterProperty.getApacheKafkaCluster()
- Parameters:
apacheKafkaCluster
- The Apache Kafka cluster to which the connector is connected. This parameter is required.- Returns:
this
-
apacheKafkaCluster
@Stability(Stable) public CfnConnector.KafkaClusterProperty.Builder apacheKafkaCluster(CfnConnector.ApacheKafkaClusterProperty apacheKafkaCluster) Sets the value ofCfnConnector.KafkaClusterProperty.getApacheKafkaCluster()
- Parameters:
apacheKafkaCluster
- The Apache Kafka cluster to which the connector is connected. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConnector.KafkaClusterProperty>
- Returns:
- a new instance of
CfnConnector.KafkaClusterProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-