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