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/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/ec2/model/PaymentOption.h>
14#include <aws/ec2/model/ReservationState.h>
15#include <aws/ec2/model/Tag.h>
55 inline void SetCount(
int value) { m_countHasBeenSet =
true; m_count = value; }
80 inline void SetDuration(
int value) { m_durationHasBeenSet =
true; m_duration = value; }
119 inline void SetHostReservationId(
const char* value) { m_hostReservationIdHasBeenSet =
true; m_hostReservationId.assign(value); }
133 inline void SetHourlyPrice(
const char* value) { m_hourlyPriceHasBeenSet =
true; m_hourlyPrice.assign(value); }
149 inline void SetInstanceFamily(
const char* value) { m_instanceFamilyHasBeenSet =
true; m_instanceFamily.assign(value); }
164 inline void SetOfferingId(
const char* value) { m_offeringIdHasBeenSet =
true; m_offeringId.assign(value); }
214 inline void SetUpfrontPrice(
const char* value) { m_upfrontPriceHasBeenSet =
true; m_upfrontPrice.assign(value); }
236 bool m_countHasBeenSet =
false;
239 bool m_currencyCodeHasBeenSet =
false;
242 bool m_durationHasBeenSet =
false;
245 bool m_endHasBeenSet =
false;
248 bool m_hostIdSetHasBeenSet =
false;
251 bool m_hostReservationIdHasBeenSet =
false;
254 bool m_hourlyPriceHasBeenSet =
false;
257 bool m_instanceFamilyHasBeenSet =
false;
260 bool m_offeringIdHasBeenSet =
false;
263 bool m_paymentOptionHasBeenSet =
false;
266 bool m_startHasBeenSet =
false;
269 bool m_stateHasBeenSet =
false;
272 bool m_upfrontPriceHasBeenSet =
false;
275 bool m_tagsHasBeenSet =
false;
HostReservation & WithHostReservationId(const Aws::String &value)
HostReservation & WithHostIdSet(Aws::Vector< Aws::String > &&value)
HostReservation & WithOfferingId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetHostIdSet() const
HostReservation & WithHostIdSet(const Aws::Vector< Aws::String > &value)
void SetUpfrontPrice(Aws::String &&value)
void SetInstanceFamily(Aws::String &&value)
HostReservation & WithPaymentOption(PaymentOption &&value)
bool HostIdSetHasBeenSet() const
HostReservation & WithEnd(Aws::Utils::DateTime &&value)
void SetHostIdSet(Aws::Vector< Aws::String > &&value)
HostReservation & WithHourlyPrice(const Aws::String &value)
void SetHourlyPrice(const Aws::String &value)
const Aws::Utils::DateTime & GetStart() const
AWS_EC2_API HostReservation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStart(Aws::Utils::DateTime &&value)
HostReservation & WithCount(int value)
HostReservation & WithEnd(const Aws::Utils::DateTime &value)
HostReservation & WithCurrencyCode(const CurrencyCodeValues &value)
const PaymentOption & GetPaymentOption() const
void SetState(ReservationState &&value)
const Aws::String & GetOfferingId() const
HostReservation & AddTags(Tag &&value)
const Aws::String & GetUpfrontPrice() const
HostReservation & WithUpfrontPrice(const char *value)
HostReservation & AddHostIdSet(const char *value)
void SetOfferingId(const Aws::String &value)
void SetInstanceFamily(const char *value)
bool HourlyPriceHasBeenSet() const
void SetHourlyPrice(const char *value)
void SetEnd(Aws::Utils::DateTime &&value)
bool CurrencyCodeHasBeenSet() const
void SetInstanceFamily(const Aws::String &value)
void SetEnd(const Aws::Utils::DateTime &value)
HostReservation & WithCurrencyCode(CurrencyCodeValues &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetUpfrontPrice(const char *value)
const Aws::String & GetInstanceFamily() const
HostReservation & WithHostReservationId(const char *value)
void SetUpfrontPrice(const Aws::String &value)
HostReservation & WithOfferingId(const char *value)
void SetOfferingId(Aws::String &&value)
HostReservation & WithInstanceFamily(Aws::String &&value)
void SetStart(const Aws::Utils::DateTime &value)
bool EndHasBeenSet() const
bool DurationHasBeenSet() const
void SetHostIdSet(const Aws::Vector< Aws::String > &value)
HostReservation & AddTags(const Tag &value)
void SetCurrencyCode(const CurrencyCodeValues &value)
HostReservation & WithOfferingId(Aws::String &&value)
HostReservation & WithState(ReservationState &&value)
HostReservation & WithStart(Aws::Utils::DateTime &&value)
bool StartHasBeenSet() const
bool HostReservationIdHasBeenSet() const
HostReservation & WithHourlyPrice(Aws::String &&value)
HostReservation & WithState(const ReservationState &value)
const Aws::Vector< Tag > & GetTags() const
HostReservation & WithStart(const Aws::Utils::DateTime &value)
void SetHostReservationId(const char *value)
HostReservation & AddHostIdSet(const Aws::String &value)
HostReservation & WithInstanceFamily(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
void SetHourlyPrice(Aws::String &&value)
const Aws::String & GetHostReservationId() const
HostReservation & WithPaymentOption(const PaymentOption &value)
HostReservation & WithUpfrontPrice(const Aws::String &value)
HostReservation & AddHostIdSet(Aws::String &&value)
bool TagsHasBeenSet() const
void SetPaymentOption(PaymentOption &&value)
void SetTags(const Aws::Vector< Tag > &value)
HostReservation & WithHostReservationId(Aws::String &&value)
bool CountHasBeenSet() const
const Aws::Utils::DateTime & GetEnd() const
void SetState(const ReservationState &value)
bool StateHasBeenSet() const
const Aws::String & GetHourlyPrice() const
void SetOfferingId(const char *value)
HostReservation & WithTags(const Aws::Vector< Tag > &value)
AWS_EC2_API HostReservation(const Aws::Utils::Xml::XmlNode &xmlNode)
HostReservation & WithUpfrontPrice(Aws::String &&value)
const CurrencyCodeValues & GetCurrencyCode() const
bool PaymentOptionHasBeenSet() const
void SetHostReservationId(const Aws::String &value)
bool OfferingIdHasBeenSet() const
bool UpfrontPriceHasBeenSet() const
const ReservationState & GetState() const
HostReservation & WithInstanceFamily(const Aws::String &value)
void SetPaymentOption(const PaymentOption &value)
HostReservation & WithDuration(int value)
void SetHostReservationId(Aws::String &&value)
bool InstanceFamilyHasBeenSet() const
HostReservation & WithHourlyPrice(const char *value)
void SetCurrencyCode(CurrencyCodeValues &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDuration(int value)
AWS_EC2_API HostReservation()
HostReservation & WithTags(Aws::Vector< Tag > &&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