Class CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty>
- Enclosing interface:
- CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty
@Stability(Stable)
public static final class CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.onDemandSpecification(IResolvable onDemandSpecification) onDemandSpecification(CfnInstanceFleetConfig.OnDemandProvisioningSpecificationProperty onDemandSpecification) spotSpecification(IResolvable spotSpecification) spotSpecification(CfnInstanceFleetConfig.SpotProvisioningSpecificationProperty spotSpecification)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
onDemandSpecification
@Stability(Stable) public CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty.Builder onDemandSpecification(IResolvable onDemandSpecification) Sets the value ofCfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty.getOnDemandSpecification()- Parameters:
onDemandSpecification- The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR releases 5.12.1 and later.
- Returns:
this
-
onDemandSpecification
@Stability(Stable) public CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty.Builder onDemandSpecification(CfnInstanceFleetConfig.OnDemandProvisioningSpecificationProperty onDemandSpecification) Sets the value ofCfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty.getOnDemandSpecification()- Parameters:
onDemandSpecification- The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR releases 5.12.1 and later.
- Returns:
this
-
spotSpecification
@Stability(Stable) public CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty.Builder spotSpecification(IResolvable spotSpecification) Sets the value ofCfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty.getSpotSpecification()- Parameters:
spotSpecification- The launch specification for Spot instances in the fleet, which determines the defined duration, provisioning timeout behavior, and allocation strategy.- Returns:
this
-
spotSpecification
@Stability(Stable) public CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty.Builder spotSpecification(CfnInstanceFleetConfig.SpotProvisioningSpecificationProperty spotSpecification) Sets the value ofCfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty.getSpotSpecification()- Parameters:
spotSpecification- The launch specification for Spot instances in the fleet, which determines the defined duration, provisioning timeout behavior, and allocation strategy.- Returns:
this
-
build
@Stability(Stable) public CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty>- Returns:
- a new instance of
CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty - Throws:
NullPointerException- if any required attribute was not provided
-