Class CfnCluster.AccountingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pcs.CfnCluster.AccountingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.AccountingProperty>
- Enclosing interface:
CfnCluster.AccountingProperty
@Stability(Stable)
public static final class CfnCluster.AccountingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.AccountingProperty>
A builder for
CfnCluster.AccountingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.defaultPurgeTimeInDays(Number defaultPurgeTimeInDays) Sets the value ofCfnCluster.AccountingProperty.getDefaultPurgeTimeInDays()Sets the value ofCfnCluster.AccountingProperty.getMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mode
Sets the value ofCfnCluster.AccountingProperty.getMode()- Parameters:
mode- The default value formodeisSTANDARD. This parameter is required. A value ofSTANDARDmeans Slurm accounting is enabled.- Returns:
this
-
defaultPurgeTimeInDays
@Stability(Stable) public CfnCluster.AccountingProperty.Builder defaultPurgeTimeInDays(Number defaultPurgeTimeInDays) Sets the value ofCfnCluster.AccountingProperty.getDefaultPurgeTimeInDays()- Parameters:
defaultPurgeTimeInDays- The default value for all purge settings forslurmdbd.conf. For more information, see the slurmdbd.conf documentation at SchedMD . The default value fordefaultPurgeTimeInDaysis-1.A value of
-1means there is no purge time and records persist as long as the cluster exists.0isn't a valid value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.AccountingProperty>- Returns:
- a new instance of
CfnCluster.AccountingProperty - Throws:
NullPointerException- if any required attribute was not provided
-