public static final class CfnClusterProps.Builder
extends java.lang.Object
CfnClusterProps
Constructor and Description |
---|
Builder() |
public CfnClusterProps.Builder brokerNodeGroupInfo(CfnCluster.BrokerNodeGroupInfoProperty brokerNodeGroupInfo)
CfnClusterProps.getBrokerNodeGroupInfo()
brokerNodeGroupInfo
- The setup to be used for brokers in the cluster. This parameter is required.
AWS CloudFormation may replace the cluster when you update certain BrokerNodeGroupInfo
properties. To understand the update behavior for your use case, you should review the child properties for BrokerNodeGroupInfo
.this
public CfnClusterProps.Builder brokerNodeGroupInfo(IResolvable brokerNodeGroupInfo)
CfnClusterProps.getBrokerNodeGroupInfo()
brokerNodeGroupInfo
- The setup to be used for brokers in the cluster. This parameter is required.
AWS CloudFormation may replace the cluster when you update certain BrokerNodeGroupInfo
properties. To understand the update behavior for your use case, you should review the child properties for BrokerNodeGroupInfo
.this
public CfnClusterProps.Builder clusterName(java.lang.String clusterName)
CfnClusterProps.getClusterName()
clusterName
- The name of the cluster. This parameter is required.this
public CfnClusterProps.Builder kafkaVersion(java.lang.String kafkaVersion)
CfnClusterProps.getKafkaVersion()
kafkaVersion
- The version of Apache Kafka. This parameter is required.
For more information, see Supported Apache Kafka versions in the Amazon MSK Developer Guide.this
public CfnClusterProps.Builder numberOfBrokerNodes(java.lang.Number numberOfBrokerNodes)
CfnClusterProps.getNumberOfBrokerNodes()
numberOfBrokerNodes
- The number of broker nodes you want in the Amazon MSK cluster. This parameter is required.
You can submit an update to increase the number of broker nodes in a cluster.this
public CfnClusterProps.Builder clientAuthentication(IResolvable clientAuthentication)
CfnClusterProps.getClientAuthentication()
clientAuthentication
- Includes information related to client authentication.this
public CfnClusterProps.Builder clientAuthentication(CfnCluster.ClientAuthenticationProperty clientAuthentication)
CfnClusterProps.getClientAuthentication()
clientAuthentication
- Includes information related to client authentication.this
public CfnClusterProps.Builder configurationInfo(IResolvable configurationInfo)
CfnClusterProps.getConfigurationInfo()
configurationInfo
- The Amazon MSK configuration to use for the cluster.this
public CfnClusterProps.Builder configurationInfo(CfnCluster.ConfigurationInfoProperty configurationInfo)
CfnClusterProps.getConfigurationInfo()
configurationInfo
- The Amazon MSK configuration to use for the cluster.this
public CfnClusterProps.Builder currentVersion(java.lang.String currentVersion)
CfnClusterProps.getCurrentVersion()
currentVersion
- The version of the cluster that you want to update.this
public CfnClusterProps.Builder encryptionInfo(IResolvable encryptionInfo)
CfnClusterProps.getEncryptionInfo()
encryptionInfo
- Includes all encryption-related information.this
public CfnClusterProps.Builder encryptionInfo(CfnCluster.EncryptionInfoProperty encryptionInfo)
CfnClusterProps.getEncryptionInfo()
encryptionInfo
- Includes all encryption-related information.this
public CfnClusterProps.Builder enhancedMonitoring(java.lang.String enhancedMonitoring)
CfnClusterProps.getEnhancedMonitoring()
enhancedMonitoring
- Specifies the level of monitoring for the MSK cluster.
The possible values are DEFAULT
, PER_BROKER
, and PER_TOPIC_PER_BROKER
.this
public CfnClusterProps.Builder loggingInfo(IResolvable loggingInfo)
CfnClusterProps.getLoggingInfo()
loggingInfo
- You can configure your Amazon MSK cluster to send broker logs to different destination types.
This is a container for the configuration details related to broker logs.this
public CfnClusterProps.Builder loggingInfo(CfnCluster.LoggingInfoProperty loggingInfo)
CfnClusterProps.getLoggingInfo()
loggingInfo
- You can configure your Amazon MSK cluster to send broker logs to different destination types.
This is a container for the configuration details related to broker logs.this
public CfnClusterProps.Builder openMonitoring(IResolvable openMonitoring)
CfnClusterProps.getOpenMonitoring()
openMonitoring
- The settings for open monitoring.this
public CfnClusterProps.Builder openMonitoring(CfnCluster.OpenMonitoringProperty openMonitoring)
CfnClusterProps.getOpenMonitoring()
openMonitoring
- The settings for open monitoring.this
public CfnClusterProps.Builder storageMode(java.lang.String storageMode)
CfnClusterProps.getStorageMode()
storageMode
- This controls storage mode for supported storage tiers.this
public CfnClusterProps.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
CfnClusterProps.getTags()
tags
- A map of key:value pairs to apply to this resource.
Both key and value are of type String.this
public CfnClusterProps build()
CfnClusterProps
java.lang.NullPointerException
- if any required attribute was not provided