Class EmrCreateCluster.ScalingActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.ScalingActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmrCreateCluster.ScalingActionProperty>
- Enclosing interface:
- EmrCreateCluster.ScalingActionProperty
@Stability(Stable)
public static final class EmrCreateCluster.ScalingActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<EmrCreateCluster.ScalingActionProperty>
A builder for
EmrCreateCluster.ScalingActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofEmrCreateCluster.ScalingActionProperty.getMarket()
simpleScalingPolicyConfiguration
(EmrCreateCluster.SimpleScalingPolicyConfigurationProperty simpleScalingPolicyConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
simpleScalingPolicyConfiguration
@Stability(Stable) public EmrCreateCluster.ScalingActionProperty.Builder simpleScalingPolicyConfiguration(EmrCreateCluster.SimpleScalingPolicyConfigurationProperty simpleScalingPolicyConfiguration) - Parameters:
simpleScalingPolicyConfiguration
- The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment. This parameter is required.- Returns:
this
-
market
@Stability(Stable) public EmrCreateCluster.ScalingActionProperty.Builder market(EmrCreateCluster.InstanceMarket market) Sets the value ofEmrCreateCluster.ScalingActionProperty.getMarket()
- Parameters:
market
- Not available for instance groups. Instance groups use the market type specified for the group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EmrCreateCluster.ScalingActionProperty>
- Returns:
- a new instance of
EmrCreateCluster.ScalingActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-