Class CfnCluster.ManagedScalingPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnCluster.ManagedScalingPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.ManagedScalingPolicyProperty>
- Enclosing interface:
CfnCluster.ManagedScalingPolicyProperty
@Stability(Stable)
public static final class CfnCluster.ManagedScalingPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ManagedScalingPolicyProperty>
A builder for
CfnCluster.ManagedScalingPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.computeLimits(IResolvable computeLimits) Sets the value ofCfnCluster.ManagedScalingPolicyProperty.getComputeLimits()computeLimits(CfnCluster.ComputeLimitsProperty computeLimits) Sets the value ofCfnCluster.ManagedScalingPolicyProperty.getComputeLimits()scalingStrategy(String scalingStrategy) Sets the value ofCfnCluster.ManagedScalingPolicyProperty.getScalingStrategy()utilizationPerformanceIndex(Number utilizationPerformanceIndex) Sets the value ofCfnCluster.ManagedScalingPolicyProperty.getUtilizationPerformanceIndex()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
computeLimits
@Stability(Stable) public CfnCluster.ManagedScalingPolicyProperty.Builder computeLimits(IResolvable computeLimits) Sets the value ofCfnCluster.ManagedScalingPolicyProperty.getComputeLimits()- Parameters:
computeLimits- The Amazon EC2 unit limits for a managed scaling policy. The managed scaling activity of a cluster is not allowed to go above or below these limits. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.- Returns:
this
-
computeLimits
@Stability(Stable) public CfnCluster.ManagedScalingPolicyProperty.Builder computeLimits(CfnCluster.ComputeLimitsProperty computeLimits) Sets the value ofCfnCluster.ManagedScalingPolicyProperty.getComputeLimits()- Parameters:
computeLimits- The Amazon EC2 unit limits for a managed scaling policy. The managed scaling activity of a cluster is not allowed to go above or below these limits. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.- Returns:
this
-
scalingStrategy
@Stability(Stable) public CfnCluster.ManagedScalingPolicyProperty.Builder scalingStrategy(String scalingStrategy) Sets the value ofCfnCluster.ManagedScalingPolicyProperty.getScalingStrategy()- Parameters:
scalingStrategy- Determines whether a custom scaling utilization performance index can be set. Possible values include ADVANCED or DEFAULT .- Returns:
this
-
utilizationPerformanceIndex
@Stability(Stable) public CfnCluster.ManagedScalingPolicyProperty.Builder utilizationPerformanceIndex(Number utilizationPerformanceIndex) Sets the value ofCfnCluster.ManagedScalingPolicyProperty.getUtilizationPerformanceIndex()- Parameters:
utilizationPerformanceIndex- An integer value that represents an advanced scaling strategy. Setting a higher value optimizes for performance. Setting a lower value optimizes for resource conservation. Setting the value to 50 balances performance and resource conservation. Possible values are 1, 25, 50, 75, and 100.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.ManagedScalingPolicyProperty>- Returns:
- a new instance of
CfnCluster.ManagedScalingPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-