Class CfnCluster.SchedulerProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pcs.CfnCluster.SchedulerProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.SchedulerProperty>
- Enclosing interface:
CfnCluster.SchedulerProperty
@Stability(Stable)
public static final class CfnCluster.SchedulerProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.SchedulerProperty>
A builder for
CfnCluster.SchedulerProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnCluster.SchedulerProperty.getType()
Sets the value ofCfnCluster.SchedulerProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnCluster.SchedulerProperty.getType()
- Parameters:
type
- The software AWS PCS uses to manage cluster scaling and job scheduling. This parameter is required.- Returns:
this
-
version
Sets the value ofCfnCluster.SchedulerProperty.getVersion()
- Parameters:
version
- The version of the specified scheduling software that AWS PCS uses to manage cluster scaling and job scheduling. This parameter is required. For more information, see Slurm versions in AWS PCS in the AWS PCS User Guide .Valid Values:
23.11 | 24.05 | 24.11
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.SchedulerProperty>
- Returns:
- a new instance of
CfnCluster.SchedulerProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-