/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The launch specification for On-Demand Instances in the instance fleet,
* which determines the allocation strategy. The instance fleet
* configuration is available only in Amazon EMR releases 4.8.0 and later,
* excluding 5.0.x versions. On-Demand Instances allocation strategy is available
* in Amazon EMR releases 5.12.1 and later.See Also:
AWS
* API Reference
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.
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.
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.
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.
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.
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.
The launch specification for On-Demand instances in the instance fleet, which * determines the allocation strategy.
*/ inline const OnDemandCapacityReservationOptions& GetCapacityReservationOptions() const{ return m_capacityReservationOptions; } /** *The launch specification for On-Demand instances in the instance fleet, which * determines the allocation strategy.
*/ inline bool CapacityReservationOptionsHasBeenSet() const { return m_capacityReservationOptionsHasBeenSet; } /** *The launch specification for On-Demand instances in the instance fleet, which * determines the allocation strategy.
*/ inline void SetCapacityReservationOptions(const OnDemandCapacityReservationOptions& value) { m_capacityReservationOptionsHasBeenSet = true; m_capacityReservationOptions = value; } /** *The launch specification for On-Demand instances in the instance fleet, which * determines the allocation strategy.
*/ inline void SetCapacityReservationOptions(OnDemandCapacityReservationOptions&& value) { m_capacityReservationOptionsHasBeenSet = true; m_capacityReservationOptions = std::move(value); } /** *The launch specification for On-Demand instances in the instance fleet, which * determines the allocation strategy.
*/ inline OnDemandProvisioningSpecification& WithCapacityReservationOptions(const OnDemandCapacityReservationOptions& value) { SetCapacityReservationOptions(value); return *this;} /** *The launch specification for On-Demand instances in the instance fleet, which * determines the allocation strategy.
*/ inline OnDemandProvisioningSpecification& WithCapacityReservationOptions(OnDemandCapacityReservationOptions&& value) { SetCapacityReservationOptions(std::move(value)); return *this;} private: OnDemandProvisioningAllocationStrategy m_allocationStrategy; bool m_allocationStrategyHasBeenSet = false; OnDemandCapacityReservationOptions m_capacityReservationOptions; bool m_capacityReservationOptionsHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws