Class CfnCluster.ClusterSlurmConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterSlurmConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.ClusterSlurmConfigProperty>
- Enclosing interface:
CfnCluster.ClusterSlurmConfigProperty
@Stability(Stable)
public static final class CfnCluster.ClusterSlurmConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ClusterSlurmConfigProperty>
A builder for
CfnCluster.ClusterSlurmConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCluster.ClusterSlurmConfigProperty.getNodeType()partitionNames(List<String> partitionNames) Sets the value ofCfnCluster.ClusterSlurmConfigProperty.getPartitionNames()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nodeType
Sets the value ofCfnCluster.ClusterSlurmConfigProperty.getNodeType()- Parameters:
nodeType- The type of Slurm node for this instance group. This parameter is required.- Returns:
this
-
partitionNames
@Stability(Stable) public CfnCluster.ClusterSlurmConfigProperty.Builder partitionNames(List<String> partitionNames) Sets the value ofCfnCluster.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<CfnCluster.ClusterSlurmConfigProperty>- Returns:
- a new instance of
CfnCluster.ClusterSlurmConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-