Class CfnCluster.SlurmConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pcs.CfnCluster.SlurmConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.SlurmConfigurationProperty>
- Enclosing interface:
CfnCluster.SlurmConfigurationProperty
@Stability(Stable)
public static final class CfnCluster.SlurmConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.SlurmConfigurationProperty>
A builder for
CfnCluster.SlurmConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthKey(IResolvable authKey) Sets the value ofCfnCluster.SlurmConfigurationProperty.getAuthKey()authKey(CfnCluster.AuthKeyProperty authKey) Sets the value ofCfnCluster.SlurmConfigurationProperty.getAuthKey()build()Builds the configured instance.scaleDownIdleTimeInSeconds(Number scaleDownIdleTimeInSeconds) Sets the value ofCfnCluster.SlurmConfigurationProperty.getScaleDownIdleTimeInSeconds()slurmCustomSettings(List<? extends Object> slurmCustomSettings) Sets the value ofCfnCluster.SlurmConfigurationProperty.getSlurmCustomSettings()slurmCustomSettings(IResolvable slurmCustomSettings) Sets the value ofCfnCluster.SlurmConfigurationProperty.getSlurmCustomSettings()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authKey
@Stability(Stable) public CfnCluster.SlurmConfigurationProperty.Builder authKey(IResolvable authKey) Sets the value ofCfnCluster.SlurmConfigurationProperty.getAuthKey()- Parameters:
authKey- The shared Slurm key for authentication, also known as the cluster secret.- Returns:
this
-
authKey
@Stability(Stable) public CfnCluster.SlurmConfigurationProperty.Builder authKey(CfnCluster.AuthKeyProperty authKey) Sets the value ofCfnCluster.SlurmConfigurationProperty.getAuthKey()- Parameters:
authKey- The shared Slurm key for authentication, also known as the cluster secret.- Returns:
this
-
scaleDownIdleTimeInSeconds
@Stability(Stable) public CfnCluster.SlurmConfigurationProperty.Builder scaleDownIdleTimeInSeconds(Number scaleDownIdleTimeInSeconds) Sets the value ofCfnCluster.SlurmConfigurationProperty.getScaleDownIdleTimeInSeconds()- Parameters:
scaleDownIdleTimeInSeconds- The time before an idle node is scaled down.- Returns:
this
-
slurmCustomSettings
@Stability(Stable) public CfnCluster.SlurmConfigurationProperty.Builder slurmCustomSettings(IResolvable slurmCustomSettings) Sets the value ofCfnCluster.SlurmConfigurationProperty.getSlurmCustomSettings()- Parameters:
slurmCustomSettings- Additional Slurm-specific configuration that directly maps to Slurm settings.- Returns:
this
-
slurmCustomSettings
@Stability(Stable) public CfnCluster.SlurmConfigurationProperty.Builder slurmCustomSettings(List<? extends Object> slurmCustomSettings) Sets the value ofCfnCluster.SlurmConfigurationProperty.getSlurmCustomSettings()- Parameters:
slurmCustomSettings- Additional Slurm-specific configuration that directly maps to Slurm settings.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.SlurmConfigurationProperty>- Returns:
- a new instance of
CfnCluster.SlurmConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-