Interface OnDemandProvisioningSpecification.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<OnDemandProvisioningSpecification.Builder,OnDemandProvisioningSpecification>,SdkBuilder<OnDemandProvisioningSpecification.Builder,OnDemandProvisioningSpecification>,SdkPojo
- Enclosing class:
- OnDemandProvisioningSpecification
public static interface OnDemandProvisioningSpecification.Builder extends SdkPojo, CopyableBuilder<OnDemandProvisioningSpecification.Builder,OnDemandProvisioningSpecification>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description OnDemandProvisioningSpecification.BuilderallocationStrategy(String allocationStrategy)Specifies the strategy to use in launching On-Demand instance fleets.OnDemandProvisioningSpecification.BuilderallocationStrategy(OnDemandProvisioningAllocationStrategy allocationStrategy)Specifies the strategy to use in launching On-Demand instance fleets.default OnDemandProvisioningSpecification.BuildercapacityReservationOptions(Consumer<OnDemandCapacityReservationOptions.Builder> capacityReservationOptions)The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.OnDemandProvisioningSpecification.BuildercapacityReservationOptions(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 Detail
-
allocationStrategy
OnDemandProvisioningSpecification.Builder allocationStrategy(String 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:
OnDemandProvisioningAllocationStrategy,OnDemandProvisioningAllocationStrategy
-
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:
OnDemandProvisioningAllocationStrategy,OnDemandProvisioningAllocationStrategy
-
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:
capacityReservationOptions(OnDemandCapacityReservationOptions)
-
-