Interface OnDemandProvisioningSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OnDemandProvisioningSpecification.Builder,
,OnDemandProvisioningSpecification> SdkBuilder<OnDemandProvisioningSpecification.Builder,
,OnDemandProvisioningSpecification> SdkPojo
- Enclosing class:
OnDemandProvisioningSpecification
-
Method Summary
Modifier and TypeMethodDescriptionallocationStrategy
(String allocationStrategy) Specifies the strategy to use in launching On-Demand instance fleets.allocationStrategy
(OnDemandProvisioningAllocationStrategy allocationStrategy) Specifies the strategy to use in launching On-Demand instance fleets.capacityReservationOptions
(Consumer<OnDemandCapacityReservationOptions.Builder> capacityReservationOptions) The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.capacityReservationOptions
(OnDemandCapacityReservationOptions capacityReservationOptions) The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.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
-
allocationStrategy
Specifies the strategy to use in launching On-Demand instance fleets. Available options are
lowest-price
andprioritized
.lowest-price
specifies to launch the instances with the lowest price first, andprioritized
specifies that Amazon EMR should launch the instances with the highest priority first. The default islowest-price
.- Parameters:
allocationStrategy
- Specifies the strategy to use in launching On-Demand instance fleets. Available options arelowest-price
andprioritized
.lowest-price
specifies to launch the instances with the lowest price first, andprioritized
specifies that Amazon EMR should launch the instances with the highest priority first. The default islowest-price
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
allocationStrategy
OnDemandProvisioningSpecification.Builder allocationStrategy(OnDemandProvisioningAllocationStrategy allocationStrategy) Specifies the strategy to use in launching On-Demand instance fleets. Available options are
lowest-price
andprioritized
.lowest-price
specifies to launch the instances with the lowest price first, andprioritized
specifies that Amazon EMR should launch the instances with the highest priority first. The default islowest-price
.- Parameters:
allocationStrategy
- Specifies the strategy to use in launching On-Demand instance fleets. Available options arelowest-price
andprioritized
.lowest-price
specifies to launch the instances with the lowest price first, andprioritized
specifies that Amazon EMR should launch the instances with the highest priority first. The default islowest-price
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityReservationOptions
OnDemandProvisioningSpecification.Builder capacityReservationOptions(OnDemandCapacityReservationOptions capacityReservationOptions) The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.
- Parameters:
capacityReservationOptions
- The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservationOptions
default OnDemandProvisioningSpecification.Builder capacityReservationOptions(Consumer<OnDemandCapacityReservationOptions.Builder> capacityReservationOptions) The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.
This is a convenience method that creates an instance of theOnDemandCapacityReservationOptions.Builder
avoiding the need to create one manually viaOnDemandCapacityReservationOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityReservationOptions(OnDemandCapacityReservationOptions)
.- Parameters:
capacityReservationOptions
- a consumer that will call methods onOnDemandCapacityReservationOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-