AWS SDK for C++  1.9.107
AWS SDK for C++
Public Member Functions | List of all members
Aws::EC2::Model::CapacityReservationOptionsRequest Class Reference

#include <CapacityReservationOptionsRequest.h>

Public Member Functions

 CapacityReservationOptionsRequest ()
 
 CapacityReservationOptionsRequest (const Aws::Utils::Xml::XmlNode &xmlNode)
 
CapacityReservationOptionsRequestoperator= (const Aws::Utils::Xml::XmlNode &xmlNode)
 
void OutputToStream (Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
 
void OutputToStream (Aws::OStream &oStream, const char *location) const
 
const FleetCapacityReservationUsageStrategyGetUsageStrategy () const
 
bool UsageStrategyHasBeenSet () const
 
void SetUsageStrategy (const FleetCapacityReservationUsageStrategy &value)
 
void SetUsageStrategy (FleetCapacityReservationUsageStrategy &&value)
 
CapacityReservationOptionsRequestWithUsageStrategy (const FleetCapacityReservationUsageStrategy &value)
 
CapacityReservationOptionsRequestWithUsageStrategy (FleetCapacityReservationUsageStrategy &&value)
 

Detailed Description

Describes the strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.

This strategy can only be used if the EC2 Fleet is of type instant.

For more information about Capacity Reservations, see On-Demand Capacity Reservations in the Amazon EC2 User Guide. For examples of using Capacity Reservations in an EC2 Fleet, see EC2 Fleet example configurations in the Amazon EC2 User Guide.

See Also:

AWS API Reference

Definition at line 40 of file CapacityReservationOptionsRequest.h.

Constructor & Destructor Documentation

◆ CapacityReservationOptionsRequest() [1/2]

Aws::EC2::Model::CapacityReservationOptionsRequest::CapacityReservationOptionsRequest ( )

◆ CapacityReservationOptionsRequest() [2/2]

Aws::EC2::Model::CapacityReservationOptionsRequest::CapacityReservationOptionsRequest ( const Aws::Utils::Xml::XmlNode xmlNode)

Member Function Documentation

◆ GetUsageStrategy()

const FleetCapacityReservationUsageStrategy& Aws::EC2::Model::CapacityReservationOptionsRequest::GetUsageStrategy ( ) const
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price or prioritized) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price or prioritized).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 65 of file CapacityReservationOptionsRequest.h.

◆ operator=()

CapacityReservationOptionsRequest& Aws::EC2::Model::CapacityReservationOptionsRequest::operator= ( const Aws::Utils::Xml::XmlNode xmlNode)

◆ OutputToStream() [1/2]

void Aws::EC2::Model::CapacityReservationOptionsRequest::OutputToStream ( Aws::OStream oStream,
const char *  location 
) const

◆ OutputToStream() [2/2]

void Aws::EC2::Model::CapacityReservationOptionsRequest::OutputToStream ( Aws::OStream ostream,
const char *  location,
unsigned  index,
const char *  locationValue 
) const

◆ SetUsageStrategy() [1/2]

void Aws::EC2::Model::CapacityReservationOptionsRequest::SetUsageStrategy ( const FleetCapacityReservationUsageStrategy value)
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price or prioritized) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price or prioritized).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 97 of file CapacityReservationOptionsRequest.h.

◆ SetUsageStrategy() [2/2]

void Aws::EC2::Model::CapacityReservationOptionsRequest::SetUsageStrategy ( FleetCapacityReservationUsageStrategy &&  value)
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price or prioritized) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price or prioritized).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 113 of file CapacityReservationOptionsRequest.h.

◆ UsageStrategyHasBeenSet()

bool Aws::EC2::Model::CapacityReservationOptionsRequest::UsageStrategyHasBeenSet ( ) const
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price or prioritized) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price or prioritized).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 81 of file CapacityReservationOptionsRequest.h.

◆ WithUsageStrategy() [1/2]

CapacityReservationOptionsRequest& Aws::EC2::Model::CapacityReservationOptionsRequest::WithUsageStrategy ( const FleetCapacityReservationUsageStrategy value)
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price or prioritized) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price or prioritized).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 129 of file CapacityReservationOptionsRequest.h.

◆ WithUsageStrategy() [2/2]

CapacityReservationOptionsRequest& Aws::EC2::Model::CapacityReservationOptionsRequest::WithUsageStrategy ( FleetCapacityReservationUsageStrategy &&  value)
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price or prioritized) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price or prioritized).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 145 of file CapacityReservationOptionsRequest.h.


The documentation for this class was generated from the following file: