Class CfnLaunchTemplate.HibernationOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnLaunchTemplate.HibernationOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchTemplate.HibernationOptionsProperty>
- Enclosing interface:
CfnLaunchTemplate.HibernationOptionsProperty
@Stability(Stable)
public static final class CfnLaunchTemplate.HibernationOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchTemplate.HibernationOptionsProperty>
A builder for
CfnLaunchTemplate.HibernationOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.configured(Boolean configured) Sets the value ofCfnLaunchTemplate.HibernationOptionsProperty.getConfigured()configured(IResolvable configured) Sets the value ofCfnLaunchTemplate.HibernationOptionsProperty.getConfigured()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configured
@Stability(Stable) public CfnLaunchTemplate.HibernationOptionsProperty.Builder configured(Boolean configured) Sets the value ofCfnLaunchTemplate.HibernationOptionsProperty.getConfigured()- Parameters:
configured- If you set this parameter totrue, the instance is enabled for hibernation. Default:false- Returns:
this
-
configured
@Stability(Stable) public CfnLaunchTemplate.HibernationOptionsProperty.Builder configured(IResolvable configured) Sets the value ofCfnLaunchTemplate.HibernationOptionsProperty.getConfigured()- Parameters:
configured- If you set this parameter totrue, the instance is enabled for hibernation. Default:false- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLaunchTemplate.HibernationOptionsProperty>- Returns:
- a new instance of
CfnLaunchTemplate.HibernationOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-