Class CfnCluster.ComputeLimitsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnCluster.ComputeLimitsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.ComputeLimitsProperty>
- Enclosing interface:
CfnCluster.ComputeLimitsProperty
@Stability(Stable)
public static final class CfnCluster.ComputeLimitsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ComputeLimitsProperty>
A builder for
CfnCluster.ComputeLimitsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maximumCapacityUnits
(Number maximumCapacityUnits) Sets the value ofCfnCluster.ComputeLimitsProperty.getMaximumCapacityUnits()
maximumCoreCapacityUnits
(Number maximumCoreCapacityUnits) Sets the value ofCfnCluster.ComputeLimitsProperty.getMaximumCoreCapacityUnits()
maximumOnDemandCapacityUnits
(Number maximumOnDemandCapacityUnits) Sets the value ofCfnCluster.ComputeLimitsProperty.getMaximumOnDemandCapacityUnits()
minimumCapacityUnits
(Number minimumCapacityUnits) Sets the value ofCfnCluster.ComputeLimitsProperty.getMinimumCapacityUnits()
Sets the value ofCfnCluster.ComputeLimitsProperty.getUnitType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maximumCapacityUnits
@Stability(Stable) public CfnCluster.ComputeLimitsProperty.Builder maximumCapacityUnits(Number maximumCapacityUnits) Sets the value ofCfnCluster.ComputeLimitsProperty.getMaximumCapacityUnits()
- Parameters:
maximumCapacityUnits
- The upper boundary of Amazon EC2 units. This parameter is required. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.- Returns:
this
-
minimumCapacityUnits
@Stability(Stable) public CfnCluster.ComputeLimitsProperty.Builder minimumCapacityUnits(Number minimumCapacityUnits) Sets the value ofCfnCluster.ComputeLimitsProperty.getMinimumCapacityUnits()
- Parameters:
minimumCapacityUnits
- The lower boundary of Amazon EC2 units. This parameter is required. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.- Returns:
this
-
unitType
Sets the value ofCfnCluster.ComputeLimitsProperty.getUnitType()
- Parameters:
unitType
- The unit type used for specifying a managed scaling policy. This parameter is required.- Returns:
this
-
maximumCoreCapacityUnits
@Stability(Stable) public CfnCluster.ComputeLimitsProperty.Builder maximumCoreCapacityUnits(Number maximumCoreCapacityUnits) Sets the value ofCfnCluster.ComputeLimitsProperty.getMaximumCoreCapacityUnits()
- Parameters:
maximumCoreCapacityUnits
- The upper boundary of Amazon EC2 units for core node type in a cluster. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. The core units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between core and task nodes.- Returns:
this
-
maximumOnDemandCapacityUnits
@Stability(Stable) public CfnCluster.ComputeLimitsProperty.Builder maximumOnDemandCapacityUnits(Number maximumOnDemandCapacityUnits) Sets the value ofCfnCluster.ComputeLimitsProperty.getMaximumOnDemandCapacityUnits()
- Parameters:
maximumOnDemandCapacityUnits
- The upper boundary of On-Demand Amazon EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. The On-Demand units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between On-Demand and Spot Instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.ComputeLimitsProperty>
- Returns:
- a new instance of
CfnCluster.ComputeLimitsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-