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