Class CfnClusterSchedulerConfig.PriorityClassProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnClusterSchedulerConfig.PriorityClassProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterSchedulerConfig.PriorityClassProperty>
- Enclosing interface:
CfnClusterSchedulerConfig.PriorityClassProperty
@Stability(Stable)
public static final class CfnClusterSchedulerConfig.PriorityClassProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterSchedulerConfig.PriorityClassProperty>
A builder for
CfnClusterSchedulerConfig.PriorityClassProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnClusterSchedulerConfig.PriorityClassProperty.getName()Sets the value ofCfnClusterSchedulerConfig.PriorityClassProperty.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnClusterSchedulerConfig.PriorityClassProperty.getName()- Parameters:
name- Name of the priority class. This parameter is required.- Returns:
this
-
weight
@Stability(Stable) public CfnClusterSchedulerConfig.PriorityClassProperty.Builder weight(Number weight) Sets the value ofCfnClusterSchedulerConfig.PriorityClassProperty.getWeight()- Parameters:
weight- Weight of the priority class. This parameter is required. Range 0-100, default 0.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterSchedulerConfig.PriorityClassProperty>- Returns:
- a new instance of
CfnClusterSchedulerConfig.PriorityClassProperty - Throws:
NullPointerException- if any required attribute was not provided
-