Class CfnClusterSchedulerConfigProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnClusterSchedulerConfigProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterSchedulerConfigProps>
- Enclosing interface:
CfnClusterSchedulerConfigProps
@Stability(Stable)
public static final class CfnClusterSchedulerConfigProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterSchedulerConfigProps>
A builder for
CfnClusterSchedulerConfigProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clusterArn(String clusterArn) Sets the value ofCfnClusterSchedulerConfigProps.getClusterArn()description(String description) Sets the value ofCfnClusterSchedulerConfigProps.getDescription()Sets the value ofCfnClusterSchedulerConfigProps.getName()schedulerConfig(IResolvable schedulerConfig) Sets the value ofCfnClusterSchedulerConfigProps.getSchedulerConfig()schedulerConfig(CfnClusterSchedulerConfig.SchedulerConfigProperty schedulerConfig) Sets the value ofCfnClusterSchedulerConfigProps.getSchedulerConfig()Sets the value ofCfnClusterSchedulerConfigProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterArn
Sets the value ofCfnClusterSchedulerConfigProps.getClusterArn()- Parameters:
clusterArn- ARN of the cluster. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnClusterSchedulerConfigProps.getName()- Parameters:
name- Name for the cluster policy. This parameter is required.- Returns:
this
-
schedulerConfig
@Stability(Stable) public CfnClusterSchedulerConfigProps.Builder schedulerConfig(IResolvable schedulerConfig) Sets the value ofCfnClusterSchedulerConfigProps.getSchedulerConfig()- Parameters:
schedulerConfig- Cluster policy configuration. This parameter is required.- Returns:
this
-
schedulerConfig
@Stability(Stable) public CfnClusterSchedulerConfigProps.Builder schedulerConfig(CfnClusterSchedulerConfig.SchedulerConfigProperty schedulerConfig) Sets the value ofCfnClusterSchedulerConfigProps.getSchedulerConfig()- Parameters:
schedulerConfig- Cluster policy configuration. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnClusterSchedulerConfigProps.getDescription()- Parameters:
description- Description of the cluster policy.- Returns:
this
-
tags
Sets the value ofCfnClusterSchedulerConfigProps.getTags()- Parameters:
tags- Tags of the cluster policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterSchedulerConfigProps>- Returns:
- a new instance of
CfnClusterSchedulerConfigProps - Throws:
NullPointerException- if any required attribute was not provided
-