Class CfnCluster.ScalingRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnCluster.ScalingRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.ScalingRuleProperty>
- Enclosing interface:
CfnCluster.ScalingRuleProperty
@Stability(Stable)
public static final class CfnCluster.ScalingRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ScalingRuleProperty>
A builder for
CfnCluster.ScalingRuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction
(IResolvable action) Sets the value ofCfnCluster.ScalingRuleProperty.getAction()
Sets the value ofCfnCluster.ScalingRuleProperty.getAction()
build()
Builds the configured instance.description
(String description) Sets the value ofCfnCluster.ScalingRuleProperty.getDescription()
Sets the value ofCfnCluster.ScalingRuleProperty.getName()
trigger
(IResolvable trigger) Sets the value ofCfnCluster.ScalingRuleProperty.getTrigger()
trigger
(CfnCluster.ScalingTriggerProperty trigger) Sets the value ofCfnCluster.ScalingRuleProperty.getTrigger()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnCluster.ScalingRuleProperty.getAction()
- Parameters:
action
- The conditions that trigger an automatic scaling activity. This parameter is required.- Returns:
this
-
action
@Stability(Stable) public CfnCluster.ScalingRuleProperty.Builder action(CfnCluster.ScalingActionProperty action) Sets the value ofCfnCluster.ScalingRuleProperty.getAction()
- Parameters:
action
- The conditions that trigger an automatic scaling activity. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnCluster.ScalingRuleProperty.getName()
- Parameters:
name
- The name used to identify an automatic scaling rule. This parameter is required. Rule names must be unique within a scaling policy.- Returns:
this
-
trigger
Sets the value ofCfnCluster.ScalingRuleProperty.getTrigger()
- Parameters:
trigger
- The CloudWatch alarm definition that determines when automatic scaling activity is triggered. This parameter is required.- Returns:
this
-
trigger
@Stability(Stable) public CfnCluster.ScalingRuleProperty.Builder trigger(CfnCluster.ScalingTriggerProperty trigger) Sets the value ofCfnCluster.ScalingRuleProperty.getTrigger()
- Parameters:
trigger
- The CloudWatch alarm definition that determines when automatic scaling activity is triggered. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnCluster.ScalingRuleProperty.getDescription()
- Parameters:
description
- A friendly, more verbose description of the automatic scaling rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.ScalingRuleProperty>
- Returns:
- a new instance of
CfnCluster.ScalingRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-