Class CfnInstanceGroupConfig.ScalingTriggerProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.ScalingTriggerProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceGroupConfig.ScalingTriggerProperty>
- Enclosing interface:
CfnInstanceGroupConfig.ScalingTriggerProperty
@Stability(Stable)
public static final class CfnInstanceGroupConfig.ScalingTriggerProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceGroupConfig.ScalingTriggerProperty>
A builder for
CfnInstanceGroupConfig.ScalingTriggerProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cloudWatchAlarmDefinition
(IResolvable cloudWatchAlarmDefinition) cloudWatchAlarmDefinition
(CfnInstanceGroupConfig.CloudWatchAlarmDefinitionProperty cloudWatchAlarmDefinition)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudWatchAlarmDefinition
@Stability(Stable) public CfnInstanceGroupConfig.ScalingTriggerProperty.Builder cloudWatchAlarmDefinition(IResolvable cloudWatchAlarmDefinition) - Parameters:
cloudWatchAlarmDefinition
- The definition of a CloudWatch metric alarm. This parameter is required. When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.- Returns:
this
-
cloudWatchAlarmDefinition
@Stability(Stable) public CfnInstanceGroupConfig.ScalingTriggerProperty.Builder cloudWatchAlarmDefinition(CfnInstanceGroupConfig.CloudWatchAlarmDefinitionProperty cloudWatchAlarmDefinition) - Parameters:
cloudWatchAlarmDefinition
- The definition of a CloudWatch metric alarm. This parameter is required. When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnInstanceGroupConfig.ScalingTriggerProperty>
- Returns:
- a new instance of
CfnInstanceGroupConfig.ScalingTriggerProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-