Class CfnCluster.VpcConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnCluster.VpcConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.VpcConfigProperty>
- Enclosing interface:
CfnCluster.VpcConfigProperty
@Stability(Stable)
public static final class CfnCluster.VpcConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.VpcConfigProperty>
A builder for
CfnCluster.VpcConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.securityGroupIds
(List<String> securityGroupIds) Sets the value ofCfnCluster.VpcConfigProperty.getSecurityGroupIds()
Sets the value ofCfnCluster.VpcConfigProperty.getSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupIds
@Stability(Stable) public CfnCluster.VpcConfigProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnCluster.VpcConfigProperty.getSecurityGroupIds()
- Parameters:
securityGroupIds
- The VPC security group IDs, in the formsg-xxxxxxxx
. This parameter is required. Specify the security groups for the VPC that is specified in theSubnets
field.- Returns:
this
-
subnets
Sets the value ofCfnCluster.VpcConfigProperty.getSubnets()
- Parameters:
subnets
- The ID of the subnets in the VPC to which you want to connect your training job or model. This parameter is required. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.VpcConfigProperty>
- Returns:
- a new instance of
CfnCluster.VpcConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-