Class CfnCluster.Builder

java.lang.Object
software.amazon.awscdk.services.msk.CfnCluster.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster>
Enclosing class:
CfnCluster

@Stability(Stable) public static final class CfnCluster.Builder extends Object implements software.amazon.jsii.Builder<CfnCluster>
A fluent builder for CfnCluster.
  • Method Details

    • create

      @Stability(Stable) public static CfnCluster.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnCluster.Builder.
    • brokerNodeGroupInfo

      @Stability(Stable) public CfnCluster.Builder brokerNodeGroupInfo(CfnCluster.BrokerNodeGroupInfoProperty brokerNodeGroupInfo)
      Information about the broker nodes in the cluster.

      Parameters:
      brokerNodeGroupInfo - Information about the broker nodes in the cluster. This parameter is required.
      Returns:
      this
    • brokerNodeGroupInfo

      @Stability(Stable) public CfnCluster.Builder brokerNodeGroupInfo(IResolvable brokerNodeGroupInfo)
      Information about the broker nodes in the cluster.

      Parameters:
      brokerNodeGroupInfo - Information about the broker nodes in the cluster. This parameter is required.
      Returns:
      this
    • clusterName

      @Stability(Stable) public CfnCluster.Builder clusterName(String clusterName)
      The name of the cluster.

      Parameters:
      clusterName - The name of the cluster. This parameter is required.
      Returns:
      this
    • kafkaVersion

      @Stability(Stable) public CfnCluster.Builder kafkaVersion(String kafkaVersion)
      The version of Apache Kafka.

      You can use Amazon MSK to create clusters that use Apache Kafka versions 1.1.1 and 2.2.1.

      Parameters:
      kafkaVersion - The version of Apache Kafka. This parameter is required.
      Returns:
      this
    • numberOfBrokerNodes

      @Stability(Stable) public CfnCluster.Builder numberOfBrokerNodes(Number numberOfBrokerNodes)
      The number of broker nodes in the cluster.

      Parameters:
      numberOfBrokerNodes - The number of broker nodes in the cluster. This parameter is required.
      Returns:
      this
    • clientAuthentication

      @Stability(Stable) public CfnCluster.Builder clientAuthentication(IResolvable clientAuthentication)
      Includes all client authentication related information.

      Parameters:
      clientAuthentication - Includes all client authentication related information. This parameter is required.
      Returns:
      this
    • clientAuthentication

      @Stability(Stable) public CfnCluster.Builder clientAuthentication(CfnCluster.ClientAuthenticationProperty clientAuthentication)
      Includes all client authentication related information.

      Parameters:
      clientAuthentication - Includes all client authentication related information. This parameter is required.
      Returns:
      this
    • configurationInfo

      @Stability(Stable) public CfnCluster.Builder configurationInfo(IResolvable configurationInfo)
      Represents the configuration that you want MSK to use for the cluster.

      Parameters:
      configurationInfo - Represents the configuration that you want MSK to use for the cluster. This parameter is required.
      Returns:
      this
    • configurationInfo

      @Stability(Stable) public CfnCluster.Builder configurationInfo(CfnCluster.ConfigurationInfoProperty configurationInfo)
      Represents the configuration that you want MSK to use for the cluster.

      Parameters:
      configurationInfo - Represents the configuration that you want MSK to use for the cluster. This parameter is required.
      Returns:
      this
    • currentVersion

      @Stability(Stable) public CfnCluster.Builder currentVersion(String currentVersion)
      The version of the cluster that you want to update.

      Parameters:
      currentVersion - The version of the cluster that you want to update. This parameter is required.
      Returns:
      this
    • encryptionInfo

      @Stability(Stable) public CfnCluster.Builder encryptionInfo(IResolvable encryptionInfo)
      Includes all encryption-related information.

      Parameters:
      encryptionInfo - Includes all encryption-related information. This parameter is required.
      Returns:
      this
    • encryptionInfo

      @Stability(Stable) public CfnCluster.Builder encryptionInfo(CfnCluster.EncryptionInfoProperty encryptionInfo)
      Includes all encryption-related information.

      Parameters:
      encryptionInfo - Includes all encryption-related information. This parameter is required.
      Returns:
      this
    • enhancedMonitoring

      @Stability(Stable) public CfnCluster.Builder enhancedMonitoring(String enhancedMonitoring)
      Specifies the level of monitoring for the MSK cluster.

      The possible values are DEFAULT , PER_BROKER , and PER_TOPIC_PER_BROKER .

      Parameters:
      enhancedMonitoring - Specifies the level of monitoring for the MSK cluster. This parameter is required.
      Returns:
      this
    • loggingInfo

      @Stability(Stable) public CfnCluster.Builder loggingInfo(IResolvable loggingInfo)
      Logging Info details.

      Parameters:
      loggingInfo - Logging Info details. This parameter is required.
      Returns:
      this
    • loggingInfo

      @Stability(Stable) public CfnCluster.Builder loggingInfo(CfnCluster.LoggingInfoProperty loggingInfo)
      Logging Info details.

      Parameters:
      loggingInfo - Logging Info details. This parameter is required.
      Returns:
      this
    • openMonitoring

      @Stability(Stable) public CfnCluster.Builder openMonitoring(IResolvable openMonitoring)
      The settings for open monitoring.

      Parameters:
      openMonitoring - The settings for open monitoring. This parameter is required.
      Returns:
      this
    • openMonitoring

      @Stability(Stable) public CfnCluster.Builder openMonitoring(CfnCluster.OpenMonitoringProperty openMonitoring)
      The settings for open monitoring.

      Parameters:
      openMonitoring - The settings for open monitoring. This parameter is required.
      Returns:
      this
    • storageMode

      @Stability(Stable) public CfnCluster.Builder storageMode(String storageMode)
      This controls storage mode for supported storage tiers.

      Parameters:
      storageMode - This controls storage mode for supported storage tiers. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnCluster.Builder tags(Map<String,String> tags)
      Create tags when creating the cluster.

      Parameters:
      tags - Create tags when creating the cluster. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnCluster build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnCluster>
      Returns:
      a newly built instance of CfnCluster.