7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/CurrencyCodeValues.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/PaymentOption.h>
65 inline void SetDuration(
int value) { m_durationHasBeenSet =
true; m_duration = value; }
81 inline Purchase&
AddHostIdSet(
const char* value) { m_hostIdSetHasBeenSet =
true; m_hostIdSet.push_back(value);
return *
this; }
92 inline void SetHostReservationId(
const char* value) { m_hostReservationIdHasBeenSet =
true; m_hostReservationId.assign(value); }
106 inline void SetHourlyPrice(
const char* value) { m_hourlyPriceHasBeenSet =
true; m_hourlyPrice.assign(value); }
121 inline void SetInstanceFamily(
const char* value) { m_instanceFamilyHasBeenSet =
true; m_instanceFamily.assign(value); }
147 inline void SetUpfrontPrice(
const char* value) { m_upfrontPriceHasBeenSet =
true; m_upfrontPrice.assign(value); }
155 bool m_currencyCodeHasBeenSet =
false;
158 bool m_durationHasBeenSet =
false;
161 bool m_hostIdSetHasBeenSet =
false;
164 bool m_hostReservationIdHasBeenSet =
false;
167 bool m_hourlyPriceHasBeenSet =
false;
170 bool m_instanceFamilyHasBeenSet =
false;
173 bool m_paymentOptionHasBeenSet =
false;
176 bool m_upfrontPriceHasBeenSet =
false;
bool HourlyPriceHasBeenSet() const
void SetInstanceFamily(const Aws::String &value)
void SetInstanceFamily(Aws::String &&value)
const Aws::String & GetInstanceFamily() const
Purchase & WithCurrencyCode(CurrencyCodeValues &&value)
AWS_EC2_API Purchase & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Purchase & WithHostIdSet(const Aws::Vector< Aws::String > &value)
Purchase & AddHostIdSet(const char *value)
bool HostIdSetHasBeenSet() const
Purchase & WithHourlyPrice(const Aws::String &value)
const Aws::String & GetHostReservationId() const
void SetUpfrontPrice(const Aws::String &value)
Purchase & WithPaymentOption(PaymentOption &&value)
Purchase & WithHostIdSet(Aws::Vector< Aws::String > &&value)
void SetCurrencyCode(const CurrencyCodeValues &value)
void SetHourlyPrice(const char *value)
bool CurrencyCodeHasBeenSet() const
Purchase & WithHostReservationId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetHostIdSet() const
void SetUpfrontPrice(const char *value)
void SetInstanceFamily(const char *value)
Purchase & WithUpfrontPrice(const Aws::String &value)
Purchase & WithPaymentOption(const PaymentOption &value)
void SetUpfrontPrice(Aws::String &&value)
AWS_EC2_API Purchase(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPaymentOption(PaymentOption &&value)
bool InstanceFamilyHasBeenSet() const
Purchase & WithUpfrontPrice(const char *value)
bool DurationHasBeenSet() const
Purchase & AddHostIdSet(const Aws::String &value)
void SetHostReservationId(const Aws::String &value)
Purchase & WithUpfrontPrice(Aws::String &&value)
Purchase & WithHostReservationId(Aws::String &&value)
void SetHourlyPrice(const Aws::String &value)
void SetHostIdSet(const Aws::Vector< Aws::String > &value)
const PaymentOption & GetPaymentOption() const
void SetCurrencyCode(CurrencyCodeValues &&value)
Purchase & WithInstanceFamily(Aws::String &&value)
Purchase & WithHourlyPrice(Aws::String &&value)
Purchase & WithHourlyPrice(const char *value)
void SetHostReservationId(const char *value)
Purchase & AddHostIdSet(Aws::String &&value)
void SetHostIdSet(Aws::Vector< Aws::String > &&value)
Purchase & WithHostReservationId(const char *value)
void SetHostReservationId(Aws::String &&value)
Purchase & WithInstanceFamily(const Aws::String &value)
bool UpfrontPriceHasBeenSet() const
void SetDuration(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool HostReservationIdHasBeenSet() const
Purchase & WithDuration(int value)
void SetHourlyPrice(Aws::String &&value)
const Aws::String & GetHourlyPrice() const
Purchase & WithCurrencyCode(const CurrencyCodeValues &value)
const Aws::String & GetUpfrontPrice() const
const CurrencyCodeValues & GetCurrencyCode() const
bool PaymentOptionHasBeenSet() const
void SetPaymentOption(const PaymentOption &value)
Purchase & WithInstanceFamily(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream