7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/CurrencyCodeValues.h>
12#include <aws/ec2/model/PaymentOption.h>
48 m_currencyCodeHasBeenSet =
true;
49 m_currencyCode = value;
64 m_durationHasBeenSet =
true;
79 template <
typename HostIdSetT = Aws::Vector<Aws::String>>
81 m_hostIdSetHasBeenSet =
true;
82 m_hostIdSet = std::forward<HostIdSetT>(value);
84 template <
typename HostIdSetT = Aws::Vector<Aws::String>>
89 template <
typename HostIdSetT = Aws::String>
91 m_hostIdSetHasBeenSet =
true;
92 m_hostIdSet.emplace_back(std::forward<HostIdSetT>(value));
103 template <
typename HostReservationIdT = Aws::String>
105 m_hostReservationIdHasBeenSet =
true;
106 m_hostReservationId = std::forward<HostReservationIdT>(value);
108 template <
typename HostReservationIdT = Aws::String>
121 template <
typename HourlyPriceT = Aws::String>
123 m_hourlyPriceHasBeenSet =
true;
124 m_hourlyPrice = std::forward<HourlyPriceT>(value);
126 template <
typename HourlyPriceT = Aws::String>
140 template <
typename InstanceFamilyT = Aws::String>
142 m_instanceFamilyHasBeenSet =
true;
143 m_instanceFamily = std::forward<InstanceFamilyT>(value);
145 template <
typename InstanceFamilyT = Aws::String>
159 m_paymentOptionHasBeenSet =
true;
160 m_paymentOption = value;
174 template <
typename UpfrontPriceT = Aws::String>
176 m_upfrontPriceHasBeenSet =
true;
177 m_upfrontPrice = std::forward<UpfrontPriceT>(value);
179 template <
typename UpfrontPriceT = Aws::String>
201 bool m_currencyCodeHasBeenSet =
false;
202 bool m_durationHasBeenSet =
false;
203 bool m_hostIdSetHasBeenSet =
false;
204 bool m_hostReservationIdHasBeenSet =
false;
205 bool m_hourlyPriceHasBeenSet =
false;
206 bool m_instanceFamilyHasBeenSet =
false;
207 bool m_paymentOptionHasBeenSet =
false;
208 bool m_upfrontPriceHasBeenSet =
false;
bool HourlyPriceHasBeenSet() const
const Aws::String & GetInstanceFamily() const
AWS_EC2_API Purchase & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool HostIdSetHasBeenSet() const
const Aws::String & GetHostReservationId() const
Purchase & WithInstanceFamily(InstanceFamilyT &&value)
Purchase & AddHostIdSet(HostIdSetT &&value)
Purchase & WithHostReservationId(HostReservationIdT &&value)
void SetCurrencyCode(CurrencyCodeValues value)
void SetHostIdSet(HostIdSetT &&value)
bool CurrencyCodeHasBeenSet() const
Purchase & WithUpfrontPrice(UpfrontPriceT &&value)
const Aws::Vector< Aws::String > & GetHostIdSet() const
AWS_EC2_API Purchase(const Aws::Utils::Xml::XmlNode &xmlNode)
bool InstanceFamilyHasBeenSet() const
bool DurationHasBeenSet() const
Purchase & WithHourlyPrice(HourlyPriceT &&value)
void SetHostReservationId(HostReservationIdT &&value)
void SetInstanceFamily(InstanceFamilyT &&value)
Purchase & WithCurrencyCode(CurrencyCodeValues value)
AWS_EC2_API Purchase()=default
Purchase & WithPaymentOption(PaymentOption value)
Purchase & WithHostIdSet(HostIdSetT &&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
CurrencyCodeValues GetCurrencyCode() const
bool HostReservationIdHasBeenSet() const
Purchase & WithDuration(int value)
PaymentOption GetPaymentOption() const
void SetHourlyPrice(HourlyPriceT &&value)
const Aws::String & GetHourlyPrice() const
const Aws::String & GetUpfrontPrice() const
void SetUpfrontPrice(UpfrontPriceT &&value)
bool PaymentOptionHasBeenSet() const
void SetPaymentOption(PaymentOption 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