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.
-
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. Currently, the only option islowest-price
(the default), which launches the lowest price first.- 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
-