Class ServerlessClusterProps.Builder
java.lang.Object
software.amazon.awscdk.services.msk.alpha.ServerlessClusterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServerlessClusterProps>
- Enclosing interface:
ServerlessClusterProps
@Stability(Experimental)
public static final class ServerlessClusterProps.Builder
extends Object
implements software.amazon.jsii.Builder<ServerlessClusterProps>
A builder for
ServerlessClusterProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clusterName(String clusterName) Sets the value ofServerlessClusterProps.getClusterName()vpcConfigs(List<? extends VpcConfig> vpcConfigs) Sets the value ofServerlessClusterProps.getVpcConfigs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpcConfigs
@Stability(Experimental) public ServerlessClusterProps.Builder vpcConfigs(List<? extends VpcConfig> vpcConfigs) Sets the value ofServerlessClusterProps.getVpcConfigs()- Parameters:
vpcConfigs- The configuration of the Amazon VPCs for the cluster. This parameter is required. You can specify up to 5 VPC configurations.- Returns:
this
-
clusterName
Sets the value ofServerlessClusterProps.getClusterName()- Parameters:
clusterName- The physical name of the cluster.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ServerlessClusterProps>- Returns:
- a new instance of
ServerlessClusterProps - Throws:
NullPointerException- if any required attribute was not provided
-