Class CfnClusterProps.Builder
java.lang.Object
software.amazon.awscdk.services.msk.CfnClusterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterProps>
- Enclosing interface:
- CfnClusterProps
@Stability(Stable)
public static final class CfnClusterProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterProps>
A builder for
CfnClusterProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbrokerNodeGroupInfo(IResolvable brokerNodeGroupInfo) Sets the value ofCfnClusterProps.getBrokerNodeGroupInfo()brokerNodeGroupInfo(CfnCluster.BrokerNodeGroupInfoProperty brokerNodeGroupInfo) Sets the value ofCfnClusterProps.getBrokerNodeGroupInfo()build()Builds the configured instance.clientAuthentication(IResolvable clientAuthentication) Sets the value ofCfnClusterProps.getClientAuthentication()clientAuthentication(CfnCluster.ClientAuthenticationProperty clientAuthentication) Sets the value ofCfnClusterProps.getClientAuthentication()clusterName(String clusterName) Sets the value ofCfnClusterProps.getClusterName()configurationInfo(IResolvable configurationInfo) Sets the value ofCfnClusterProps.getConfigurationInfo()configurationInfo(CfnCluster.ConfigurationInfoProperty configurationInfo) Sets the value ofCfnClusterProps.getConfigurationInfo()currentVersion(String currentVersion) Sets the value ofCfnClusterProps.getCurrentVersion()encryptionInfo(IResolvable encryptionInfo) Sets the value ofCfnClusterProps.getEncryptionInfo()encryptionInfo(CfnCluster.EncryptionInfoProperty encryptionInfo) Sets the value ofCfnClusterProps.getEncryptionInfo()enhancedMonitoring(String enhancedMonitoring) Sets the value ofCfnClusterProps.getEnhancedMonitoring()kafkaVersion(String kafkaVersion) Sets the value ofCfnClusterProps.getKafkaVersion()loggingInfo(IResolvable loggingInfo) Sets the value ofCfnClusterProps.getLoggingInfo()loggingInfo(CfnCluster.LoggingInfoProperty loggingInfo) Sets the value ofCfnClusterProps.getLoggingInfo()numberOfBrokerNodes(Number numberOfBrokerNodes) Sets the value ofCfnClusterProps.getNumberOfBrokerNodes()openMonitoring(IResolvable openMonitoring) Sets the value ofCfnClusterProps.getOpenMonitoring()openMonitoring(CfnCluster.OpenMonitoringProperty openMonitoring) Sets the value ofCfnClusterProps.getOpenMonitoring()storageMode(String storageMode) Sets the value ofCfnClusterProps.getStorageMode()Sets the value ofCfnClusterProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
brokerNodeGroupInfo
@Stability(Stable) public CfnClusterProps.Builder brokerNodeGroupInfo(CfnCluster.BrokerNodeGroupInfoProperty brokerNodeGroupInfo) Sets the value ofCfnClusterProps.getBrokerNodeGroupInfo()- Parameters:
brokerNodeGroupInfo- Information about the broker nodes in the cluster. This parameter is required.- Returns:
this
-
brokerNodeGroupInfo
@Stability(Stable) public CfnClusterProps.Builder brokerNodeGroupInfo(IResolvable brokerNodeGroupInfo) Sets the value ofCfnClusterProps.getBrokerNodeGroupInfo()- Parameters:
brokerNodeGroupInfo- Information about the broker nodes in the cluster. This parameter is required.- Returns:
this
-
clusterName
Sets the value ofCfnClusterProps.getClusterName()- Parameters:
clusterName- The name of the cluster. This parameter is required.- Returns:
this
-
kafkaVersion
Sets the value ofCfnClusterProps.getKafkaVersion()- Parameters:
kafkaVersion- The version of Apache Kafka. This parameter is required. You can use Amazon MSK to create clusters that use Apache Kafka versions 1.1.1 and 2.2.1.- Returns:
this
-
numberOfBrokerNodes
Sets the value ofCfnClusterProps.getNumberOfBrokerNodes()- Parameters:
numberOfBrokerNodes- The number of broker nodes in the cluster. This parameter is required.- Returns:
this
-
clientAuthentication
@Stability(Stable) public CfnClusterProps.Builder clientAuthentication(IResolvable clientAuthentication) Sets the value ofCfnClusterProps.getClientAuthentication()- Parameters:
clientAuthentication- Includes all client authentication related information.- Returns:
this
-
clientAuthentication
@Stability(Stable) public CfnClusterProps.Builder clientAuthentication(CfnCluster.ClientAuthenticationProperty clientAuthentication) Sets the value ofCfnClusterProps.getClientAuthentication()- Parameters:
clientAuthentication- Includes all client authentication related information.- Returns:
this
-
configurationInfo
Sets the value ofCfnClusterProps.getConfigurationInfo()- Parameters:
configurationInfo- Represents the configuration that you want MSK to use for the cluster.- Returns:
this
-
configurationInfo
@Stability(Stable) public CfnClusterProps.Builder configurationInfo(CfnCluster.ConfigurationInfoProperty configurationInfo) Sets the value ofCfnClusterProps.getConfigurationInfo()- Parameters:
configurationInfo- Represents the configuration that you want MSK to use for the cluster.- Returns:
this
-
currentVersion
Sets the value ofCfnClusterProps.getCurrentVersion()- Parameters:
currentVersion- The version of the cluster that you want to update.- Returns:
this
-
encryptionInfo
Sets the value ofCfnClusterProps.getEncryptionInfo()- Parameters:
encryptionInfo- Includes all encryption-related information.- Returns:
this
-
encryptionInfo
@Stability(Stable) public CfnClusterProps.Builder encryptionInfo(CfnCluster.EncryptionInfoProperty encryptionInfo) Sets the value ofCfnClusterProps.getEncryptionInfo()- Parameters:
encryptionInfo- Includes all encryption-related information.- Returns:
this
-
enhancedMonitoring
Sets the value ofCfnClusterProps.getEnhancedMonitoring()- Parameters:
enhancedMonitoring- Specifies the level of monitoring for the MSK cluster. The possible values areDEFAULT,PER_BROKER, andPER_TOPIC_PER_BROKER.- Returns:
this
-
loggingInfo
Sets the value ofCfnClusterProps.getLoggingInfo()- Parameters:
loggingInfo- Logging Info details.- Returns:
this
-
loggingInfo
@Stability(Stable) public CfnClusterProps.Builder loggingInfo(CfnCluster.LoggingInfoProperty loggingInfo) Sets the value ofCfnClusterProps.getLoggingInfo()- Parameters:
loggingInfo- Logging Info details.- Returns:
this
-
openMonitoring
Sets the value ofCfnClusterProps.getOpenMonitoring()- Parameters:
openMonitoring- The settings for open monitoring.- Returns:
this
-
openMonitoring
@Stability(Stable) public CfnClusterProps.Builder openMonitoring(CfnCluster.OpenMonitoringProperty openMonitoring) Sets the value ofCfnClusterProps.getOpenMonitoring()- Parameters:
openMonitoring- The settings for open monitoring.- Returns:
this
-
storageMode
Sets the value ofCfnClusterProps.getStorageMode()- Parameters:
storageMode- This controls storage mode for supported storage tiers.- Returns:
this
-
tags
Sets the value ofCfnClusterProps.getTags()- Parameters:
tags- Create tags when creating the cluster.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterProps>- Returns:
- a new instance of
CfnClusterProps - Throws:
NullPointerException- if any required attribute was not provided
-