Class CfnCluster.AutoTerminationPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnCluster.AutoTerminationPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.AutoTerminationPolicyProperty>
- Enclosing interface:
CfnCluster.AutoTerminationPolicyProperty
@Stability(Stable)
public static final class CfnCluster.AutoTerminationPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.AutoTerminationPolicyProperty>
A builder for
CfnCluster.AutoTerminationPolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.idleTimeout
(Number idleTimeout) Sets the value ofCfnCluster.AutoTerminationPolicyProperty.getIdleTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
idleTimeout
@Stability(Stable) public CfnCluster.AutoTerminationPolicyProperty.Builder idleTimeout(Number idleTimeout) Sets the value ofCfnCluster.AutoTerminationPolicyProperty.getIdleTimeout()
- Parameters:
idleTimeout
- Specifies the amount of idle time in seconds after which the cluster automatically terminates. You can specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.AutoTerminationPolicyProperty>
- Returns:
- a new instance of
CfnCluster.AutoTerminationPolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-