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>
63 inline void SetDuration(
int value) { m_durationHasBeenSet =
true; m_duration = value; }
75 inline void SetHourlyPrice(
const char* value) { m_hourlyPriceHasBeenSet =
true; m_hourlyPrice.assign(value); }
89 inline void SetInstanceFamily(
const char* value) { m_instanceFamilyHasBeenSet =
true; m_instanceFamily.assign(value); }
103 inline void SetOfferingId(
const char* value) { m_offeringIdHasBeenSet =
true; m_offeringId.assign(value); }
130 inline void SetUpfrontPrice(
const char* value) { m_upfrontPriceHasBeenSet =
true; m_upfrontPrice.assign(value); }
138 bool m_currencyCodeHasBeenSet =
false;
141 bool m_durationHasBeenSet =
false;
144 bool m_hourlyPriceHasBeenSet =
false;
147 bool m_instanceFamilyHasBeenSet =
false;
150 bool m_offeringIdHasBeenSet =
false;
153 bool m_paymentOptionHasBeenSet =
false;
156 bool m_upfrontPriceHasBeenSet =
false;
HostOffering & WithOfferingId(const Aws::String &value)
AWS_EC2_API HostOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
HostOffering & WithCurrencyCode(const CurrencyCodeValues &value)
bool PaymentOptionHasBeenSet() const
HostOffering & WithHourlyPrice(Aws::String &&value)
void SetCurrencyCode(CurrencyCodeValues &&value)
HostOffering & WithUpfrontPrice(Aws::String &&value)
HostOffering & WithPaymentOption(const PaymentOption &value)
const CurrencyCodeValues & GetCurrencyCode() const
AWS_EC2_API HostOffering()
void SetOfferingId(const char *value)
void SetCurrencyCode(const CurrencyCodeValues &value)
HostOffering & WithHourlyPrice(const char *value)
HostOffering & WithUpfrontPrice(const Aws::String &value)
HostOffering & WithCurrencyCode(CurrencyCodeValues &&value)
HostOffering & WithPaymentOption(PaymentOption &&value)
const Aws::String & GetUpfrontPrice() const
const Aws::String & GetOfferingId() const
void SetPaymentOption(PaymentOption &&value)
HostOffering & WithInstanceFamily(const Aws::String &value)
HostOffering & WithHourlyPrice(const Aws::String &value)
void SetInstanceFamily(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetUpfrontPrice(Aws::String &&value)
void SetHourlyPrice(Aws::String &&value)
HostOffering & WithOfferingId(const char *value)
void SetInstanceFamily(Aws::String &&value)
HostOffering & WithDuration(int value)
HostOffering & WithOfferingId(Aws::String &&value)
void SetPaymentOption(const PaymentOption &value)
bool CurrencyCodeHasBeenSet() const
HostOffering & WithInstanceFamily(Aws::String &&value)
const Aws::String & GetInstanceFamily() const
void SetHourlyPrice(const char *value)
void SetHourlyPrice(const Aws::String &value)
void SetUpfrontPrice(const Aws::String &value)
void SetOfferingId(const Aws::String &value)
void SetOfferingId(Aws::String &&value)
void SetInstanceFamily(const char *value)
bool InstanceFamilyHasBeenSet() const
HostOffering & WithUpfrontPrice(const char *value)
AWS_EC2_API HostOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDuration(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool OfferingIdHasBeenSet() const
const PaymentOption & GetPaymentOption() const
bool DurationHasBeenSet() const
void SetUpfrontPrice(const char *value)
bool UpfrontPriceHasBeenSet() const
bool HourlyPriceHasBeenSet() const
const Aws::String & GetHourlyPrice() const
HostOffering & WithInstanceFamily(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream