Class CfnCluster.ScalingTriggerProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnCluster.ScalingTriggerProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.ScalingTriggerProperty>
- Enclosing interface:
CfnCluster.ScalingTriggerProperty
@Stability(Stable)
public static final class CfnCluster.ScalingTriggerProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ScalingTriggerProperty>
A builder for
CfnCluster.ScalingTriggerProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cloudWatchAlarmDefinition
(IResolvable cloudWatchAlarmDefinition) Sets the value ofCfnCluster.ScalingTriggerProperty.getCloudWatchAlarmDefinition()
cloudWatchAlarmDefinition
(CfnCluster.CloudWatchAlarmDefinitionProperty cloudWatchAlarmDefinition) Sets the value ofCfnCluster.ScalingTriggerProperty.getCloudWatchAlarmDefinition()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudWatchAlarmDefinition
@Stability(Stable) public CfnCluster.ScalingTriggerProperty.Builder cloudWatchAlarmDefinition(IResolvable cloudWatchAlarmDefinition) Sets the value ofCfnCluster.ScalingTriggerProperty.getCloudWatchAlarmDefinition()
- 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 CfnCluster.ScalingTriggerProperty.Builder cloudWatchAlarmDefinition(CfnCluster.CloudWatchAlarmDefinitionProperty cloudWatchAlarmDefinition) Sets the value ofCfnCluster.ScalingTriggerProperty.getCloudWatchAlarmDefinition()
- 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<CfnCluster.ScalingTriggerProperty>
- Returns:
- a new instance of
CfnCluster.ScalingTriggerProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-