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