Class CfnLayer.ShutdownEventConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opsworks.CfnLayer.ShutdownEventConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLayer.ShutdownEventConfigurationProperty>
- Enclosing interface:
CfnLayer.ShutdownEventConfigurationProperty
@Stability(Stable)
public static final class CfnLayer.ShutdownEventConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLayer.ShutdownEventConfigurationProperty>
A builder for
CfnLayer.ShutdownEventConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.delayUntilElbConnectionsDrained
(Boolean delayUntilElbConnectionsDrained) delayUntilElbConnectionsDrained
(IResolvable delayUntilElbConnectionsDrained) executionTimeout
(Number executionTimeout) Sets the value ofCfnLayer.ShutdownEventConfigurationProperty.getExecutionTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
delayUntilElbConnectionsDrained
@Stability(Stable) public CfnLayer.ShutdownEventConfigurationProperty.Builder delayUntilElbConnectionsDrained(Boolean delayUntilElbConnectionsDrained) - Parameters:
delayUntilElbConnectionsDrained
- Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining- Returns:
this
-
delayUntilElbConnectionsDrained
@Stability(Stable) public CfnLayer.ShutdownEventConfigurationProperty.Builder delayUntilElbConnectionsDrained(IResolvable delayUntilElbConnectionsDrained) - Parameters:
delayUntilElbConnectionsDrained
- Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining- Returns:
this
-
executionTimeout
@Stability(Stable) public CfnLayer.ShutdownEventConfigurationProperty.Builder executionTimeout(Number executionTimeout) Sets the value ofCfnLayer.ShutdownEventConfigurationProperty.getExecutionTimeout()
- Parameters:
executionTimeout
- The time, in seconds, that AWS OpsWorks Stacks waits after triggering a Shutdown event before shutting down an instance.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLayer.ShutdownEventConfigurationProperty>
- Returns:
- a new instance of
CfnLayer.ShutdownEventConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-