Class CfnFunction.VpcConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnFunction.VpcConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunction.VpcConfigProperty>
- Enclosing interface:
CfnFunction.VpcConfigProperty
@Stability(Stable)
public static final class CfnFunction.VpcConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunction.VpcConfigProperty>
A builder for
CfnFunction.VpcConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.securityGroupIds
(List<String> securityGroupIds) Sets the value ofCfnFunction.VpcConfigProperty.getSecurityGroupIds()
Sets the value ofCfnFunction.VpcConfigProperty.getSubnetIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupIds
@Stability(Stable) public CfnFunction.VpcConfigProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnFunction.VpcConfigProperty.getSecurityGroupIds()
- Parameters:
securityGroupIds
- A list of VPC security group IDs.- Returns:
this
-
subnetIds
Sets the value ofCfnFunction.VpcConfigProperty.getSubnetIds()
- Parameters:
subnetIds
- A list of VPC subnet IDs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFunction.VpcConfigProperty>
- Returns:
- a new instance of
CfnFunction.VpcConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-