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