Class CfnClusterPropsMixin.SlurmConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pcs.CfnClusterPropsMixin.SlurmConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.SlurmConfigurationProperty>
- Enclosing interface:
CfnClusterPropsMixin.SlurmConfigurationProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.SlurmConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.SlurmConfigurationProperty>
A builder for
CfnClusterPropsMixin.SlurmConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccounting(CfnClusterPropsMixin.AccountingProperty accounting) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getAccounting()accounting(IResolvable accounting) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getAccounting()Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getAuthKey()authKey(IResolvable authKey) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getAuthKey()build()Builds the configured instance.Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getJwtAuth()jwtAuth(IResolvable jwtAuth) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getJwtAuth()scaleDownIdleTimeInSeconds(Number scaleDownIdleTimeInSeconds) slurmCustomSettings(List<? extends Object> slurmCustomSettings) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getSlurmCustomSettings()slurmCustomSettings(IResolvable slurmCustomSettings) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getSlurmCustomSettings()slurmRest(CfnClusterPropsMixin.SlurmRestProperty slurmRest) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getSlurmRest()slurmRest(IResolvable slurmRest) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getSlurmRest()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accounting
@Stability(Stable) public CfnClusterPropsMixin.SlurmConfigurationProperty.Builder accounting(IResolvable accounting) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getAccounting()- Parameters:
accounting- The accounting configuration includes configurable settings for Slurm accounting.- Returns:
this
-
accounting
@Stability(Stable) public CfnClusterPropsMixin.SlurmConfigurationProperty.Builder accounting(CfnClusterPropsMixin.AccountingProperty accounting) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getAccounting()- Parameters:
accounting- The accounting configuration includes configurable settings for Slurm accounting.- Returns:
this
-
authKey
@Stability(Stable) public CfnClusterPropsMixin.SlurmConfigurationProperty.Builder authKey(IResolvable authKey) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getAuthKey()- Parameters:
authKey- The shared Slurm key for authentication, also known as the cluster secret .- Returns:
this
-
authKey
@Stability(Stable) public CfnClusterPropsMixin.SlurmConfigurationProperty.Builder authKey(CfnClusterPropsMixin.AuthKeyProperty authKey) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getAuthKey()- Parameters:
authKey- The shared Slurm key for authentication, also known as the cluster secret .- Returns:
this
-
jwtAuth
@Stability(Stable) public CfnClusterPropsMixin.SlurmConfigurationProperty.Builder jwtAuth(IResolvable jwtAuth) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getJwtAuth()- Parameters:
jwtAuth- The JWT authentication configuration for Slurm REST API access.- Returns:
this
-
jwtAuth
@Stability(Stable) public CfnClusterPropsMixin.SlurmConfigurationProperty.Builder jwtAuth(CfnClusterPropsMixin.JwtAuthProperty jwtAuth) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getJwtAuth()- Parameters:
jwtAuth- The JWT authentication configuration for Slurm REST API access.- Returns:
this
-
scaleDownIdleTimeInSeconds
@Stability(Stable) public CfnClusterPropsMixin.SlurmConfigurationProperty.Builder scaleDownIdleTimeInSeconds(Number scaleDownIdleTimeInSeconds) - Parameters:
scaleDownIdleTimeInSeconds- The time (in seconds) before an idle node is scaled down. Default:600- Returns:
this
-
slurmCustomSettings
@Stability(Stable) public CfnClusterPropsMixin.SlurmConfigurationProperty.Builder slurmCustomSettings(IResolvable slurmCustomSettings) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getSlurmCustomSettings()- Parameters:
slurmCustomSettings- Additional Slurm-specific configuration that directly maps to Slurm settings.- Returns:
this
-
slurmCustomSettings
@Stability(Stable) public CfnClusterPropsMixin.SlurmConfigurationProperty.Builder slurmCustomSettings(List<? extends Object> slurmCustomSettings) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getSlurmCustomSettings()- Parameters:
slurmCustomSettings- Additional Slurm-specific configuration that directly maps to Slurm settings.- Returns:
this
-
slurmRest
@Stability(Stable) public CfnClusterPropsMixin.SlurmConfigurationProperty.Builder slurmRest(IResolvable slurmRest) Sets the value ofCfnClusterPropsMixin.SlurmConfigurationProperty.getSlurmRest()- Parameters:
slurmRest- The Slurm REST API configuration for the cluster.- Returns:
this
-
slurmRest
@Stability(Stable) public CfnClusterPropsMixin.SlurmConfigurationProperty.Builder slurmRest(CfnClusterPropsMixin.SlurmRestProperty slurmRest) Sets the value ofCfnClusterPropsMixin.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<CfnClusterPropsMixin.SlurmConfigurationProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.SlurmConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-