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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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-priceandprioritized.lowest-pricespecifies to launch the instances with the lowest price first, andprioritizedspecifies 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-priceandprioritized.lowest-pricespecifies to launch the instances with the lowest price first, andprioritizedspecifies 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-priceandprioritized.lowest-pricespecifies to launch the instances with the lowest price first, andprioritizedspecifies 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-priceandprioritized.lowest-pricespecifies to launch the instances with the lowest price first, andprioritizedspecifies 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.Builderavoiding the need to create one manually viaOnDemandCapacityReservationOptions.builder().When the
Consumercompletes,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:
-