Class CfnApplication.AutoStopConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emrserverless.CfnApplication.AutoStopConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.AutoStopConfigurationProperty>
- Enclosing interface:
CfnApplication.AutoStopConfigurationProperty
@Stability(Stable)
public static final class CfnApplication.AutoStopConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.AutoStopConfigurationProperty>
A builder for
CfnApplication.AutoStopConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnApplication.AutoStopConfigurationProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnApplication.AutoStopConfigurationProperty.getEnabled()
idleTimeoutMinutes
(Number idleTimeoutMinutes) Sets the value ofCfnApplication.AutoStopConfigurationProperty.getIdleTimeoutMinutes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnApplication.AutoStopConfigurationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnApplication.AutoStopConfigurationProperty.getEnabled()
- Parameters:
enabled
- If set to true, the Application will automatically stop after being idle. Defaults to true.- Returns:
this
-
enabled
@Stability(Stable) public CfnApplication.AutoStopConfigurationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnApplication.AutoStopConfigurationProperty.getEnabled()
- Parameters:
enabled
- If set to true, the Application will automatically stop after being idle. Defaults to true.- Returns:
this
-
idleTimeoutMinutes
@Stability(Stable) public CfnApplication.AutoStopConfigurationProperty.Builder idleTimeoutMinutes(Number idleTimeoutMinutes) Sets the value ofCfnApplication.AutoStopConfigurationProperty.getIdleTimeoutMinutes()
- Parameters:
idleTimeoutMinutes
- The amount of time [in minutes] to wait before auto stopping the Application when idle. Defaults to 15 minutes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.AutoStopConfigurationProperty>
- Returns:
- a new instance of
CfnApplication.AutoStopConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-