Class CfnCluster.BrokerNodeGroupInfoProperty.Builder
java.lang.Object
software.amazon.awscdk.services.msk.CfnCluster.BrokerNodeGroupInfoProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.BrokerNodeGroupInfoProperty>
- Enclosing interface:
CfnCluster.BrokerNodeGroupInfoProperty
@Stability(Stable)
public static final class CfnCluster.BrokerNodeGroupInfoProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.BrokerNodeGroupInfoProperty>
A builder for
CfnCluster.BrokerNodeGroupInfoProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbrokerAzDistribution(String brokerAzDistribution) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getBrokerAzDistribution()build()Builds the configured instance.clientSubnets(List<String> clientSubnets) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getClientSubnets()connectivityInfo(IResolvable connectivityInfo) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getConnectivityInfo()connectivityInfo(CfnCluster.ConnectivityInfoProperty connectivityInfo) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getConnectivityInfo()instanceType(String instanceType) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getInstanceType()securityGroups(List<String> securityGroups) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getSecurityGroups()storageInfo(IResolvable storageInfo) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getStorageInfo()storageInfo(CfnCluster.StorageInfoProperty storageInfo) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getStorageInfo()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientSubnets
@Stability(Stable) public CfnCluster.BrokerNodeGroupInfoProperty.Builder clientSubnets(List<String> clientSubnets) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getClientSubnets()- Parameters:
clientSubnets- the value to be set. This parameter is required.- Returns:
this
-
instanceType
@Stability(Stable) public CfnCluster.BrokerNodeGroupInfoProperty.Builder instanceType(String instanceType) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getInstanceType()- Parameters:
instanceType- The type of Amazon EC2 instances to use for brokers. This parameter is required. The following instance types are allowed: kafka.m5.large, kafka.m5.xlarge, kafka.m5.2xlarge, kafka.m5.4xlarge, kafka.m5.8xlarge, kafka.m5.12xlarge, kafka.m5.16xlarge, kafka.m5.24xlarge, and kafka.t3.small.- Returns:
this
-
brokerAzDistribution
@Stability(Stable) public CfnCluster.BrokerNodeGroupInfoProperty.Builder brokerAzDistribution(String brokerAzDistribution) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getBrokerAzDistribution()- Parameters:
brokerAzDistribution- the value to be set.- Returns:
this
-
connectivityInfo
@Stability(Stable) public CfnCluster.BrokerNodeGroupInfoProperty.Builder connectivityInfo(IResolvable connectivityInfo) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getConnectivityInfo()- Parameters:
connectivityInfo- the value to be set.- Returns:
this
-
connectivityInfo
@Stability(Stable) public CfnCluster.BrokerNodeGroupInfoProperty.Builder connectivityInfo(CfnCluster.ConnectivityInfoProperty connectivityInfo) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getConnectivityInfo()- Parameters:
connectivityInfo- the value to be set.- Returns:
this
-
securityGroups
@Stability(Stable) public CfnCluster.BrokerNodeGroupInfoProperty.Builder securityGroups(List<String> securityGroups) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getSecurityGroups()- Parameters:
securityGroups- the value to be set.- Returns:
this
-
storageInfo
@Stability(Stable) public CfnCluster.BrokerNodeGroupInfoProperty.Builder storageInfo(IResolvable storageInfo) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getStorageInfo()- Parameters:
storageInfo- the value to be set.- Returns:
this
-
storageInfo
@Stability(Stable) public CfnCluster.BrokerNodeGroupInfoProperty.Builder storageInfo(CfnCluster.StorageInfoProperty storageInfo) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getStorageInfo()- Parameters:
storageInfo- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.BrokerNodeGroupInfoProperty>- Returns:
- a new instance of
CfnCluster.BrokerNodeGroupInfoProperty - Throws:
NullPointerException- if any required attribute was not provided
-