Class CfnLaunchTemplate.MaintenanceOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnLaunchTemplate.MaintenanceOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchTemplate.MaintenanceOptionsProperty>
- Enclosing interface:
- CfnLaunchTemplate.MaintenanceOptionsProperty
@Stability(Stable)
public static final class CfnLaunchTemplate.MaintenanceOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchTemplate.MaintenanceOptionsProperty>
A builder for
CfnLaunchTemplate.MaintenanceOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoRecovery(String autoRecovery) Sets the value ofCfnLaunchTemplate.MaintenanceOptionsProperty.getAutoRecovery()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoRecovery
@Stability(Stable) public CfnLaunchTemplate.MaintenanceOptionsProperty.Builder autoRecovery(String autoRecovery) Sets the value ofCfnLaunchTemplate.MaintenanceOptionsProperty.getAutoRecovery()- Parameters:
autoRecovery- Disables the automatic recovery behavior of your instance or sets it to default.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLaunchTemplate.MaintenanceOptionsProperty>- Returns:
- a new instance of
CfnLaunchTemplate.MaintenanceOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-