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

#include <SpotMarketOptions.h>

Public Member Functions

 SpotMarketOptions ()
 
 SpotMarketOptions (const Aws::Utils::Xml::XmlNode &xmlNode)
 
SpotMarketOptionsoperator= (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 Aws::StringGetMaxPrice () const
 
bool MaxPriceHasBeenSet () const
 
void SetMaxPrice (const Aws::String &value)
 
void SetMaxPrice (Aws::String &&value)
 
void SetMaxPrice (const char *value)
 
SpotMarketOptionsWithMaxPrice (const Aws::String &value)
 
SpotMarketOptionsWithMaxPrice (Aws::String &&value)
 
SpotMarketOptionsWithMaxPrice (const char *value)
 
const SpotInstanceTypeGetSpotInstanceType () const
 
bool SpotInstanceTypeHasBeenSet () const
 
void SetSpotInstanceType (const SpotInstanceType &value)
 
void SetSpotInstanceType (SpotInstanceType &&value)
 
SpotMarketOptionsWithSpotInstanceType (const SpotInstanceType &value)
 
SpotMarketOptionsWithSpotInstanceType (SpotInstanceType &&value)
 
int GetBlockDurationMinutes () const
 
bool BlockDurationMinutesHasBeenSet () const
 
void SetBlockDurationMinutes (int value)
 
SpotMarketOptionsWithBlockDurationMinutes (int value)
 
const Aws::Utils::DateTimeGetValidUntil () const
 
bool ValidUntilHasBeenSet () const
 
void SetValidUntil (const Aws::Utils::DateTime &value)
 
void SetValidUntil (Aws::Utils::DateTime &&value)
 
SpotMarketOptionsWithValidUntil (const Aws::Utils::DateTime &value)
 
SpotMarketOptionsWithValidUntil (Aws::Utils::DateTime &&value)
 
const InstanceInterruptionBehaviorGetInstanceInterruptionBehavior () const
 
bool InstanceInterruptionBehaviorHasBeenSet () const
 
void SetInstanceInterruptionBehavior (const InstanceInterruptionBehavior &value)
 
void SetInstanceInterruptionBehavior (InstanceInterruptionBehavior &&value)
 
SpotMarketOptionsWithInstanceInterruptionBehavior (const InstanceInterruptionBehavior &value)
 
SpotMarketOptionsWithInstanceInterruptionBehavior (InstanceInterruptionBehavior &&value)
 

Detailed Description

The options for Spot Instances.

See Also:

AWS API Reference

Definition at line 34 of file SpotMarketOptions.h.

Constructor & Destructor Documentation

◆ SpotMarketOptions() [1/2]

Aws::EC2::Model::SpotMarketOptions::SpotMarketOptions ( )

◆ SpotMarketOptions() [2/2]

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

Member Function Documentation

◆ BlockDurationMinutesHasBeenSet()

bool Aws::EC2::Model::SpotMarketOptions::BlockDurationMinutesHasBeenSet ( ) const
inline

Deprecated.

Definition at line 151 of file SpotMarketOptions.h.

◆ GetBlockDurationMinutes()

int Aws::EC2::Model::SpotMarketOptions::GetBlockDurationMinutes ( ) const
inline

Deprecated.

Definition at line 146 of file SpotMarketOptions.h.

◆ GetInstanceInterruptionBehavior()

const InstanceInterruptionBehavior& Aws::EC2::Model::SpotMarketOptions::GetInstanceInterruptionBehavior ( ) const
inline

The behavior when a Spot Instance is interrupted. The default is terminate.

Definition at line 241 of file SpotMarketOptions.h.

◆ GetMaxPrice()

const Aws::String& Aws::EC2::Model::SpotMarketOptions::GetMaxPrice ( ) const
inline

The maximum hourly price you're willing to pay for the Spot Instances. The default is the On-Demand price.

Definition at line 49 of file SpotMarketOptions.h.

◆ GetSpotInstanceType()

const SpotInstanceType& Aws::EC2::Model::SpotMarketOptions::GetSpotInstanceType ( ) const
inline

The Spot Instance request type. For RunInstances, persistent Spot Instance requests are only supported when the instance interruption behavior is either hibernate or stop.

Definition at line 100 of file SpotMarketOptions.h.

◆ GetValidUntil()

const Aws::Utils::DateTime& Aws::EC2::Model::SpotMarketOptions::GetValidUntil ( ) const
inline

The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.

  • For a persistent request, the request remains active until the ValidUntil date and time is reached. Otherwise, the request remains active until you cancel it.

  • For a one-time request, ValidUntil is not supported. The request remains active until all instances launch or you cancel the request.

Definition at line 174 of file SpotMarketOptions.h.

◆ InstanceInterruptionBehaviorHasBeenSet()

bool Aws::EC2::Model::SpotMarketOptions::InstanceInterruptionBehaviorHasBeenSet ( ) const
inline

The behavior when a Spot Instance is interrupted. The default is terminate.

Definition at line 247 of file SpotMarketOptions.h.

◆ MaxPriceHasBeenSet()

bool Aws::EC2::Model::SpotMarketOptions::MaxPriceHasBeenSet ( ) const
inline

The maximum hourly price you're willing to pay for the Spot Instances. The default is the On-Demand price.

Definition at line 55 of file SpotMarketOptions.h.

◆ operator=()

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

◆ OutputToStream() [1/2]

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

◆ OutputToStream() [2/2]

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

◆ SetBlockDurationMinutes()

void Aws::EC2::Model::SpotMarketOptions::SetBlockDurationMinutes ( int  value)
inline

Deprecated.

Definition at line 156 of file SpotMarketOptions.h.

◆ SetInstanceInterruptionBehavior() [1/2]

void Aws::EC2::Model::SpotMarketOptions::SetInstanceInterruptionBehavior ( const InstanceInterruptionBehavior value)
inline

The behavior when a Spot Instance is interrupted. The default is terminate.

Definition at line 253 of file SpotMarketOptions.h.

◆ SetInstanceInterruptionBehavior() [2/2]

void Aws::EC2::Model::SpotMarketOptions::SetInstanceInterruptionBehavior ( InstanceInterruptionBehavior &&  value)
inline

The behavior when a Spot Instance is interrupted. The default is terminate.

Definition at line 259 of file SpotMarketOptions.h.

◆ SetMaxPrice() [1/3]

void Aws::EC2::Model::SpotMarketOptions::SetMaxPrice ( Aws::String &&  value)
inline

The maximum hourly price you're willing to pay for the Spot Instances. The default is the On-Demand price.

Definition at line 67 of file SpotMarketOptions.h.

◆ SetMaxPrice() [2/3]

void Aws::EC2::Model::SpotMarketOptions::SetMaxPrice ( const Aws::String value)
inline

The maximum hourly price you're willing to pay for the Spot Instances. The default is the On-Demand price.

Definition at line 61 of file SpotMarketOptions.h.

◆ SetMaxPrice() [3/3]

void Aws::EC2::Model::SpotMarketOptions::SetMaxPrice ( const char *  value)
inline

The maximum hourly price you're willing to pay for the Spot Instances. The default is the On-Demand price.

Definition at line 73 of file SpotMarketOptions.h.

◆ SetSpotInstanceType() [1/2]

void Aws::EC2::Model::SpotMarketOptions::SetSpotInstanceType ( const SpotInstanceType value)
inline

The Spot Instance request type. For RunInstances, persistent Spot Instance requests are only supported when the instance interruption behavior is either hibernate or stop.

Definition at line 116 of file SpotMarketOptions.h.

◆ SetSpotInstanceType() [2/2]

void Aws::EC2::Model::SpotMarketOptions::SetSpotInstanceType ( SpotInstanceType &&  value)
inline

The Spot Instance request type. For RunInstances, persistent Spot Instance requests are only supported when the instance interruption behavior is either hibernate or stop.

Definition at line 124 of file SpotMarketOptions.h.

◆ SetValidUntil() [1/2]

void Aws::EC2::Model::SpotMarketOptions::SetValidUntil ( Aws::Utils::DateTime &&  value)
inline

The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.

  • For a persistent request, the request remains active until the ValidUntil date and time is reached. Otherwise, the request remains active until you cancel it.

  • For a one-time request, ValidUntil is not supported. The request remains active until all instances launch or you cancel the request.

Definition at line 210 of file SpotMarketOptions.h.

◆ SetValidUntil() [2/2]

void Aws::EC2::Model::SpotMarketOptions::SetValidUntil ( const Aws::Utils::DateTime value)
inline

The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.

  • For a persistent request, the request remains active until the ValidUntil date and time is reached. Otherwise, the request remains active until you cancel it.

  • For a one-time request, ValidUntil is not supported. The request remains active until all instances launch or you cancel the request.

Definition at line 198 of file SpotMarketOptions.h.

◆ SpotInstanceTypeHasBeenSet()

bool Aws::EC2::Model::SpotMarketOptions::SpotInstanceTypeHasBeenSet ( ) const
inline

The Spot Instance request type. For RunInstances, persistent Spot Instance requests are only supported when the instance interruption behavior is either hibernate or stop.

Definition at line 108 of file SpotMarketOptions.h.

◆ ValidUntilHasBeenSet()

bool Aws::EC2::Model::SpotMarketOptions::ValidUntilHasBeenSet ( ) const
inline

The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.

  • For a persistent request, the request remains active until the ValidUntil date and time is reached. Otherwise, the request remains active until you cancel it.

  • For a one-time request, ValidUntil is not supported. The request remains active until all instances launch or you cancel the request.

Definition at line 186 of file SpotMarketOptions.h.

◆ WithBlockDurationMinutes()

SpotMarketOptions& Aws::EC2::Model::SpotMarketOptions::WithBlockDurationMinutes ( int  value)
inline

Deprecated.

Definition at line 161 of file SpotMarketOptions.h.

◆ WithInstanceInterruptionBehavior() [1/2]

SpotMarketOptions& Aws::EC2::Model::SpotMarketOptions::WithInstanceInterruptionBehavior ( const InstanceInterruptionBehavior value)
inline

The behavior when a Spot Instance is interrupted. The default is terminate.

Definition at line 265 of file SpotMarketOptions.h.

◆ WithInstanceInterruptionBehavior() [2/2]

SpotMarketOptions& Aws::EC2::Model::SpotMarketOptions::WithInstanceInterruptionBehavior ( InstanceInterruptionBehavior &&  value)
inline

The behavior when a Spot Instance is interrupted. The default is terminate.

Definition at line 271 of file SpotMarketOptions.h.

◆ WithMaxPrice() [1/3]

SpotMarketOptions& Aws::EC2::Model::SpotMarketOptions::WithMaxPrice ( Aws::String &&  value)
inline

The maximum hourly price you're willing to pay for the Spot Instances. The default is the On-Demand price.

Definition at line 85 of file SpotMarketOptions.h.

◆ WithMaxPrice() [2/3]

SpotMarketOptions& Aws::EC2::Model::SpotMarketOptions::WithMaxPrice ( const Aws::String value)
inline

The maximum hourly price you're willing to pay for the Spot Instances. The default is the On-Demand price.

Definition at line 79 of file SpotMarketOptions.h.

◆ WithMaxPrice() [3/3]

SpotMarketOptions& Aws::EC2::Model::SpotMarketOptions::WithMaxPrice ( const char *  value)
inline

The maximum hourly price you're willing to pay for the Spot Instances. The default is the On-Demand price.

Definition at line 91 of file SpotMarketOptions.h.

◆ WithSpotInstanceType() [1/2]

SpotMarketOptions& Aws::EC2::Model::SpotMarketOptions::WithSpotInstanceType ( const SpotInstanceType value)
inline

The Spot Instance request type. For RunInstances, persistent Spot Instance requests are only supported when the instance interruption behavior is either hibernate or stop.

Definition at line 132 of file SpotMarketOptions.h.

◆ WithSpotInstanceType() [2/2]

SpotMarketOptions& Aws::EC2::Model::SpotMarketOptions::WithSpotInstanceType ( SpotInstanceType &&  value)
inline

The Spot Instance request type. For RunInstances, persistent Spot Instance requests are only supported when the instance interruption behavior is either hibernate or stop.

Definition at line 140 of file SpotMarketOptions.h.

◆ WithValidUntil() [1/2]

SpotMarketOptions& Aws::EC2::Model::SpotMarketOptions::WithValidUntil ( Aws::Utils::DateTime &&  value)
inline

The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.

  • For a persistent request, the request remains active until the ValidUntil date and time is reached. Otherwise, the request remains active until you cancel it.

  • For a one-time request, ValidUntil is not supported. The request remains active until all instances launch or you cancel the request.

Definition at line 234 of file SpotMarketOptions.h.

◆ WithValidUntil() [2/2]

SpotMarketOptions& Aws::EC2::Model::SpotMarketOptions::WithValidUntil ( const Aws::Utils::DateTime value)
inline

The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.

  • For a persistent request, the request remains active until the ValidUntil date and time is reached. Otherwise, the request remains active until you cancel it.

  • For a one-time request, ValidUntil is not supported. The request remains active until all instances launch or you cancel the request.

Definition at line 222 of file SpotMarketOptions.h.


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