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

#include <PriceSchedule.h>

Public Member Functions

 PriceSchedule ()
 
 PriceSchedule (const Aws::Utils::Xml::XmlNode &xmlNode)
 
PriceScheduleoperator= (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
 
bool GetActive () const
 
bool ActiveHasBeenSet () const
 
void SetActive (bool value)
 
PriceScheduleWithActive (bool value)
 
const CurrencyCodeValuesGetCurrencyCode () const
 
bool CurrencyCodeHasBeenSet () const
 
void SetCurrencyCode (const CurrencyCodeValues &value)
 
void SetCurrencyCode (CurrencyCodeValues &&value)
 
PriceScheduleWithCurrencyCode (const CurrencyCodeValues &value)
 
PriceScheduleWithCurrencyCode (CurrencyCodeValues &&value)
 
double GetPrice () const
 
bool PriceHasBeenSet () const
 
void SetPrice (double value)
 
PriceScheduleWithPrice (double value)
 
long long GetTerm () const
 
bool TermHasBeenSet () const
 
void SetTerm (long long value)
 
PriceScheduleWithTerm (long long value)
 

Detailed Description

Describes the price for a Reserved Instance.

See Also:

AWS API Reference

Definition at line 31 of file PriceSchedule.h.

Constructor & Destructor Documentation

◆ PriceSchedule() [1/2]

Aws::EC2::Model::PriceSchedule::PriceSchedule ( )

◆ PriceSchedule() [2/2]

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

Member Function Documentation

◆ ActiveHasBeenSet()

bool Aws::EC2::Model::PriceSchedule::ActiveHasBeenSet ( ) const
inline

The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.

A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.

Definition at line 64 of file PriceSchedule.h.

◆ CurrencyCodeHasBeenSet()

bool Aws::EC2::Model::PriceSchedule::CurrencyCodeHasBeenSet ( ) const
inline

The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.

Definition at line 101 of file PriceSchedule.h.

◆ GetActive()

bool Aws::EC2::Model::PriceSchedule::GetActive ( ) const
inline

The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.

A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.

Definition at line 52 of file PriceSchedule.h.

◆ GetCurrencyCode()

const CurrencyCodeValues& Aws::EC2::Model::PriceSchedule::GetCurrencyCode ( ) const
inline

The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.

Definition at line 95 of file PriceSchedule.h.

◆ GetPrice()

double Aws::EC2::Model::PriceSchedule::GetPrice ( ) const
inline

The fixed price for the term.

Definition at line 131 of file PriceSchedule.h.

◆ GetTerm()

long long Aws::EC2::Model::PriceSchedule::GetTerm ( ) const
inline

The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.

Definition at line 153 of file PriceSchedule.h.

◆ operator=()

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

◆ OutputToStream() [1/2]

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

◆ OutputToStream() [2/2]

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

◆ PriceHasBeenSet()

bool Aws::EC2::Model::PriceSchedule::PriceHasBeenSet ( ) const
inline

The fixed price for the term.

Definition at line 136 of file PriceSchedule.h.

◆ SetActive()

void Aws::EC2::Model::PriceSchedule::SetActive ( bool  value)
inline

The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.

A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.

Definition at line 76 of file PriceSchedule.h.

◆ SetCurrencyCode() [1/2]

void Aws::EC2::Model::PriceSchedule::SetCurrencyCode ( const CurrencyCodeValues value)
inline

The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.

Definition at line 107 of file PriceSchedule.h.

◆ SetCurrencyCode() [2/2]

void Aws::EC2::Model::PriceSchedule::SetCurrencyCode ( CurrencyCodeValues &&  value)
inline

The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.

Definition at line 113 of file PriceSchedule.h.

◆ SetPrice()

void Aws::EC2::Model::PriceSchedule::SetPrice ( double  value)
inline

The fixed price for the term.

Definition at line 141 of file PriceSchedule.h.

◆ SetTerm()

void Aws::EC2::Model::PriceSchedule::SetTerm ( long long  value)
inline

The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.

Definition at line 165 of file PriceSchedule.h.

◆ TermHasBeenSet()

bool Aws::EC2::Model::PriceSchedule::TermHasBeenSet ( ) const
inline

The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.

Definition at line 159 of file PriceSchedule.h.

◆ WithActive()

PriceSchedule& Aws::EC2::Model::PriceSchedule::WithActive ( bool  value)
inline

The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.

A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.

Definition at line 88 of file PriceSchedule.h.

◆ WithCurrencyCode() [1/2]

PriceSchedule& Aws::EC2::Model::PriceSchedule::WithCurrencyCode ( const CurrencyCodeValues value)
inline

The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.

Definition at line 119 of file PriceSchedule.h.

◆ WithCurrencyCode() [2/2]

PriceSchedule& Aws::EC2::Model::PriceSchedule::WithCurrencyCode ( CurrencyCodeValues &&  value)
inline

The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.

Definition at line 125 of file PriceSchedule.h.

◆ WithPrice()

PriceSchedule& Aws::EC2::Model::PriceSchedule::WithPrice ( double  value)
inline

The fixed price for the term.

Definition at line 146 of file PriceSchedule.h.

◆ WithTerm()

PriceSchedule& Aws::EC2::Model::PriceSchedule::WithTerm ( long long  value)
inline

The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.

Definition at line 171 of file PriceSchedule.h.


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