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

#include <OnDemandOptions.h>

Public Member Functions

 OnDemandOptions ()
 
 OnDemandOptions (const Aws::Utils::Xml::XmlNode &xmlNode)
 
OnDemandOptionsoperator= (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 FleetOnDemandAllocationStrategyGetAllocationStrategy () const
 
bool AllocationStrategyHasBeenSet () const
 
void SetAllocationStrategy (const FleetOnDemandAllocationStrategy &value)
 
void SetAllocationStrategy (FleetOnDemandAllocationStrategy &&value)
 
OnDemandOptionsWithAllocationStrategy (const FleetOnDemandAllocationStrategy &value)
 
OnDemandOptionsWithAllocationStrategy (FleetOnDemandAllocationStrategy &&value)
 
const CapacityReservationOptionsGetCapacityReservationOptions () const
 
bool CapacityReservationOptionsHasBeenSet () const
 
void SetCapacityReservationOptions (const CapacityReservationOptions &value)
 
void SetCapacityReservationOptions (CapacityReservationOptions &&value)
 
OnDemandOptionsWithCapacityReservationOptions (const CapacityReservationOptions &value)
 
OnDemandOptionsWithCapacityReservationOptions (CapacityReservationOptions &&value)
 
bool GetSingleInstanceType () const
 
bool SingleInstanceTypeHasBeenSet () const
 
void SetSingleInstanceType (bool value)
 
OnDemandOptionsWithSingleInstanceType (bool value)
 
bool GetSingleAvailabilityZone () const
 
bool SingleAvailabilityZoneHasBeenSet () const
 
void SetSingleAvailabilityZone (bool value)
 
OnDemandOptionsWithSingleAvailabilityZone (bool value)
 
int GetMinTargetCapacity () const
 
bool MinTargetCapacityHasBeenSet () const
 
void SetMinTargetCapacity (int value)
 
OnDemandOptionsWithMinTargetCapacity (int value)
 
const Aws::StringGetMaxTotalPrice () const
 
bool MaxTotalPriceHasBeenSet () const
 
void SetMaxTotalPrice (const Aws::String &value)
 
void SetMaxTotalPrice (Aws::String &&value)
 
void SetMaxTotalPrice (const char *value)
 
OnDemandOptionsWithMaxTotalPrice (const Aws::String &value)
 
OnDemandOptionsWithMaxTotalPrice (Aws::String &&value)
 
OnDemandOptionsWithMaxTotalPrice (const char *value)
 

Detailed Description

Describes the configuration of On-Demand Instances in an EC2 Fleet.

See Also:

AWS API Reference

Definition at line 34 of file OnDemandOptions.h.

Constructor & Destructor Documentation

◆ OnDemandOptions() [1/2]

Aws::EC2::Model::OnDemandOptions::OnDemandOptions ( )

◆ OnDemandOptions() [2/2]

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

Member Function Documentation

◆ AllocationStrategyHasBeenSet()

bool Aws::EC2::Model::OnDemandOptions::AllocationStrategyHasBeenSet ( ) const
inline

The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify lowest-price, EC2 Fleet uses price to determine the order, launching the lowest price first. If you specify prioritized, EC2 Fleet uses the priority that you assigned to each launch template override, launching the highest priority first. If you do not specify a value, EC2 Fleet defaults to lowest-price.

Definition at line 63 of file OnDemandOptions.h.

◆ CapacityReservationOptionsHasBeenSet()

bool Aws::EC2::Model::OnDemandOptions::CapacityReservationOptionsHasBeenSet ( ) const
inline

The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type instant.

Definition at line 116 of file OnDemandOptions.h.

◆ GetAllocationStrategy()

const FleetOnDemandAllocationStrategy& Aws::EC2::Model::OnDemandOptions::GetAllocationStrategy ( ) const
inline

The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify lowest-price, EC2 Fleet uses price to determine the order, launching the lowest price first. If you specify prioritized, EC2 Fleet uses the priority that you assigned to each launch template override, launching the highest priority first. If you do not specify a value, EC2 Fleet defaults to lowest-price.

Definition at line 53 of file OnDemandOptions.h.

◆ GetCapacityReservationOptions()

const CapacityReservationOptions& Aws::EC2::Model::OnDemandOptions::GetCapacityReservationOptions ( ) const
inline

The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type instant.

Definition at line 110 of file OnDemandOptions.h.

◆ GetMaxTotalPrice()

const Aws::String& Aws::EC2::Model::OnDemandOptions::GetMaxTotalPrice ( ) const
inline

The maximum amount per hour for On-Demand Instances that you're willing to pay.

Definition at line 226 of file OnDemandOptions.h.

◆ GetMinTargetCapacity()

int Aws::EC2::Model::OnDemandOptions::GetMinTargetCapacity ( ) const
inline

The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.

Definition at line 201 of file OnDemandOptions.h.

◆ GetSingleAvailabilityZone()

bool Aws::EC2::Model::OnDemandOptions::GetSingleAvailabilityZone ( ) const
inline

Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type instant.

Definition at line 176 of file OnDemandOptions.h.

◆ GetSingleInstanceType()

bool Aws::EC2::Model::OnDemandOptions::GetSingleInstanceType ( ) const
inline

Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. Supported only for fleets of type instant.

Definition at line 148 of file OnDemandOptions.h.

◆ MaxTotalPriceHasBeenSet()

bool Aws::EC2::Model::OnDemandOptions::MaxTotalPriceHasBeenSet ( ) const
inline

The maximum amount per hour for On-Demand Instances that you're willing to pay.

Definition at line 232 of file OnDemandOptions.h.

◆ MinTargetCapacityHasBeenSet()

bool Aws::EC2::Model::OnDemandOptions::MinTargetCapacityHasBeenSet ( ) const
inline

The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.

Definition at line 207 of file OnDemandOptions.h.

◆ operator=()

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

◆ OutputToStream() [1/2]

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

◆ OutputToStream() [2/2]

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

◆ SetAllocationStrategy() [1/2]

void Aws::EC2::Model::OnDemandOptions::SetAllocationStrategy ( const FleetOnDemandAllocationStrategy value)
inline

The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify lowest-price, EC2 Fleet uses price to determine the order, launching the lowest price first. If you specify prioritized, EC2 Fleet uses the priority that you assigned to each launch template override, launching the highest priority first. If you do not specify a value, EC2 Fleet defaults to lowest-price.

Definition at line 73 of file OnDemandOptions.h.

◆ SetAllocationStrategy() [2/2]

void Aws::EC2::Model::OnDemandOptions::SetAllocationStrategy ( FleetOnDemandAllocationStrategy &&  value)
inline

The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify lowest-price, EC2 Fleet uses price to determine the order, launching the lowest price first. If you specify prioritized, EC2 Fleet uses the priority that you assigned to each launch template override, launching the highest priority first. If you do not specify a value, EC2 Fleet defaults to lowest-price.

Definition at line 83 of file OnDemandOptions.h.

◆ SetCapacityReservationOptions() [1/2]

void Aws::EC2::Model::OnDemandOptions::SetCapacityReservationOptions ( CapacityReservationOptions &&  value)
inline

The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type instant.

Definition at line 128 of file OnDemandOptions.h.

◆ SetCapacityReservationOptions() [2/2]

void Aws::EC2::Model::OnDemandOptions::SetCapacityReservationOptions ( const CapacityReservationOptions value)
inline

The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type instant.

Definition at line 122 of file OnDemandOptions.h.

◆ SetMaxTotalPrice() [1/3]

void Aws::EC2::Model::OnDemandOptions::SetMaxTotalPrice ( Aws::String &&  value)
inline

The maximum amount per hour for On-Demand Instances that you're willing to pay.

Definition at line 244 of file OnDemandOptions.h.

◆ SetMaxTotalPrice() [2/3]

void Aws::EC2::Model::OnDemandOptions::SetMaxTotalPrice ( const Aws::String value)
inline

The maximum amount per hour for On-Demand Instances that you're willing to pay.

Definition at line 238 of file OnDemandOptions.h.

◆ SetMaxTotalPrice() [3/3]

void Aws::EC2::Model::OnDemandOptions::SetMaxTotalPrice ( const char *  value)
inline

The maximum amount per hour for On-Demand Instances that you're willing to pay.

Definition at line 250 of file OnDemandOptions.h.

◆ SetMinTargetCapacity()

void Aws::EC2::Model::OnDemandOptions::SetMinTargetCapacity ( int  value)
inline

The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.

Definition at line 213 of file OnDemandOptions.h.

◆ SetSingleAvailabilityZone()

void Aws::EC2::Model::OnDemandOptions::SetSingleAvailabilityZone ( bool  value)
inline

Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type instant.

Definition at line 188 of file OnDemandOptions.h.

◆ SetSingleInstanceType()

void Aws::EC2::Model::OnDemandOptions::SetSingleInstanceType ( bool  value)
inline

Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. Supported only for fleets of type instant.

Definition at line 162 of file OnDemandOptions.h.

◆ SingleAvailabilityZoneHasBeenSet()

bool Aws::EC2::Model::OnDemandOptions::SingleAvailabilityZoneHasBeenSet ( ) const
inline

Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type instant.

Definition at line 182 of file OnDemandOptions.h.

◆ SingleInstanceTypeHasBeenSet()

bool Aws::EC2::Model::OnDemandOptions::SingleInstanceTypeHasBeenSet ( ) const
inline

Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. Supported only for fleets of type instant.

Definition at line 155 of file OnDemandOptions.h.

◆ WithAllocationStrategy() [1/2]

OnDemandOptions& Aws::EC2::Model::OnDemandOptions::WithAllocationStrategy ( const FleetOnDemandAllocationStrategy value)
inline

The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify lowest-price, EC2 Fleet uses price to determine the order, launching the lowest price first. If you specify prioritized, EC2 Fleet uses the priority that you assigned to each launch template override, launching the highest priority first. If you do not specify a value, EC2 Fleet defaults to lowest-price.

Definition at line 93 of file OnDemandOptions.h.

◆ WithAllocationStrategy() [2/2]

OnDemandOptions& Aws::EC2::Model::OnDemandOptions::WithAllocationStrategy ( FleetOnDemandAllocationStrategy &&  value)
inline

The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify lowest-price, EC2 Fleet uses price to determine the order, launching the lowest price first. If you specify prioritized, EC2 Fleet uses the priority that you assigned to each launch template override, launching the highest priority first. If you do not specify a value, EC2 Fleet defaults to lowest-price.

Definition at line 103 of file OnDemandOptions.h.

◆ WithCapacityReservationOptions() [1/2]

OnDemandOptions& Aws::EC2::Model::OnDemandOptions::WithCapacityReservationOptions ( CapacityReservationOptions &&  value)
inline

The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type instant.

Definition at line 140 of file OnDemandOptions.h.

◆ WithCapacityReservationOptions() [2/2]

OnDemandOptions& Aws::EC2::Model::OnDemandOptions::WithCapacityReservationOptions ( const CapacityReservationOptions value)
inline

The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity. Supported only for fleets of type instant.

Definition at line 134 of file OnDemandOptions.h.

◆ WithMaxTotalPrice() [1/3]

OnDemandOptions& Aws::EC2::Model::OnDemandOptions::WithMaxTotalPrice ( Aws::String &&  value)
inline

The maximum amount per hour for On-Demand Instances that you're willing to pay.

Definition at line 262 of file OnDemandOptions.h.

◆ WithMaxTotalPrice() [2/3]

OnDemandOptions& Aws::EC2::Model::OnDemandOptions::WithMaxTotalPrice ( const Aws::String value)
inline

The maximum amount per hour for On-Demand Instances that you're willing to pay.

Definition at line 256 of file OnDemandOptions.h.

◆ WithMaxTotalPrice() [3/3]

OnDemandOptions& Aws::EC2::Model::OnDemandOptions::WithMaxTotalPrice ( const char *  value)
inline

The maximum amount per hour for On-Demand Instances that you're willing to pay.

Definition at line 268 of file OnDemandOptions.h.

◆ WithMinTargetCapacity()

OnDemandOptions& Aws::EC2::Model::OnDemandOptions::WithMinTargetCapacity ( int  value)
inline

The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.

Definition at line 219 of file OnDemandOptions.h.

◆ WithSingleAvailabilityZone()

OnDemandOptions& Aws::EC2::Model::OnDemandOptions::WithSingleAvailabilityZone ( bool  value)
inline

Indicates that the fleet launches all On-Demand Instances into a single Availability Zone. Supported only for fleets of type instant.

Definition at line 194 of file OnDemandOptions.h.

◆ WithSingleInstanceType()

OnDemandOptions& Aws::EC2::Model::OnDemandOptions::WithSingleInstanceType ( bool  value)
inline

Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet. Supported only for fleets of type instant.

Definition at line 169 of file OnDemandOptions.h.


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