Class VpcConfig.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.VpcConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcConfig>
- Enclosing interface:
VpcConfig
@Stability(Stable)
public static final class VpcConfig.Builder
extends Object
implements software.amazon.jsii.Builder<VpcConfig>
A builder for
VpcConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.subnets(SubnetSelection subnets) Sets the value ofVpcConfig.getSubnets()Sets the value ofVpcConfig.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpc
Sets the value ofVpcConfig.getVpc()- Parameters:
vpc- VPC. This parameter is required.- Returns:
this
-
subnets
Sets the value ofVpcConfig.getSubnets()- Parameters:
subnets- VPC subnets.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VpcConfig>- Returns:
- a new instance of
VpcConfig - Throws:
NullPointerException- if any required attribute was not provided
-