Interface InstanceFleetProvisioningSpecifications.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceFleetProvisioningSpecifications.Builder,
,InstanceFleetProvisioningSpecifications> SdkBuilder<InstanceFleetProvisioningSpecifications.Builder,
,InstanceFleetProvisioningSpecifications> SdkPojo
- Enclosing class:
InstanceFleetProvisioningSpecifications
-
Method Summary
Modifier and TypeMethodDescriptiononDemandSpecification
(Consumer<OnDemandProvisioningSpecification.Builder> onDemandSpecification) The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy and capacity reservation options.onDemandSpecification
(OnDemandProvisioningSpecification onDemandSpecification) The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy and capacity reservation options.spotSpecification
(Consumer<SpotProvisioningSpecification.Builder> spotSpecification) The launch specification for Spot instances in the fleet, which determines the allocation strategy, defined duration, and provisioning timeout behavior.spotSpecification
(SpotProvisioningSpecification spotSpecification) The launch specification for Spot instances in the fleet, which determines the allocation strategy, defined duration, and provisioning timeout behavior.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
spotSpecification
InstanceFleetProvisioningSpecifications.Builder spotSpecification(SpotProvisioningSpecification spotSpecification) The launch specification for Spot instances in the fleet, which determines the allocation strategy, defined duration, and provisioning timeout behavior.
- Parameters:
spotSpecification
- The launch specification for Spot instances in the fleet, which determines the allocation strategy, defined duration, and provisioning timeout behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotSpecification
default InstanceFleetProvisioningSpecifications.Builder spotSpecification(Consumer<SpotProvisioningSpecification.Builder> spotSpecification) The launch specification for Spot instances in the fleet, which determines the allocation strategy, defined duration, and provisioning timeout behavior.
This is a convenience method that creates an instance of theSpotProvisioningSpecification.Builder
avoiding the need to create one manually viaSpotProvisioningSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tospotSpecification(SpotProvisioningSpecification)
.- Parameters:
spotSpecification
- a consumer that will call methods onSpotProvisioningSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
onDemandSpecification
InstanceFleetProvisioningSpecifications.Builder onDemandSpecification(OnDemandProvisioningSpecification onDemandSpecification) The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy and capacity reservation options.
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.
- Parameters:
onDemandSpecification
- The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy and capacity reservation options.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:
- Returns a reference to this object so that method calls can be chained together.
-
onDemandSpecification
default InstanceFleetProvisioningSpecifications.Builder onDemandSpecification(Consumer<OnDemandProvisioningSpecification.Builder> onDemandSpecification) The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy and capacity reservation options.
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.
OnDemandProvisioningSpecification.Builder
avoiding the need to create one manually viaOnDemandProvisioningSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toonDemandSpecification(OnDemandProvisioningSpecification)
.- Parameters:
onDemandSpecification
- a consumer that will call methods onOnDemandProvisioningSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-