Class CfnConnector.ApacheKafkaClusterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kafkaconnect.CfnConnector.ApacheKafkaClusterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnector.ApacheKafkaClusterProperty>
- Enclosing interface:
CfnConnector.ApacheKafkaClusterProperty
@Stability(Stable)
public static final class CfnConnector.ApacheKafkaClusterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnector.ApacheKafkaClusterProperty>
A builder for
CfnConnector.ApacheKafkaClusterProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbootstrapServers(String bootstrapServers) Sets the value ofCfnConnector.ApacheKafkaClusterProperty.getBootstrapServers()build()Builds the configured instance.vpc(IResolvable vpc) Sets the value ofCfnConnector.ApacheKafkaClusterProperty.getVpc()Sets the value ofCfnConnector.ApacheKafkaClusterProperty.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bootstrapServers
@Stability(Stable) public CfnConnector.ApacheKafkaClusterProperty.Builder bootstrapServers(String bootstrapServers) Sets the value ofCfnConnector.ApacheKafkaClusterProperty.getBootstrapServers()- Parameters:
bootstrapServers- The bootstrap servers of the cluster. This parameter is required.- Returns:
this
-
vpc
Sets the value ofCfnConnector.ApacheKafkaClusterProperty.getVpc()- Parameters:
vpc- Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster. This parameter is required.- Returns:
this
-
vpc
@Stability(Stable) public CfnConnector.ApacheKafkaClusterProperty.Builder vpc(CfnConnector.VpcProperty vpc) Sets the value ofCfnConnector.ApacheKafkaClusterProperty.getVpc()- Parameters:
vpc- Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnector.ApacheKafkaClusterProperty>- Returns:
- a new instance of
CfnConnector.ApacheKafkaClusterProperty - Throws:
NullPointerException- if any required attribute was not provided
-