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

#include <TargetCapacitySpecificationRequest.h>

Public Member Functions

 TargetCapacitySpecificationRequest ()
 
 TargetCapacitySpecificationRequest (const Aws::Utils::Xml::XmlNode &xmlNode)
 
TargetCapacitySpecificationRequestoperator= (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
 
int GetTotalTargetCapacity () const
 
bool TotalTargetCapacityHasBeenSet () const
 
void SetTotalTargetCapacity (int value)
 
TargetCapacitySpecificationRequestWithTotalTargetCapacity (int value)
 
int GetOnDemandTargetCapacity () const
 
bool OnDemandTargetCapacityHasBeenSet () const
 
void SetOnDemandTargetCapacity (int value)
 
TargetCapacitySpecificationRequestWithOnDemandTargetCapacity (int value)
 
int GetSpotTargetCapacity () const
 
bool SpotTargetCapacityHasBeenSet () const
 
void SetSpotTargetCapacity (int value)
 
TargetCapacitySpecificationRequestWithSpotTargetCapacity (int value)
 
const DefaultTargetCapacityTypeGetDefaultTargetCapacityType () const
 
bool DefaultTargetCapacityTypeHasBeenSet () const
 
void SetDefaultTargetCapacityType (const DefaultTargetCapacityType &value)
 
void SetDefaultTargetCapacityType (DefaultTargetCapacityType &&value)
 
TargetCapacitySpecificationRequestWithDefaultTargetCapacityType (const DefaultTargetCapacityType &value)
 
TargetCapacitySpecificationRequestWithDefaultTargetCapacityType (DefaultTargetCapacityType &&value)
 

Detailed Description

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 maintain, you can specify a target capacity of 0 and add capacity later.

You can use the On-Demand Instance 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

Definition at line 47 of file TargetCapacitySpecificationRequest.h.

Constructor & Destructor Documentation

◆ TargetCapacitySpecificationRequest() [1/2]

Aws::EC2::Model::TargetCapacitySpecificationRequest::TargetCapacitySpecificationRequest ( )

◆ TargetCapacitySpecificationRequest() [2/2]

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

Member Function Documentation

◆ DefaultTargetCapacityTypeHasBeenSet()

bool Aws::EC2::Model::TargetCapacitySpecificationRequest::DefaultTargetCapacityTypeHasBeenSet ( ) const
inline

The default TotalTargetCapacity, which is either Spot or On-Demand.

Definition at line 135 of file TargetCapacitySpecificationRequest.h.

◆ GetDefaultTargetCapacityType()

const DefaultTargetCapacityType& Aws::EC2::Model::TargetCapacitySpecificationRequest::GetDefaultTargetCapacityType ( ) const
inline

The default TotalTargetCapacity, which is either Spot or On-Demand.

Definition at line 129 of file TargetCapacitySpecificationRequest.h.

◆ GetOnDemandTargetCapacity()

int Aws::EC2::Model::TargetCapacitySpecificationRequest::GetOnDemandTargetCapacity ( ) const
inline

The number of On-Demand units to request.

Definition at line 86 of file TargetCapacitySpecificationRequest.h.

◆ GetSpotTargetCapacity()

int Aws::EC2::Model::TargetCapacitySpecificationRequest::GetSpotTargetCapacity ( ) const
inline

The number of Spot units to request.

Definition at line 107 of file TargetCapacitySpecificationRequest.h.

◆ GetTotalTargetCapacity()

int Aws::EC2::Model::TargetCapacitySpecificationRequest::GetTotalTargetCapacity ( ) const
inline

The number of units to request, filled using DefaultTargetCapacityType.

Definition at line 62 of file TargetCapacitySpecificationRequest.h.

◆ OnDemandTargetCapacityHasBeenSet()

bool Aws::EC2::Model::TargetCapacitySpecificationRequest::OnDemandTargetCapacityHasBeenSet ( ) const
inline

The number of On-Demand units to request.

Definition at line 91 of file TargetCapacitySpecificationRequest.h.

◆ operator=()

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

◆ OutputToStream() [1/2]

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

◆ OutputToStream() [2/2]

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

◆ SetDefaultTargetCapacityType() [1/2]

void Aws::EC2::Model::TargetCapacitySpecificationRequest::SetDefaultTargetCapacityType ( const DefaultTargetCapacityType value)
inline

The default TotalTargetCapacity, which is either Spot or On-Demand.

Definition at line 141 of file TargetCapacitySpecificationRequest.h.

◆ SetDefaultTargetCapacityType() [2/2]

void Aws::EC2::Model::TargetCapacitySpecificationRequest::SetDefaultTargetCapacityType ( DefaultTargetCapacityType &&  value)
inline

The default TotalTargetCapacity, which is either Spot or On-Demand.

Definition at line 147 of file TargetCapacitySpecificationRequest.h.

◆ SetOnDemandTargetCapacity()

void Aws::EC2::Model::TargetCapacitySpecificationRequest::SetOnDemandTargetCapacity ( int  value)
inline

The number of On-Demand units to request.

Definition at line 96 of file TargetCapacitySpecificationRequest.h.

◆ SetSpotTargetCapacity()

void Aws::EC2::Model::TargetCapacitySpecificationRequest::SetSpotTargetCapacity ( int  value)
inline

The number of Spot units to request.

Definition at line 117 of file TargetCapacitySpecificationRequest.h.

◆ SetTotalTargetCapacity()

void Aws::EC2::Model::TargetCapacitySpecificationRequest::SetTotalTargetCapacity ( int  value)
inline

The number of units to request, filled using DefaultTargetCapacityType.

Definition at line 74 of file TargetCapacitySpecificationRequest.h.

◆ SpotTargetCapacityHasBeenSet()

bool Aws::EC2::Model::TargetCapacitySpecificationRequest::SpotTargetCapacityHasBeenSet ( ) const
inline

The number of Spot units to request.

Definition at line 112 of file TargetCapacitySpecificationRequest.h.

◆ TotalTargetCapacityHasBeenSet()

bool Aws::EC2::Model::TargetCapacitySpecificationRequest::TotalTargetCapacityHasBeenSet ( ) const
inline

The number of units to request, filled using DefaultTargetCapacityType.

Definition at line 68 of file TargetCapacitySpecificationRequest.h.

◆ WithDefaultTargetCapacityType() [1/2]

TargetCapacitySpecificationRequest& Aws::EC2::Model::TargetCapacitySpecificationRequest::WithDefaultTargetCapacityType ( const DefaultTargetCapacityType value)
inline

The default TotalTargetCapacity, which is either Spot or On-Demand.

Definition at line 153 of file TargetCapacitySpecificationRequest.h.

◆ WithDefaultTargetCapacityType() [2/2]

TargetCapacitySpecificationRequest& Aws::EC2::Model::TargetCapacitySpecificationRequest::WithDefaultTargetCapacityType ( DefaultTargetCapacityType &&  value)
inline

The default TotalTargetCapacity, which is either Spot or On-Demand.

Definition at line 159 of file TargetCapacitySpecificationRequest.h.

◆ WithOnDemandTargetCapacity()

TargetCapacitySpecificationRequest& Aws::EC2::Model::TargetCapacitySpecificationRequest::WithOnDemandTargetCapacity ( int  value)
inline

The number of On-Demand units to request.

Definition at line 101 of file TargetCapacitySpecificationRequest.h.

◆ WithSpotTargetCapacity()

TargetCapacitySpecificationRequest& Aws::EC2::Model::TargetCapacitySpecificationRequest::WithSpotTargetCapacity ( int  value)
inline

The number of Spot units to request.

Definition at line 122 of file TargetCapacitySpecificationRequest.h.

◆ WithTotalTargetCapacity()

TargetCapacitySpecificationRequest& Aws::EC2::Model::TargetCapacitySpecificationRequest::WithTotalTargetCapacity ( int  value)
inline

The number of units to request, filled using DefaultTargetCapacityType.

Definition at line 80 of file TargetCapacitySpecificationRequest.h.


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