public static interface InstanceFleetProvisioningSpecifications.Builder extends SdkPojo, CopyableBuilder<InstanceFleetProvisioningSpecifications.Builder,InstanceFleetProvisioningSpecifications>
Modifier and Type | Method and Description |
---|---|
default InstanceFleetProvisioningSpecifications.Builder |
onDemandSpecification(Consumer<OnDemandProvisioningSpecification.Builder> onDemandSpecification)
The launch specification for On-Demand Instances in the instance fleet, which determines the allocation
strategy.
|
InstanceFleetProvisioningSpecifications.Builder |
onDemandSpecification(OnDemandProvisioningSpecification onDemandSpecification)
The launch specification for On-Demand Instances in the instance fleet, which determines the allocation
strategy.
|
default InstanceFleetProvisioningSpecifications.Builder |
spotSpecification(Consumer<SpotProvisioningSpecification.Builder> spotSpecification)
The launch specification for Spot Instances in the fleet, which determines the defined duration, provisioning
timeout behavior, and allocation strategy.
|
InstanceFleetProvisioningSpecifications.Builder |
spotSpecification(SpotProvisioningSpecification spotSpecification)
The launch specification for Spot Instances in the fleet, which determines the defined duration, provisioning
timeout behavior, and allocation strategy.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
InstanceFleetProvisioningSpecifications.Builder spotSpecification(SpotProvisioningSpecification spotSpecification)
The launch specification for Spot Instances in the fleet, which determines the defined duration, provisioning timeout behavior, and allocation strategy.
spotSpecification
- The launch specification for Spot Instances in the fleet, which determines the defined duration,
provisioning timeout behavior, and allocation strategy.default InstanceFleetProvisioningSpecifications.Builder spotSpecification(Consumer<SpotProvisioningSpecification.Builder> spotSpecification)
The launch specification for Spot Instances in the fleet, which determines the defined duration, provisioning timeout behavior, and allocation strategy.
This is a convenience method that creates an instance of theSpotProvisioningSpecification.Builder
avoiding the need to create one manually via SpotProvisioningSpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to spotSpecification(SpotProvisioningSpecification)
.spotSpecification
- a consumer that will call methods on SpotProvisioningSpecification.Builder
spotSpecification(SpotProvisioningSpecification)
InstanceFleetProvisioningSpecifications.Builder onDemandSpecification(OnDemandProvisioningSpecification 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 versions 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR version 5.12.1 and later.
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 versions 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR version 5.12.1 and later.
default InstanceFleetProvisioningSpecifications.Builder onDemandSpecification(Consumer<OnDemandProvisioningSpecification.Builder> 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 versions 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR version 5.12.1 and later.
OnDemandProvisioningSpecification.Builder
avoiding the need to create one manually via
OnDemandProvisioningSpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to onDemandSpecification(OnDemandProvisioningSpecification)
.onDemandSpecification
- a consumer that will call methods on OnDemandProvisioningSpecification.Builder
onDemandSpecification(OnDemandProvisioningSpecification)
Copyright © 2022. All rights reserved.