Class CfnCluster.OnDemandProvisioningSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnCluster.OnDemandProvisioningSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.OnDemandProvisioningSpecificationProperty>
- Enclosing interface:
CfnCluster.OnDemandProvisioningSpecificationProperty
@Stability(Stable)
public static final class CfnCluster.OnDemandProvisioningSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.OnDemandProvisioningSpecificationProperty>
A builder for
CfnCluster.OnDemandProvisioningSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocationStrategy(String allocationStrategy) build()Builds the configured instance.capacityReservationOptions(IResolvable capacityReservationOptions) capacityReservationOptions(CfnCluster.OnDemandCapacityReservationOptionsProperty capacityReservationOptions)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocationStrategy
@Stability(Stable) public CfnCluster.OnDemandProvisioningSpecificationProperty.Builder allocationStrategy(String allocationStrategy) - Parameters:
allocationStrategy- Specifies the strategy to use in launching On-Demand instance fleets. This parameter is required. Available options arelowest-priceandprioritized.lowest-pricespecifies to launch the instances with the lowest price first, andprioritizedspecifies that Amazon EMR should launch the instances with the highest priority first. The default islowest-price.- Returns:
this
-
capacityReservationOptions
@Stability(Stable) public CfnCluster.OnDemandProvisioningSpecificationProperty.Builder capacityReservationOptions(IResolvable capacityReservationOptions) Sets the value ofCfnCluster.OnDemandProvisioningSpecificationProperty.getCapacityReservationOptions()- Parameters:
capacityReservationOptions- The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.- Returns:
this
-
capacityReservationOptions
@Stability(Stable) public CfnCluster.OnDemandProvisioningSpecificationProperty.Builder capacityReservationOptions(CfnCluster.OnDemandCapacityReservationOptionsProperty capacityReservationOptions) Sets the value ofCfnCluster.OnDemandProvisioningSpecificationProperty.getCapacityReservationOptions()- Parameters:
capacityReservationOptions- The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.OnDemandProvisioningSpecificationProperty>- Returns:
- a new instance of
CfnCluster.OnDemandProvisioningSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-