Class CfnClusterProps.Builder
java.lang.Object
software.amazon.awscdk.services.pcs.CfnClusterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterProps>
- Enclosing interface:
CfnClusterProps
@Stability(Stable)
public static final class CfnClusterProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterProps>
A builder for
CfnClusterProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnClusterProps.getName()networking(IResolvable networking) Sets the value ofCfnClusterProps.getNetworking()networking(CfnCluster.NetworkingProperty networking) Sets the value ofCfnClusterProps.getNetworking()scheduler(IResolvable scheduler) Sets the value ofCfnClusterProps.getScheduler()scheduler(CfnCluster.SchedulerProperty scheduler) Sets the value ofCfnClusterProps.getScheduler()Sets the value ofCfnClusterProps.getSize()slurmConfiguration(IResolvable slurmConfiguration) Sets the value ofCfnClusterProps.getSlurmConfiguration()slurmConfiguration(CfnCluster.SlurmConfigurationProperty slurmConfiguration) Sets the value ofCfnClusterProps.getSlurmConfiguration()Sets the value ofCfnClusterProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
networking
Sets the value ofCfnClusterProps.getNetworking()- Parameters:
networking- The networking configuration for the cluster's control plane. This parameter is required.- Returns:
this
-
networking
@Stability(Stable) public CfnClusterProps.Builder networking(CfnCluster.NetworkingProperty networking) Sets the value ofCfnClusterProps.getNetworking()- Parameters:
networking- The networking configuration for the cluster's control plane. This parameter is required.- Returns:
this
-
scheduler
Sets the value ofCfnClusterProps.getScheduler()- Parameters:
scheduler- The cluster management and job scheduling software associated with the cluster. This parameter is required.- Returns:
this
-
scheduler
Sets the value ofCfnClusterProps.getScheduler()- Parameters:
scheduler- The cluster management and job scheduling software associated with the cluster. This parameter is required.- Returns:
this
-
size
Sets the value ofCfnClusterProps.getSize()- Parameters:
size- The size of the cluster. This parameter is required.SMALL: 32 compute nodes and 256 jobsMEDIUM: 512 compute nodes and 8192 jobsLARGE: 2048 compute nodes and 16,384 jobs
- Returns:
this
-
name
Sets the value ofCfnClusterProps.getName()- Parameters:
name- The name that identifies the cluster.- Returns:
this
-
slurmConfiguration
@Stability(Stable) public CfnClusterProps.Builder slurmConfiguration(IResolvable slurmConfiguration) Sets the value ofCfnClusterProps.getSlurmConfiguration()- Parameters:
slurmConfiguration- Additional options related to the Slurm scheduler.- Returns:
this
-
slurmConfiguration
@Stability(Stable) public CfnClusterProps.Builder slurmConfiguration(CfnCluster.SlurmConfigurationProperty slurmConfiguration) Sets the value ofCfnClusterProps.getSlurmConfiguration()- Parameters:
slurmConfiguration- Additional options related to the Slurm scheduler.- Returns:
this
-
tags
Sets the value ofCfnClusterProps.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<CfnClusterProps>- Returns:
- a new instance of
CfnClusterProps - Throws:
NullPointerException- if any required attribute was not provided
-