Class CfnLaunchTemplate.MonitoringProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnLaunchTemplate.MonitoringProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchTemplate.MonitoringProperty>
- Enclosing interface:
CfnLaunchTemplate.MonitoringProperty
@Stability(Stable)
public static final class CfnLaunchTemplate.MonitoringProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchTemplate.MonitoringProperty>
A builder for
CfnLaunchTemplate.MonitoringProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnLaunchTemplate.MonitoringProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnLaunchTemplate.MonitoringProperty.getEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofCfnLaunchTemplate.MonitoringProperty.getEnabled()- Parameters:
enabled- Specifytrueto enable detailed monitoring. Otherwise, basic monitoring is enabled.- Returns:
this
-
enabled
Sets the value ofCfnLaunchTemplate.MonitoringProperty.getEnabled()- Parameters:
enabled- Specifytrueto enable detailed monitoring. Otherwise, basic monitoring is enabled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLaunchTemplate.MonitoringProperty>- Returns:
- a new instance of
CfnLaunchTemplate.MonitoringProperty - Throws:
NullPointerException- if any required attribute was not provided
-