7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/CurrencyCodeValues.h>
13#include <aws/ec2/model/PaymentOption.h>
14#include <aws/ec2/model/ReservationState.h>
15#include <aws/ec2/model/Tag.h>
47 inline int GetCount()
const {
return m_count; }
50 m_countHasBeenSet =
true;
68 m_currencyCodeHasBeenSet =
true;
69 m_currencyCode = value;
85 m_durationHasBeenSet =
true;
100 template <
typename EndT = Aws::Utils::DateTime>
102 m_endHasBeenSet =
true;
103 m_end = std::forward<EndT>(value);
105 template <
typename EndT = Aws::Utils::DateTime>
107 SetEnd(std::forward<EndT>(value));
118 template <
typename HostIdSetT = Aws::Vector<Aws::String>>
120 m_hostIdSetHasBeenSet =
true;
121 m_hostIdSet = std::forward<HostIdSetT>(value);
123 template <
typename HostIdSetT = Aws::Vector<Aws::String>>
128 template <
typename HostIdSetT = Aws::String>
130 m_hostIdSetHasBeenSet =
true;
131 m_hostIdSet.emplace_back(std::forward<HostIdSetT>(value));
142 template <
typename HostReservationIdT = Aws::String>
144 m_hostReservationIdHasBeenSet =
true;
145 m_hostReservationId = std::forward<HostReservationIdT>(value);
147 template <
typename HostReservationIdT = Aws::String>
160 template <
typename HourlyPriceT = Aws::String>
162 m_hourlyPriceHasBeenSet =
true;
163 m_hourlyPrice = std::forward<HourlyPriceT>(value);
165 template <
typename HourlyPriceT = Aws::String>
180 template <
typename InstanceFamilyT = Aws::String>
182 m_instanceFamilyHasBeenSet =
true;
183 m_instanceFamily = std::forward<InstanceFamilyT>(value);
185 template <
typename InstanceFamilyT = Aws::String>
199 template <
typename OfferingIdT = Aws::String>
201 m_offeringIdHasBeenSet =
true;
202 m_offeringId = std::forward<OfferingIdT>(value);
204 template <
typename OfferingIdT = Aws::String>
218 m_paymentOptionHasBeenSet =
true;
219 m_paymentOption = value;
233 template <
typename StartT = Aws::Utils::DateTime>
235 m_startHasBeenSet =
true;
236 m_start = std::forward<StartT>(value);
238 template <
typename StartT = Aws::Utils::DateTime>
240 SetStart(std::forward<StartT>(value));
252 m_stateHasBeenSet =
true;
267 template <
typename UpfrontPriceT = Aws::String>
269 m_upfrontPriceHasBeenSet =
true;
270 m_upfrontPrice = std::forward<UpfrontPriceT>(value);
272 template <
typename UpfrontPriceT = Aws::String>
285 template <
typename TagsT = Aws::Vector<Tag>>
287 m_tagsHasBeenSet =
true;
288 m_tags = std::forward<TagsT>(value);
290 template <
typename TagsT = Aws::Vector<Tag>>
292 SetTags(std::forward<TagsT>(value));
295 template <
typename TagsT = Tag>
297 m_tagsHasBeenSet =
true;
298 m_tags.emplace_back(std::forward<TagsT>(value));
330 bool m_countHasBeenSet =
false;
331 bool m_currencyCodeHasBeenSet =
false;
332 bool m_durationHasBeenSet =
false;
333 bool m_endHasBeenSet =
false;
334 bool m_hostIdSetHasBeenSet =
false;
335 bool m_hostReservationIdHasBeenSet =
false;
336 bool m_hourlyPriceHasBeenSet =
false;
337 bool m_instanceFamilyHasBeenSet =
false;
338 bool m_offeringIdHasBeenSet =
false;
339 bool m_paymentOptionHasBeenSet =
false;
340 bool m_startHasBeenSet =
false;
341 bool m_stateHasBeenSet =
false;
342 bool m_upfrontPriceHasBeenSet =
false;
343 bool m_tagsHasBeenSet =
false;
void SetPaymentOption(PaymentOption value)
void SetOfferingId(OfferingIdT &&value)
HostReservation & AddTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetHostIdSet() const
bool HostIdSetHasBeenSet() const
HostReservation & WithTags(TagsT &&value)
void SetEnd(EndT &&value)
const Aws::Utils::DateTime & GetStart() const
AWS_EC2_API HostReservation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStart(StartT &&value)
HostReservation & WithCount(int value)
void SetUpfrontPrice(UpfrontPriceT &&value)
const Aws::String & GetOfferingId() const
const Aws::String & GetUpfrontPrice() const
bool HourlyPriceHasBeenSet() const
bool CurrencyCodeHasBeenSet() const
HostReservation & WithState(ReservationState value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CurrencyCodeValues GetCurrencyCode() const
HostReservation & WithEnd(EndT &&value)
const Aws::String & GetInstanceFamily() const
void SetState(ReservationState value)
void SetCurrencyCode(CurrencyCodeValues value)
bool EndHasBeenSet() const
bool DurationHasBeenSet() const
void SetHostReservationId(HostReservationIdT &&value)
HostReservation & AddHostIdSet(HostIdSetT &&value)
HostReservation & WithHostIdSet(HostIdSetT &&value)
HostReservation & WithCurrencyCode(CurrencyCodeValues value)
void SetInstanceFamily(InstanceFamilyT &&value)
AWS_EC2_API HostReservation()=default
HostReservation & WithOfferingId(OfferingIdT &&value)
bool StartHasBeenSet() const
bool HostReservationIdHasBeenSet() const
HostReservation & WithStart(StartT &&value)
const Aws::Vector< Tag > & GetTags() const
HostReservation & WithHostReservationId(HostReservationIdT &&value)
const Aws::String & GetHostReservationId() const
bool TagsHasBeenSet() const
ReservationState GetState() const
bool CountHasBeenSet() const
const Aws::Utils::DateTime & GetEnd() const
bool StateHasBeenSet() const
const Aws::String & GetHourlyPrice() const
AWS_EC2_API HostReservation(const Aws::Utils::Xml::XmlNode &xmlNode)
bool PaymentOptionHasBeenSet() const
bool OfferingIdHasBeenSet() const
bool UpfrontPriceHasBeenSet() const
void SetTags(TagsT &&value)
HostReservation & WithDuration(int value)
HostReservation & WithUpfrontPrice(UpfrontPriceT &&value)
bool InstanceFamilyHasBeenSet() const
void SetHostIdSet(HostIdSetT &&value)
void SetHourlyPrice(HourlyPriceT &&value)
HostReservation & WithInstanceFamily(InstanceFamilyT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
HostReservation & WithPaymentOption(PaymentOption value)
PaymentOption GetPaymentOption() const
void SetDuration(int value)
HostReservation & WithHourlyPrice(HourlyPriceT &&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