Class EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty>
- Enclosing interface:
EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty
@Stability(Stable)
public static final class EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.onDemandSpecification
(EmrCreateCluster.OnDemandProvisioningSpecificationProperty onDemandSpecification) spotSpecification
(EmrCreateCluster.SpotProvisioningSpecificationProperty spotSpecification)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
onDemandSpecification
@Stability(Stable) public EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty.Builder onDemandSpecification(EmrCreateCluster.OnDemandProvisioningSpecificationProperty onDemandSpecification) Sets the value ofEmrCreateCluster.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 EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty.Builder spotSpecification(EmrCreateCluster.SpotProvisioningSpecificationProperty spotSpecification) Sets the value ofEmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty.getSpotSpecification()
- Parameters:
spotSpecification
- The launch specification for Spot instances in the fleet, which determines the defined duration and provisioning timeout behavior.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty>
- Returns:
- a new instance of
EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-