Class CfnConnectorPropsMixin.VpcProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.kafkaconnect.CfnConnectorPropsMixin.VpcProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectorPropsMixin.VpcProperty>
- Enclosing interface:
CfnConnectorPropsMixin.VpcProperty
@Stability(Stable)
public static final class CfnConnectorPropsMixin.VpcProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectorPropsMixin.VpcProperty>
A builder for
CfnConnectorPropsMixin.VpcProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.securityGroups(List<String> securityGroups) Sets the value ofCfnConnectorPropsMixin.VpcProperty.getSecurityGroups()Sets the value ofCfnConnectorPropsMixin.VpcProperty.getSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroups
@Stability(Stable) public CfnConnectorPropsMixin.VpcProperty.Builder securityGroups(List<String> securityGroups) Sets the value ofCfnConnectorPropsMixin.VpcProperty.getSecurityGroups()- Parameters:
securityGroups- The security group IDs for the connector.- Returns:
this
-
subnets
Sets the value ofCfnConnectorPropsMixin.VpcProperty.getSubnets()- Parameters:
subnets- The subnets for the connector.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnectorPropsMixin.VpcProperty>- Returns:
- a new instance of
CfnConnectorPropsMixin.VpcProperty - Throws:
NullPointerException- if any required attribute was not provided
-