/**
* 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 as
* the number of instances. Or you can set the target capacity to 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
parameter, or both parameters 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 OnDemandOptionsRequest
* and SpotOptionsRequest.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.
*/ inline int GetOnDemandTargetCapacity() const{ return m_onDemandTargetCapacity; } /** *The number of On-Demand units to request.
*/ inline bool OnDemandTargetCapacityHasBeenSet() const { return m_onDemandTargetCapacityHasBeenSet; } /** *The number of On-Demand units to request.
*/ inline void SetOnDemandTargetCapacity(int value) { m_onDemandTargetCapacityHasBeenSet = true; m_onDemandTargetCapacity = value; } /** *The number of On-Demand units to request.
*/ inline TargetCapacitySpecificationRequest& WithOnDemandTargetCapacity(int value) { SetOnDemandTargetCapacity(value); return *this;} /** *The number of Spot units to request.
*/ inline int GetSpotTargetCapacity() const{ return m_spotTargetCapacity; } /** *The number of Spot units to request.
*/ inline bool SpotTargetCapacityHasBeenSet() const { return m_spotTargetCapacityHasBeenSet; } /** *The number of Spot units to request.
*/ inline void SetSpotTargetCapacity(int value) { m_spotTargetCapacityHasBeenSet = true; m_spotTargetCapacity = value; } /** *The number of Spot units to request.
*/ inline TargetCapacitySpecificationRequest& 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)