/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The number of units to request. You can choose to set the target capacity in
* terms of instances or a performance characteristic that is important to your
* application workload, such as vCPUs, memory, or I/O. If the request type is
* You can use the On-Demand Instance maintain, you can specify a target capacity of 0 and add capacity
* later.MaxTotalPrice
* parameter, the Spot Instance MaxTotalPrice, or both to ensure that
* your fleet cost does not exceed your budget. If you set a maximum price per hour
* for the On-Demand Instances and Spot Instances in your request, EC2 Fleet will
* launch instances until it reaches the maximum amount that you're willing to pay.
* When the maximum amount you're willing to pay is reached, the fleet stops
* launching instances even if it hasn’t met the target capacity. The
* MaxTotalPrice parameters are located in OnDemandOptions
* and SpotOptions.See
* Also:
AWS
* API Reference
The number of units to request, filled using
* DefaultTargetCapacityType.
The number of units to request, filled using
* DefaultTargetCapacityType.
The number of units to request, filled using
* DefaultTargetCapacityType.
The number of units to request, filled using
* DefaultTargetCapacityType.
The number of On-Demand units to request. If you specify a target capacity * for Spot units, you cannot specify a target capacity for On-Demand units.
*/ inline int GetOnDemandTargetCapacity() const{ return m_onDemandTargetCapacity; } /** *The number of On-Demand units to request. If you specify a target capacity * for Spot units, you cannot specify a target capacity for On-Demand units.
*/ inline bool OnDemandTargetCapacityHasBeenSet() const { return m_onDemandTargetCapacityHasBeenSet; } /** *The number of On-Demand units to request. If you specify a target capacity * for Spot units, you cannot specify a target capacity for On-Demand units.
*/ inline void SetOnDemandTargetCapacity(int value) { m_onDemandTargetCapacityHasBeenSet = true; m_onDemandTargetCapacity = value; } /** *The number of On-Demand units to request. If you specify a target capacity * for Spot units, you cannot specify a target capacity for On-Demand units.
*/ inline TargetCapacitySpecification& WithOnDemandTargetCapacity(int value) { SetOnDemandTargetCapacity(value); return *this;} /** *The maximum number of Spot units to launch. If you specify a target capacity * for On-Demand units, you cannot specify a target capacity for Spot units.
*/ inline int GetSpotTargetCapacity() const{ return m_spotTargetCapacity; } /** *The maximum number of Spot units to launch. If you specify a target capacity * for On-Demand units, you cannot specify a target capacity for Spot units.
*/ inline bool SpotTargetCapacityHasBeenSet() const { return m_spotTargetCapacityHasBeenSet; } /** *The maximum number of Spot units to launch. If you specify a target capacity * for On-Demand units, you cannot specify a target capacity for Spot units.
*/ inline void SetSpotTargetCapacity(int value) { m_spotTargetCapacityHasBeenSet = true; m_spotTargetCapacity = value; } /** *The maximum number of Spot units to launch. If you specify a target capacity * for On-Demand units, you cannot specify a target capacity for Spot units.
*/ inline TargetCapacitySpecification& WithSpotTargetCapacity(int value) { SetSpotTargetCapacity(value); return *this;} /** *The default TotalTargetCapacity, which is either
* Spot or On-Demand.
The default TotalTargetCapacity, which is either
* Spot or On-Demand.
The default TotalTargetCapacity, which is either
* Spot or On-Demand.
The default TotalTargetCapacity, which is either
* Spot or On-Demand.
The default TotalTargetCapacity, which is either
* Spot or On-Demand.
The default TotalTargetCapacity, which is either
* Spot or On-Demand.
The unit for the target capacity. TargetCapacityUnitType can
* only be specified when InstanceRequirements is specified.
Default: units (translates to number of instances)
The unit for the target capacity. TargetCapacityUnitType can
* only be specified when InstanceRequirements is specified.
Default: units (translates to number of instances)
The unit for the target capacity. TargetCapacityUnitType can
* only be specified when InstanceRequirements is specified.
Default: units (translates to number of instances)
The unit for the target capacity. TargetCapacityUnitType can
* only be specified when InstanceRequirements is specified.
Default: units (translates to number of instances)
The unit for the target capacity. TargetCapacityUnitType can
* only be specified when InstanceRequirements is specified.
Default: units (translates to number of instances)
The unit for the target capacity. TargetCapacityUnitType can
* only be specified when InstanceRequirements is specified.
Default: units (translates to number of instances)