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/AWSString.h>
11#include <aws/ec2/model/PaymentOption.h>
61 inline void SetDuration(
int value) { m_durationHasBeenSet =
true; m_duration = value; }
71 template<
typename HourlyPriceT = Aws::String>
72 void SetHourlyPrice(HourlyPriceT&& value) { m_hourlyPriceHasBeenSet =
true; m_hourlyPrice = std::forward<HourlyPriceT>(value); }
73 template<
typename HourlyPriceT = Aws::String>
83 template<
typename InstanceFamilyT = Aws::String>
84 void SetInstanceFamily(InstanceFamilyT&& value) { m_instanceFamilyHasBeenSet =
true; m_instanceFamily = std::forward<InstanceFamilyT>(value); }
85 template<
typename InstanceFamilyT = Aws::String>
95 template<
typename OfferingIdT = Aws::String>
96 void SetOfferingId(OfferingIdT&& value) { m_offeringIdHasBeenSet =
true; m_offeringId = std::forward<OfferingIdT>(value); }
97 template<
typename OfferingIdT = Aws::String>
118 template<
typename UpfrontPriceT = Aws::String>
119 void SetUpfrontPrice(UpfrontPriceT&& value) { m_upfrontPriceHasBeenSet =
true; m_upfrontPrice = std::forward<UpfrontPriceT>(value); }
120 template<
typename UpfrontPriceT = Aws::String>
126 bool m_currencyCodeHasBeenSet =
false;
129 bool m_durationHasBeenSet =
false;
132 bool m_hourlyPriceHasBeenSet =
false;
135 bool m_instanceFamilyHasBeenSet =
false;
138 bool m_offeringIdHasBeenSet =
false;
141 bool m_paymentOptionHasBeenSet =
false;
144 bool m_upfrontPriceHasBeenSet =
false;
PaymentOption GetPaymentOption() const
AWS_EC2_API HostOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool PaymentOptionHasBeenSet() const
HostOffering & WithOfferingId(OfferingIdT &&value)
HostOffering & WithUpfrontPrice(UpfrontPriceT &&value)
AWS_EC2_API HostOffering()=default
const Aws::String & GetUpfrontPrice() const
const Aws::String & GetOfferingId() const
HostOffering & WithHourlyPrice(HourlyPriceT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
HostOffering & WithDuration(int value)
bool CurrencyCodeHasBeenSet() const
void SetUpfrontPrice(UpfrontPriceT &&value)
const Aws::String & GetInstanceFamily() const
void SetOfferingId(OfferingIdT &&value)
CurrencyCodeValues GetCurrencyCode() const
void SetPaymentOption(PaymentOption value)
bool InstanceFamilyHasBeenSet() const
void SetHourlyPrice(HourlyPriceT &&value)
AWS_EC2_API HostOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceFamily(InstanceFamilyT &&value)
HostOffering & WithPaymentOption(PaymentOption value)
void SetDuration(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool OfferingIdHasBeenSet() const
void SetCurrencyCode(CurrencyCodeValues value)
bool DurationHasBeenSet() const
bool UpfrontPriceHasBeenSet() const
HostOffering & WithCurrencyCode(CurrencyCodeValues value)
bool HourlyPriceHasBeenSet() const
HostOffering & WithInstanceFamily(InstanceFamilyT &&value)
const Aws::String & GetHourlyPrice() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream