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 TypeMethodDescriptionaccounting(IResolvable accounting) Sets the value ofCfnCluster.SlurmConfigurationProperty.getAccounting()accounting(CfnCluster.AccountingProperty accounting) Sets the value ofCfnCluster.SlurmConfigurationProperty.getAccounting()authKey(IResolvable authKey) Sets the value ofCfnCluster.SlurmConfigurationProperty.getAuthKey()authKey(CfnCluster.AuthKeyProperty authKey) Sets the value ofCfnCluster.SlurmConfigurationProperty.getAuthKey()build()Builds the configured instance.jwtAuth(IResolvable jwtAuth) Sets the value ofCfnCluster.SlurmConfigurationProperty.getJwtAuth()jwtAuth(CfnCluster.JwtAuthProperty jwtAuth) Sets the value ofCfnCluster.SlurmConfigurationProperty.getJwtAuth()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()slurmRest(IResolvable slurmRest) Sets the value ofCfnCluster.SlurmConfigurationProperty.getSlurmRest()slurmRest(CfnCluster.SlurmRestProperty slurmRest) Sets the value ofCfnCluster.SlurmConfigurationProperty.getSlurmRest()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accounting
@Stability(Stable) public CfnCluster.SlurmConfigurationProperty.Builder accounting(IResolvable accounting) Sets the value ofCfnCluster.SlurmConfigurationProperty.getAccounting()- Parameters:
accounting- The accounting configuration includes configurable settings for Slurm accounting.- Returns:
this
-
accounting
@Stability(Stable) public CfnCluster.SlurmConfigurationProperty.Builder accounting(CfnCluster.AccountingProperty accounting) Sets the value ofCfnCluster.SlurmConfigurationProperty.getAccounting()- Parameters:
accounting- The accounting configuration includes configurable settings for Slurm accounting.- Returns:
this
-
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
-
jwtAuth
@Stability(Stable) public CfnCluster.SlurmConfigurationProperty.Builder jwtAuth(IResolvable jwtAuth) Sets the value ofCfnCluster.SlurmConfigurationProperty.getJwtAuth()- Parameters:
jwtAuth- The JWT authentication configuration for Slurm REST API access.- Returns:
this
-
jwtAuth
@Stability(Stable) public CfnCluster.SlurmConfigurationProperty.Builder jwtAuth(CfnCluster.JwtAuthProperty jwtAuth) Sets the value ofCfnCluster.SlurmConfigurationProperty.getJwtAuth()- Parameters:
jwtAuth- The JWT authentication configuration for Slurm REST API access.- Returns:
this
-
scaleDownIdleTimeInSeconds
@Stability(Stable) public CfnCluster.SlurmConfigurationProperty.Builder scaleDownIdleTimeInSeconds(Number scaleDownIdleTimeInSeconds) Sets the value ofCfnCluster.SlurmConfigurationProperty.getScaleDownIdleTimeInSeconds()- Parameters:
scaleDownIdleTimeInSeconds- The time (in seconds) before an idle node is scaled down. Default:600- 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
-
slurmRest
@Stability(Stable) public CfnCluster.SlurmConfigurationProperty.Builder slurmRest(IResolvable slurmRest) Sets the value ofCfnCluster.SlurmConfigurationProperty.getSlurmRest()- Parameters:
slurmRest- The Slurm REST API configuration for the cluster.- Returns:
this
-
slurmRest
@Stability(Stable) public CfnCluster.SlurmConfigurationProperty.Builder slurmRest(CfnCluster.SlurmRestProperty slurmRest) Sets the value ofCfnCluster.SlurmConfigurationProperty.getSlurmRest()- Parameters:
slurmRest- The Slurm REST API configuration for the cluster.- 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
-