Class EmrCreateCluster.ScalingRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.ScalingRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmrCreateCluster.ScalingRuleProperty>
- Enclosing interface:
- EmrCreateCluster.ScalingRuleProperty
@Stability(Stable)
public static final class EmrCreateCluster.ScalingRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<EmrCreateCluster.ScalingRuleProperty>
A builder for
EmrCreateCluster.ScalingRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofEmrCreateCluster.ScalingRuleProperty.getAction()build()Builds the configured instance.description(String description) Sets the value ofEmrCreateCluster.ScalingRuleProperty.getDescription()Sets the value ofEmrCreateCluster.ScalingRuleProperty.getName()Sets the value ofEmrCreateCluster.ScalingRuleProperty.getTrigger()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
@Stability(Stable) public EmrCreateCluster.ScalingRuleProperty.Builder action(EmrCreateCluster.ScalingActionProperty action) Sets the value ofEmrCreateCluster.ScalingRuleProperty.getAction()- Parameters:
action- The conditions that trigger an automatic scaling activity. This parameter is required.- Returns:
this
-
name
Sets the value ofEmrCreateCluster.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
@Stability(Stable) public EmrCreateCluster.ScalingRuleProperty.Builder trigger(EmrCreateCluster.ScalingTriggerProperty trigger) Sets the value ofEmrCreateCluster.ScalingRuleProperty.getTrigger()- Parameters:
trigger- The CloudWatch alarm definition that determines when automatic scaling activity is triggered. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public EmrCreateCluster.ScalingRuleProperty.Builder description(String description) Sets the value ofEmrCreateCluster.ScalingRuleProperty.getDescription()- Parameters:
description- A friendly, more verbose description of the automatic scaling rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EmrCreateCluster.ScalingRuleProperty>- Returns:
- a new instance of
EmrCreateCluster.ScalingRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-