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