Class CfnClusterPropsMixin.ClusterSlurmConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnClusterPropsMixin.ClusterSlurmConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.ClusterSlurmConfigProperty>
- Enclosing interface:
CfnClusterPropsMixin.ClusterSlurmConfigProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.ClusterSlurmConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.ClusterSlurmConfigProperty>
A builder for
CfnClusterPropsMixin.ClusterSlurmConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnClusterPropsMixin.ClusterSlurmConfigProperty.getNodeType()partitionNames(List<String> partitionNames) Sets the value ofCfnClusterPropsMixin.ClusterSlurmConfigProperty.getPartitionNames()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nodeType
@Stability(Stable) public CfnClusterPropsMixin.ClusterSlurmConfigProperty.Builder nodeType(String nodeType) Sets the value ofCfnClusterPropsMixin.ClusterSlurmConfigProperty.getNodeType()- Parameters:
nodeType- The type of Slurm node for this instance group.- Returns:
this
-
partitionNames
@Stability(Stable) public CfnClusterPropsMixin.ClusterSlurmConfigProperty.Builder partitionNames(List<String> partitionNames) Sets the value ofCfnClusterPropsMixin.ClusterSlurmConfigProperty.getPartitionNames()- Parameters:
partitionNames- The Slurm partitions that this instance group belongs to. Maximum of 1 partition.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.ClusterSlurmConfigProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.ClusterSlurmConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-