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

#include <Purchase.h>

Public Member Functions

 Purchase ()
 
 Purchase (const Aws::Utils::Xml::XmlNode &xmlNode)
 
Purchaseoperator= (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 CurrencyCodeValuesGetCurrencyCode () const
 
bool CurrencyCodeHasBeenSet () const
 
void SetCurrencyCode (const CurrencyCodeValues &value)
 
void SetCurrencyCode (CurrencyCodeValues &&value)
 
PurchaseWithCurrencyCode (const CurrencyCodeValues &value)
 
PurchaseWithCurrencyCode (CurrencyCodeValues &&value)
 
int GetDuration () const
 
bool DurationHasBeenSet () const
 
void SetDuration (int value)
 
PurchaseWithDuration (int value)
 
const Aws::Vector< Aws::String > & GetHostIdSet () const
 
bool HostIdSetHasBeenSet () const
 
void SetHostIdSet (const Aws::Vector< Aws::String > &value)
 
void SetHostIdSet (Aws::Vector< Aws::String > &&value)
 
PurchaseWithHostIdSet (const Aws::Vector< Aws::String > &value)
 
PurchaseWithHostIdSet (Aws::Vector< Aws::String > &&value)
 
PurchaseAddHostIdSet (const Aws::String &value)
 
PurchaseAddHostIdSet (Aws::String &&value)
 
PurchaseAddHostIdSet (const char *value)
 
const Aws::StringGetHostReservationId () const
 
bool HostReservationIdHasBeenSet () const
 
void SetHostReservationId (const Aws::String &value)
 
void SetHostReservationId (Aws::String &&value)
 
void SetHostReservationId (const char *value)
 
PurchaseWithHostReservationId (const Aws::String &value)
 
PurchaseWithHostReservationId (Aws::String &&value)
 
PurchaseWithHostReservationId (const char *value)
 
const Aws::StringGetHourlyPrice () const
 
bool HourlyPriceHasBeenSet () const
 
void SetHourlyPrice (const Aws::String &value)
 
void SetHourlyPrice (Aws::String &&value)
 
void SetHourlyPrice (const char *value)
 
PurchaseWithHourlyPrice (const Aws::String &value)
 
PurchaseWithHourlyPrice (Aws::String &&value)
 
PurchaseWithHourlyPrice (const char *value)
 
const Aws::StringGetInstanceFamily () const
 
bool InstanceFamilyHasBeenSet () const
 
void SetInstanceFamily (const Aws::String &value)
 
void SetInstanceFamily (Aws::String &&value)
 
void SetInstanceFamily (const char *value)
 
PurchaseWithInstanceFamily (const Aws::String &value)
 
PurchaseWithInstanceFamily (Aws::String &&value)
 
PurchaseWithInstanceFamily (const char *value)
 
const PaymentOptionGetPaymentOption () const
 
bool PaymentOptionHasBeenSet () const
 
void SetPaymentOption (const PaymentOption &value)
 
void SetPaymentOption (PaymentOption &&value)
 
PurchaseWithPaymentOption (const PaymentOption &value)
 
PurchaseWithPaymentOption (PaymentOption &&value)
 
const Aws::StringGetUpfrontPrice () const
 
bool UpfrontPriceHasBeenSet () const
 
void SetUpfrontPrice (const Aws::String &value)
 
void SetUpfrontPrice (Aws::String &&value)
 
void SetUpfrontPrice (const char *value)
 
PurchaseWithUpfrontPrice (const Aws::String &value)
 
PurchaseWithUpfrontPrice (Aws::String &&value)
 
PurchaseWithUpfrontPrice (const char *value)
 

Detailed Description

Describes the result of the purchase.

See Also:

AWS API Reference

Definition at line 34 of file Purchase.h.

Constructor & Destructor Documentation

◆ Purchase() [1/2]

Aws::EC2::Model::Purchase::Purchase ( )

◆ Purchase() [2/2]

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

Member Function Documentation

◆ AddHostIdSet() [1/3]

Purchase& Aws::EC2::Model::Purchase::AddHostIdSet ( Aws::String &&  value)
inline

The IDs of the Dedicated Hosts associated with the reservation.

Definition at line 147 of file Purchase.h.

◆ AddHostIdSet() [2/3]

Purchase& Aws::EC2::Model::Purchase::AddHostIdSet ( const Aws::String value)
inline

The IDs of the Dedicated Hosts associated with the reservation.

Definition at line 142 of file Purchase.h.

◆ AddHostIdSet() [3/3]

Purchase& Aws::EC2::Model::Purchase::AddHostIdSet ( const char *  value)
inline

The IDs of the Dedicated Hosts associated with the reservation.

Definition at line 152 of file Purchase.h.

◆ CurrencyCodeHasBeenSet()

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

The currency in which the UpfrontPrice and HourlyPrice amounts are specified. At this time, the only supported currency is USD.

Definition at line 57 of file Purchase.h.

◆ DurationHasBeenSet()

bool Aws::EC2::Model::Purchase::DurationHasBeenSet ( ) const
inline

The duration of the reservation's term in seconds.

Definition at line 96 of file Purchase.h.

◆ GetCurrencyCode()

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

The currency in which the UpfrontPrice and HourlyPrice amounts are specified. At this time, the only supported currency is USD.

Definition at line 50 of file Purchase.h.

◆ GetDuration()

int Aws::EC2::Model::Purchase::GetDuration ( ) const
inline

The duration of the reservation's term in seconds.

Definition at line 91 of file Purchase.h.

◆ GetHostIdSet()

const Aws::Vector<Aws::String>& Aws::EC2::Model::Purchase::GetHostIdSet ( ) const
inline

The IDs of the Dedicated Hosts associated with the reservation.

Definition at line 112 of file Purchase.h.

◆ GetHostReservationId()

const Aws::String& Aws::EC2::Model::Purchase::GetHostReservationId ( ) const
inline

The ID of the reservation.

Definition at line 158 of file Purchase.h.

◆ GetHourlyPrice()

const Aws::String& Aws::EC2::Model::Purchase::GetHourlyPrice ( ) const
inline

The hourly price of the reservation per hour.

Definition at line 199 of file Purchase.h.

◆ GetInstanceFamily()

const Aws::String& Aws::EC2::Model::Purchase::GetInstanceFamily ( ) const
inline

The instance family on the Dedicated Host that the reservation can be associated with.

Definition at line 241 of file Purchase.h.

◆ GetPaymentOption()

const PaymentOption& Aws::EC2::Model::Purchase::GetPaymentOption ( ) const
inline

The payment option for the reservation.

Definition at line 289 of file Purchase.h.

◆ GetUpfrontPrice()

const Aws::String& Aws::EC2::Model::Purchase::GetUpfrontPrice ( ) const
inline

The upfront price of the reservation.

Definition at line 320 of file Purchase.h.

◆ HostIdSetHasBeenSet()

bool Aws::EC2::Model::Purchase::HostIdSetHasBeenSet ( ) const
inline

The IDs of the Dedicated Hosts associated with the reservation.

Definition at line 117 of file Purchase.h.

◆ HostReservationIdHasBeenSet()

bool Aws::EC2::Model::Purchase::HostReservationIdHasBeenSet ( ) const
inline

The ID of the reservation.

Definition at line 163 of file Purchase.h.

◆ HourlyPriceHasBeenSet()

bool Aws::EC2::Model::Purchase::HourlyPriceHasBeenSet ( ) const
inline

The hourly price of the reservation per hour.

Definition at line 204 of file Purchase.h.

◆ InstanceFamilyHasBeenSet()

bool Aws::EC2::Model::Purchase::InstanceFamilyHasBeenSet ( ) const
inline

The instance family on the Dedicated Host that the reservation can be associated with.

Definition at line 247 of file Purchase.h.

◆ operator=()

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

◆ OutputToStream() [1/2]

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

◆ OutputToStream() [2/2]

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

◆ PaymentOptionHasBeenSet()

bool Aws::EC2::Model::Purchase::PaymentOptionHasBeenSet ( ) const
inline

The payment option for the reservation.

Definition at line 294 of file Purchase.h.

◆ SetCurrencyCode() [1/2]

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

The currency in which the UpfrontPrice and HourlyPrice amounts are specified. At this time, the only supported currency is USD.

Definition at line 64 of file Purchase.h.

◆ SetCurrencyCode() [2/2]

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

The currency in which the UpfrontPrice and HourlyPrice amounts are specified. At this time, the only supported currency is USD.

Definition at line 71 of file Purchase.h.

◆ SetDuration()

void Aws::EC2::Model::Purchase::SetDuration ( int  value)
inline

The duration of the reservation's term in seconds.

Definition at line 101 of file Purchase.h.

◆ SetHostIdSet() [1/2]

void Aws::EC2::Model::Purchase::SetHostIdSet ( Aws::Vector< Aws::String > &&  value)
inline

The IDs of the Dedicated Hosts associated with the reservation.

Definition at line 127 of file Purchase.h.

◆ SetHostIdSet() [2/2]

void Aws::EC2::Model::Purchase::SetHostIdSet ( const Aws::Vector< Aws::String > &  value)
inline

The IDs of the Dedicated Hosts associated with the reservation.

Definition at line 122 of file Purchase.h.

◆ SetHostReservationId() [1/3]

void Aws::EC2::Model::Purchase::SetHostReservationId ( Aws::String &&  value)
inline

The ID of the reservation.

Definition at line 173 of file Purchase.h.

◆ SetHostReservationId() [2/3]

void Aws::EC2::Model::Purchase::SetHostReservationId ( const Aws::String value)
inline

The ID of the reservation.

Definition at line 168 of file Purchase.h.

◆ SetHostReservationId() [3/3]

void Aws::EC2::Model::Purchase::SetHostReservationId ( const char *  value)
inline

The ID of the reservation.

Definition at line 178 of file Purchase.h.

◆ SetHourlyPrice() [1/3]

void Aws::EC2::Model::Purchase::SetHourlyPrice ( Aws::String &&  value)
inline

The hourly price of the reservation per hour.

Definition at line 214 of file Purchase.h.

◆ SetHourlyPrice() [2/3]

void Aws::EC2::Model::Purchase::SetHourlyPrice ( const Aws::String value)
inline

The hourly price of the reservation per hour.

Definition at line 209 of file Purchase.h.

◆ SetHourlyPrice() [3/3]

void Aws::EC2::Model::Purchase::SetHourlyPrice ( const char *  value)
inline

The hourly price of the reservation per hour.

Definition at line 219 of file Purchase.h.

◆ SetInstanceFamily() [1/3]

void Aws::EC2::Model::Purchase::SetInstanceFamily ( Aws::String &&  value)
inline

The instance family on the Dedicated Host that the reservation can be associated with.

Definition at line 259 of file Purchase.h.

◆ SetInstanceFamily() [2/3]

void Aws::EC2::Model::Purchase::SetInstanceFamily ( const Aws::String value)
inline

The instance family on the Dedicated Host that the reservation can be associated with.

Definition at line 253 of file Purchase.h.

◆ SetInstanceFamily() [3/3]

void Aws::EC2::Model::Purchase::SetInstanceFamily ( const char *  value)
inline

The instance family on the Dedicated Host that the reservation can be associated with.

Definition at line 265 of file Purchase.h.

◆ SetPaymentOption() [1/2]

void Aws::EC2::Model::Purchase::SetPaymentOption ( const PaymentOption value)
inline

The payment option for the reservation.

Definition at line 299 of file Purchase.h.

◆ SetPaymentOption() [2/2]

void Aws::EC2::Model::Purchase::SetPaymentOption ( PaymentOption &&  value)
inline

The payment option for the reservation.

Definition at line 304 of file Purchase.h.

◆ SetUpfrontPrice() [1/3]

void Aws::EC2::Model::Purchase::SetUpfrontPrice ( Aws::String &&  value)
inline

The upfront price of the reservation.

Definition at line 335 of file Purchase.h.

◆ SetUpfrontPrice() [2/3]

void Aws::EC2::Model::Purchase::SetUpfrontPrice ( const Aws::String value)
inline

The upfront price of the reservation.

Definition at line 330 of file Purchase.h.

◆ SetUpfrontPrice() [3/3]

void Aws::EC2::Model::Purchase::SetUpfrontPrice ( const char *  value)
inline

The upfront price of the reservation.

Definition at line 340 of file Purchase.h.

◆ UpfrontPriceHasBeenSet()

bool Aws::EC2::Model::Purchase::UpfrontPriceHasBeenSet ( ) const
inline

The upfront price of the reservation.

Definition at line 325 of file Purchase.h.

◆ WithCurrencyCode() [1/2]

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

The currency in which the UpfrontPrice and HourlyPrice amounts are specified. At this time, the only supported currency is USD.

Definition at line 78 of file Purchase.h.

◆ WithCurrencyCode() [2/2]

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

The currency in which the UpfrontPrice and HourlyPrice amounts are specified. At this time, the only supported currency is USD.

Definition at line 85 of file Purchase.h.

◆ WithDuration()

Purchase& Aws::EC2::Model::Purchase::WithDuration ( int  value)
inline

The duration of the reservation's term in seconds.

Definition at line 106 of file Purchase.h.

◆ WithHostIdSet() [1/2]

Purchase& Aws::EC2::Model::Purchase::WithHostIdSet ( Aws::Vector< Aws::String > &&  value)
inline

The IDs of the Dedicated Hosts associated with the reservation.

Definition at line 137 of file Purchase.h.

◆ WithHostIdSet() [2/2]

Purchase& Aws::EC2::Model::Purchase::WithHostIdSet ( const Aws::Vector< Aws::String > &  value)
inline

The IDs of the Dedicated Hosts associated with the reservation.

Definition at line 132 of file Purchase.h.

◆ WithHostReservationId() [1/3]

Purchase& Aws::EC2::Model::Purchase::WithHostReservationId ( Aws::String &&  value)
inline

The ID of the reservation.

Definition at line 188 of file Purchase.h.

◆ WithHostReservationId() [2/3]

Purchase& Aws::EC2::Model::Purchase::WithHostReservationId ( const Aws::String value)
inline

The ID of the reservation.

Definition at line 183 of file Purchase.h.

◆ WithHostReservationId() [3/3]

Purchase& Aws::EC2::Model::Purchase::WithHostReservationId ( const char *  value)
inline

The ID of the reservation.

Definition at line 193 of file Purchase.h.

◆ WithHourlyPrice() [1/3]

Purchase& Aws::EC2::Model::Purchase::WithHourlyPrice ( Aws::String &&  value)
inline

The hourly price of the reservation per hour.

Definition at line 229 of file Purchase.h.

◆ WithHourlyPrice() [2/3]

Purchase& Aws::EC2::Model::Purchase::WithHourlyPrice ( const Aws::String value)
inline

The hourly price of the reservation per hour.

Definition at line 224 of file Purchase.h.

◆ WithHourlyPrice() [3/3]

Purchase& Aws::EC2::Model::Purchase::WithHourlyPrice ( const char *  value)
inline

The hourly price of the reservation per hour.

Definition at line 234 of file Purchase.h.

◆ WithInstanceFamily() [1/3]

Purchase& Aws::EC2::Model::Purchase::WithInstanceFamily ( Aws::String &&  value)
inline

The instance family on the Dedicated Host that the reservation can be associated with.

Definition at line 277 of file Purchase.h.

◆ WithInstanceFamily() [2/3]

Purchase& Aws::EC2::Model::Purchase::WithInstanceFamily ( const Aws::String value)
inline

The instance family on the Dedicated Host that the reservation can be associated with.

Definition at line 271 of file Purchase.h.

◆ WithInstanceFamily() [3/3]

Purchase& Aws::EC2::Model::Purchase::WithInstanceFamily ( const char *  value)
inline

The instance family on the Dedicated Host that the reservation can be associated with.

Definition at line 283 of file Purchase.h.

◆ WithPaymentOption() [1/2]

Purchase& Aws::EC2::Model::Purchase::WithPaymentOption ( const PaymentOption value)
inline

The payment option for the reservation.

Definition at line 309 of file Purchase.h.

◆ WithPaymentOption() [2/2]

Purchase& Aws::EC2::Model::Purchase::WithPaymentOption ( PaymentOption &&  value)
inline

The payment option for the reservation.

Definition at line 314 of file Purchase.h.

◆ WithUpfrontPrice() [1/3]

Purchase& Aws::EC2::Model::Purchase::WithUpfrontPrice ( Aws::String &&  value)
inline

The upfront price of the reservation.

Definition at line 350 of file Purchase.h.

◆ WithUpfrontPrice() [2/3]

Purchase& Aws::EC2::Model::Purchase::WithUpfrontPrice ( const Aws::String value)
inline

The upfront price of the reservation.

Definition at line 345 of file Purchase.h.

◆ WithUpfrontPrice() [3/3]

Purchase& Aws::EC2::Model::Purchase::WithUpfrontPrice ( const char *  value)
inline

The upfront price of the reservation.

Definition at line 355 of file Purchase.h.


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