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
-
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 list of subnets to connect to in the client virtual private cloud (VPC). This parameter is required. Amazon creates elastic network interfaces inside these subnets. Client applications use elastic network interfaces to produce and consume data.If you use the US West (N. California) Region, specify exactly two subnets. For other Regions where Amazon MSK is available, you can specify either two or three subnets. The subnets that you specify must be in distinct Availability Zones. When you create a cluster, Amazon MSK distributes the broker nodes evenly across the subnets that you specify.
Client subnets can't occupy the Availability Zone with ID
use1-az3
.- 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, and 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
- This parameter is currently not in use.- Returns:
this
-
connectivityInfo
@Stability(Stable) public CfnCluster.BrokerNodeGroupInfoProperty.Builder connectivityInfo(IResolvable connectivityInfo) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getConnectivityInfo()
- Parameters:
connectivityInfo
- Information about the cluster's connectivity setting.- Returns:
this
-
connectivityInfo
@Stability(Stable) public CfnCluster.BrokerNodeGroupInfoProperty.Builder connectivityInfo(CfnCluster.ConnectivityInfoProperty connectivityInfo) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getConnectivityInfo()
- Parameters:
connectivityInfo
- Information about the cluster's connectivity setting.- Returns:
this
-
securityGroups
@Stability(Stable) public CfnCluster.BrokerNodeGroupInfoProperty.Builder securityGroups(List<String> securityGroups) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getSecurityGroups()
- Parameters:
securityGroups
- The security groups to associate with the elastic network interfaces in order to specify who can connect to and communicate with the Amazon MSK cluster. If you don't specify a security group, Amazon MSK uses the default security group associated with the VPC. If you specify security groups that were shared with you, you must ensure that you have permissions to them. Specifically, you need theec2:DescribeSecurityGroups
permission.- Returns:
this
-
storageInfo
@Stability(Stable) public CfnCluster.BrokerNodeGroupInfoProperty.Builder storageInfo(IResolvable storageInfo) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getStorageInfo()
- Parameters:
storageInfo
- Contains information about storage volumes attached to Amazon MSK broker nodes.- Returns:
this
-
storageInfo
@Stability(Stable) public CfnCluster.BrokerNodeGroupInfoProperty.Builder storageInfo(CfnCluster.StorageInfoProperty storageInfo) Sets the value ofCfnCluster.BrokerNodeGroupInfoProperty.getStorageInfo()
- Parameters:
storageInfo
- Contains information about storage volumes attached to Amazon MSK broker nodes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.BrokerNodeGroupInfoProperty>
- Returns:
- a new instance of
CfnCluster.BrokerNodeGroupInfoProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-