Class CfnServerlessCluster.VpcConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.msk.CfnServerlessCluster.VpcConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServerlessCluster.VpcConfigProperty>
- Enclosing interface:
- CfnServerlessCluster.VpcConfigProperty
@Stability(Stable)
public static final class CfnServerlessCluster.VpcConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServerlessCluster.VpcConfigProperty>
A builder for
CfnServerlessCluster.VpcConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.securityGroups(List<String> securityGroups) Sets the value ofCfnServerlessCluster.VpcConfigProperty.getSecurityGroups()Sets the value ofCfnServerlessCluster.VpcConfigProperty.getSubnetIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnetIds
@Stability(Stable) public CfnServerlessCluster.VpcConfigProperty.Builder subnetIds(List<String> subnetIds) Sets the value ofCfnServerlessCluster.VpcConfigProperty.getSubnetIds()- Parameters:
subnetIds-CfnServerlessCluster.VpcConfigProperty.SubnetIds. This parameter is required.- Returns:
this
-
securityGroups
@Stability(Stable) public CfnServerlessCluster.VpcConfigProperty.Builder securityGroups(List<String> securityGroups) Sets the value ofCfnServerlessCluster.VpcConfigProperty.getSecurityGroups()- Parameters:
securityGroups-CfnServerlessCluster.VpcConfigProperty.SecurityGroups.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServerlessCluster.VpcConfigProperty>- Returns:
- a new instance of
CfnServerlessCluster.VpcConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-