Class CfnClusterMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pcs.CfnClusterMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterMixinProps>
- Enclosing interface:
CfnClusterMixinProps
@Stability(Stable)
public static final class CfnClusterMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterMixinProps>
A builder for
CfnClusterMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnClusterMixinProps.getName()networking(CfnClusterPropsMixin.NetworkingProperty networking) Sets the value ofCfnClusterMixinProps.getNetworking()networking(IResolvable networking) Sets the value ofCfnClusterMixinProps.getNetworking()scheduler(CfnClusterPropsMixin.SchedulerProperty scheduler) Sets the value ofCfnClusterMixinProps.getScheduler()scheduler(IResolvable scheduler) Sets the value ofCfnClusterMixinProps.getScheduler()Sets the value ofCfnClusterMixinProps.getSize()slurmConfiguration(CfnClusterPropsMixin.SlurmConfigurationProperty slurmConfiguration) Sets the value ofCfnClusterMixinProps.getSlurmConfiguration()slurmConfiguration(IResolvable slurmConfiguration) Sets the value ofCfnClusterMixinProps.getSlurmConfiguration()Sets the value ofCfnClusterMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnClusterMixinProps.getName()- Parameters:
name- The name that identifies the cluster.- Returns:
this
-
networking
Sets the value ofCfnClusterMixinProps.getNetworking()- Parameters:
networking- The networking configuration for the cluster's control plane.- Returns:
this
-
networking
@Stability(Stable) public CfnClusterMixinProps.Builder networking(CfnClusterPropsMixin.NetworkingProperty networking) Sets the value ofCfnClusterMixinProps.getNetworking()- Parameters:
networking- The networking configuration for the cluster's control plane.- Returns:
this
-
scheduler
Sets the value ofCfnClusterMixinProps.getScheduler()- Parameters:
scheduler- The cluster management and job scheduling software associated with the cluster.- Returns:
this
-
scheduler
@Stability(Stable) public CfnClusterMixinProps.Builder scheduler(CfnClusterPropsMixin.SchedulerProperty scheduler) Sets the value ofCfnClusterMixinProps.getScheduler()- Parameters:
scheduler- The cluster management and job scheduling software associated with the cluster.- Returns:
this
-
size
Sets the value ofCfnClusterMixinProps.getSize()- Parameters:
size- The size of the cluster.SMALL: 32 compute nodes and 256 jobsMEDIUM: 512 compute nodes and 8192 jobsLARGE: 2048 compute nodes and 16,384 jobs
- Returns:
this
-
slurmConfiguration
@Stability(Stable) public CfnClusterMixinProps.Builder slurmConfiguration(IResolvable slurmConfiguration) Sets the value ofCfnClusterMixinProps.getSlurmConfiguration()- Parameters:
slurmConfiguration- Additional options related to the Slurm scheduler.- Returns:
this
-
slurmConfiguration
@Stability(Stable) public CfnClusterMixinProps.Builder slurmConfiguration(CfnClusterPropsMixin.SlurmConfigurationProperty slurmConfiguration) Sets the value ofCfnClusterMixinProps.getSlurmConfiguration()- Parameters:
slurmConfiguration- Additional options related to the Slurm scheduler.- Returns:
this
-
tags
Sets the value ofCfnClusterMixinProps.getTags()- Parameters:
tags- 1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterMixinProps>- Returns:
- a new instance of
CfnClusterMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-