Interface OnDemandProvisioningSpecification.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<OnDemandProvisioningSpecification.Builder,,- OnDemandProvisioningSpecification> - SdkBuilder<OnDemandProvisioningSpecification.Builder,,- OnDemandProvisioningSpecification> - SdkPojo
- Enclosing class:
- OnDemandProvisioningSpecification
- 
Method SummaryModifier 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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
allocationStrategySpecifies 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 are- lowest-priceand- prioritized.- lowest-pricespecifies to launch the instances with the lowest price first, and- prioritizedspecifies that Amazon EMR should launch the instances with the highest priority first. The default is- lowest-price.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
allocationStrategyOnDemandProvisioningSpecification.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 are- lowest-priceand- prioritized.- lowest-pricespecifies to launch the instances with the lowest price first, and- prioritizedspecifies that Amazon EMR should launch the instances with the highest priority first. The default is- lowest-price.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
capacityReservationOptionsOnDemandProvisioningSpecification.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.
 
- 
capacityReservationOptionsdefault 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 on- OnDemandCapacityReservationOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-