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

#include <OnDemandOptionsRequest.h>

Public Member Functions

 OnDemandOptionsRequest ()
 
 OnDemandOptionsRequest (const Aws::Utils::Xml::XmlNode &xmlNode)
 
OnDemandOptionsRequestoperator= (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)
 
OnDemandOptionsRequestWithAllocationStrategy (const FleetOnDemandAllocationStrategy &value)
 
OnDemandOptionsRequestWithAllocationStrategy (FleetOnDemandAllocationStrategy &&value)
 
const CapacityReservationOptionsRequestGetCapacityReservationOptions () const
 
bool CapacityReservationOptionsHasBeenSet () const
 
void SetCapacityReservationOptions (const CapacityReservationOptionsRequest &value)
 
void SetCapacityReservationOptions (CapacityReservationOptionsRequest &&value)
 
OnDemandOptionsRequestWithCapacityReservationOptions (const CapacityReservationOptionsRequest &value)
 
OnDemandOptionsRequestWithCapacityReservationOptions (CapacityReservationOptionsRequest &&value)
 
bool GetSingleInstanceType () const
 
bool SingleInstanceTypeHasBeenSet () const
 
void SetSingleInstanceType (bool value)
 
OnDemandOptionsRequestWithSingleInstanceType (bool value)
 
bool GetSingleAvailabilityZone () const
 
bool SingleAvailabilityZoneHasBeenSet () const
 
void SetSingleAvailabilityZone (bool value)
 
OnDemandOptionsRequestWithSingleAvailabilityZone (bool value)
 
int GetMinTargetCapacity () const
 
bool MinTargetCapacityHasBeenSet () const
 
void SetMinTargetCapacity (int value)
 
OnDemandOptionsRequestWithMinTargetCapacity (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)
 
OnDemandOptionsRequestWithMaxTotalPrice (const Aws::String &value)
 
OnDemandOptionsRequestWithMaxTotalPrice (Aws::String &&value)
 
OnDemandOptionsRequestWithMaxTotalPrice (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 OnDemandOptionsRequest.h.

Constructor & Destructor Documentation

◆ OnDemandOptionsRequest() [1/2]

Aws::EC2::Model::OnDemandOptionsRequest::OnDemandOptionsRequest ( )

◆ OnDemandOptionsRequest() [2/2]

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

Member Function Documentation

◆ AllocationStrategyHasBeenSet()

bool Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ CapacityReservationOptionsHasBeenSet()

bool Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ GetAllocationStrategy()

const FleetOnDemandAllocationStrategy& Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ GetCapacityReservationOptions()

const CapacityReservationOptionsRequest& Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ GetMaxTotalPrice()

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

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

Definition at line 226 of file OnDemandOptionsRequest.h.

◆ GetMinTargetCapacity()

int Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ GetSingleAvailabilityZone()

bool Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ GetSingleInstanceType()

bool Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ MaxTotalPriceHasBeenSet()

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

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

Definition at line 232 of file OnDemandOptionsRequest.h.

◆ MinTargetCapacityHasBeenSet()

bool Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ operator=()

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

◆ OutputToStream() [1/2]

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

◆ OutputToStream() [2/2]

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

◆ SetAllocationStrategy() [1/2]

void Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ SetAllocationStrategy() [2/2]

void Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ SetCapacityReservationOptions() [1/2]

void Aws::EC2::Model::OnDemandOptionsRequest::SetCapacityReservationOptions ( CapacityReservationOptionsRequest &&  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 OnDemandOptionsRequest.h.

◆ SetCapacityReservationOptions() [2/2]

void Aws::EC2::Model::OnDemandOptionsRequest::SetCapacityReservationOptions ( const CapacityReservationOptionsRequest 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 OnDemandOptionsRequest.h.

◆ SetMaxTotalPrice() [1/3]

void Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ SetMaxTotalPrice() [2/3]

void Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ SetMaxTotalPrice() [3/3]

void Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ SetMinTargetCapacity()

void Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ SetSingleAvailabilityZone()

void Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ SetSingleInstanceType()

void Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ SingleAvailabilityZoneHasBeenSet()

bool Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ SingleInstanceTypeHasBeenSet()

bool Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ WithAllocationStrategy() [1/2]

OnDemandOptionsRequest& Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ WithAllocationStrategy() [2/2]

OnDemandOptionsRequest& Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ WithCapacityReservationOptions() [1/2]

OnDemandOptionsRequest& Aws::EC2::Model::OnDemandOptionsRequest::WithCapacityReservationOptions ( CapacityReservationOptionsRequest &&  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 OnDemandOptionsRequest.h.

◆ WithCapacityReservationOptions() [2/2]

OnDemandOptionsRequest& Aws::EC2::Model::OnDemandOptionsRequest::WithCapacityReservationOptions ( const CapacityReservationOptionsRequest 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 OnDemandOptionsRequest.h.

◆ WithMaxTotalPrice() [1/3]

OnDemandOptionsRequest& Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ WithMaxTotalPrice() [2/3]

OnDemandOptionsRequest& Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ WithMaxTotalPrice() [3/3]

OnDemandOptionsRequest& Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ WithMinTargetCapacity()

OnDemandOptionsRequest& Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ WithSingleAvailabilityZone()

OnDemandOptionsRequest& Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.

◆ WithSingleInstanceType()

OnDemandOptionsRequest& Aws::EC2::Model::OnDemandOptionsRequest::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 OnDemandOptionsRequest.h.


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