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