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
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, sdkFields
-
Method Details
-
allocationStrategy
Specifies the strategy to use in launching On-Demand instance fleets. Currently, the only option is
lowest-price
(the default), which launches the lowest price first.- Parameters:
allocationStrategy
- Specifies the strategy to use in launching On-Demand instance fleets. Currently, the only option islowest-price
(the default), which launches the lowest price first.- 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. Currently, the only option is
lowest-price
(the default), which launches the lowest price first.- Parameters:
allocationStrategy
- Specifies the strategy to use in launching On-Demand instance fleets. Currently, the only option islowest-price
(the default), which launches the lowest price first.- 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:
-