Class CfnClusterPropsMixin.ComputeLimitsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.emr.CfnClusterPropsMixin.ComputeLimitsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.ComputeLimitsProperty>
- Enclosing interface:
CfnClusterPropsMixin.ComputeLimitsProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.ComputeLimitsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.ComputeLimitsProperty>
A builder for
CfnClusterPropsMixin.ComputeLimitsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maximumCapacityUnits(Number maximumCapacityUnits) Sets the value ofCfnClusterPropsMixin.ComputeLimitsProperty.getMaximumCapacityUnits()maximumCoreCapacityUnits(Number maximumCoreCapacityUnits) Sets the value ofCfnClusterPropsMixin.ComputeLimitsProperty.getMaximumCoreCapacityUnits()maximumOnDemandCapacityUnits(Number maximumOnDemandCapacityUnits) minimumCapacityUnits(Number minimumCapacityUnits) Sets the value ofCfnClusterPropsMixin.ComputeLimitsProperty.getMinimumCapacityUnits()Sets the value ofCfnClusterPropsMixin.ComputeLimitsProperty.getUnitType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maximumCapacityUnits
@Stability(Stable) public CfnClusterPropsMixin.ComputeLimitsProperty.Builder maximumCapacityUnits(Number maximumCapacityUnits) Sets the value ofCfnClusterPropsMixin.ComputeLimitsProperty.getMaximumCapacityUnits()- Parameters:
maximumCapacityUnits- The upper boundary of Amazon EC2 units. 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
-
maximumCoreCapacityUnits
@Stability(Stable) public CfnClusterPropsMixin.ComputeLimitsProperty.Builder maximumCoreCapacityUnits(Number maximumCoreCapacityUnits) Sets the value ofCfnClusterPropsMixin.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 CfnClusterPropsMixin.ComputeLimitsProperty.Builder maximumOnDemandCapacityUnits(Number maximumOnDemandCapacityUnits) - 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
-
minimumCapacityUnits
@Stability(Stable) public CfnClusterPropsMixin.ComputeLimitsProperty.Builder minimumCapacityUnits(Number minimumCapacityUnits) Sets the value ofCfnClusterPropsMixin.ComputeLimitsProperty.getMinimumCapacityUnits()- Parameters:
minimumCapacityUnits- The lower boundary of Amazon EC2 units. 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
@Stability(Stable) public CfnClusterPropsMixin.ComputeLimitsProperty.Builder unitType(String unitType) Sets the value ofCfnClusterPropsMixin.ComputeLimitsProperty.getUnitType()- Parameters:
unitType- The unit type used for specifying a managed scaling policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.ComputeLimitsProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.ComputeLimitsProperty - Throws:
NullPointerException- if any required attribute was not provided
-