Class CfnTopicMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.msk.CfnTopicMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicMixinProps>
- Enclosing interface:
CfnTopicMixinProps
@Stability(Stable)
public static final class CfnTopicMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicMixinProps>
A builder for
CfnTopicMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clusterArn(String clusterArn) Sets the value ofCfnTopicMixinProps.getClusterArn()Sets the value ofCfnTopicMixinProps.getConfigs()partitionCount(Number partitionCount) Sets the value ofCfnTopicMixinProps.getPartitionCount()replicationFactor(Number replicationFactor) Sets the value ofCfnTopicMixinProps.getReplicationFactor()Sets the value ofCfnTopicMixinProps.getTopicName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterArn
Sets the value ofCfnTopicMixinProps.getClusterArn()- Parameters:
clusterArn- The Amazon Resource Name (ARN) of the MSK cluster.- Returns:
this
-
configs
Sets the value ofCfnTopicMixinProps.getConfigs()- Parameters:
configs- Base64 encoded configuration properties of the topic.- Returns:
this
-
partitionCount
Sets the value ofCfnTopicMixinProps.getPartitionCount()- Parameters:
partitionCount- The number of partitions for the topic.- Returns:
this
-
replicationFactor
Sets the value ofCfnTopicMixinProps.getReplicationFactor()- Parameters:
replicationFactor- The replication factor for the topic.- Returns:
this
-
topicName
Sets the value ofCfnTopicMixinProps.getTopicName()- Parameters:
topicName- The name of the topic.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopicMixinProps>- Returns:
- a new instance of
CfnTopicMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-