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>
53 inline int GetCount()
const {
return m_count; }
55 inline void SetCount(
int value) { m_countHasBeenSet =
true; m_count = value; }
78 inline void SetDuration(
int value) { m_durationHasBeenSet =
true; m_duration = value; }
88 template<
typename EndT = Aws::Utils::DateTime>
89 void SetEnd(EndT&& value) { m_endHasBeenSet =
true; m_end = std::forward<EndT>(value); }
90 template<
typename EndT = Aws::Utils::DateTime>
100 template<
typename HostIdSetT = Aws::Vector<Aws::String>>
101 void SetHostIdSet(HostIdSetT&& value) { m_hostIdSetHasBeenSet =
true; m_hostIdSet = std::forward<HostIdSetT>(value); }
102 template<
typename HostIdSetT = Aws::Vector<Aws::String>>
104 template<
typename HostIdSetT = Aws::String>
105 HostReservation&
AddHostIdSet(HostIdSetT&& value) { m_hostIdSetHasBeenSet =
true; m_hostIdSet.emplace_back(std::forward<HostIdSetT>(value));
return *
this; }
114 template<
typename HostReservationIdT = Aws::String>
115 void SetHostReservationId(HostReservationIdT&& value) { m_hostReservationIdHasBeenSet =
true; m_hostReservationId = std::forward<HostReservationIdT>(value); }
116 template<
typename HostReservationIdT = Aws::String>
126 template<
typename HourlyPriceT = Aws::String>
127 void SetHourlyPrice(HourlyPriceT&& value) { m_hourlyPriceHasBeenSet =
true; m_hourlyPrice = std::forward<HourlyPriceT>(value); }
128 template<
typename HourlyPriceT = Aws::String>
140 template<
typename InstanceFamilyT = Aws::String>
141 void SetInstanceFamily(InstanceFamilyT&& value) { m_instanceFamilyHasBeenSet =
true; m_instanceFamily = std::forward<InstanceFamilyT>(value); }
142 template<
typename InstanceFamilyT = Aws::String>
153 template<
typename OfferingIdT = Aws::String>
154 void SetOfferingId(OfferingIdT&& value) { m_offeringIdHasBeenSet =
true; m_offeringId = std::forward<OfferingIdT>(value); }
155 template<
typename OfferingIdT = Aws::String>
175 template<
typename StartT = Aws::Utils::DateTime>
176 void SetStart(StartT&& value) { m_startHasBeenSet =
true; m_start = std::forward<StartT>(value); }
177 template<
typename StartT = Aws::Utils::DateTime>
197 template<
typename UpfrontPriceT = Aws::String>
198 void SetUpfrontPrice(UpfrontPriceT&& value) { m_upfrontPriceHasBeenSet =
true; m_upfrontPrice = std::forward<UpfrontPriceT>(value); }
199 template<
typename UpfrontPriceT = Aws::String>
209 template<
typename TagsT = Aws::Vector<Tag>>
210 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
211 template<
typename TagsT = Aws::Vector<Tag>>
213 template<
typename TagsT = Tag>
214 HostReservation&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
219 bool m_countHasBeenSet =
false;
222 bool m_currencyCodeHasBeenSet =
false;
225 bool m_durationHasBeenSet =
false;
228 bool m_endHasBeenSet =
false;
231 bool m_hostIdSetHasBeenSet =
false;
234 bool m_hostReservationIdHasBeenSet =
false;
237 bool m_hourlyPriceHasBeenSet =
false;
240 bool m_instanceFamilyHasBeenSet =
false;
243 bool m_offeringIdHasBeenSet =
false;
246 bool m_paymentOptionHasBeenSet =
false;
249 bool m_startHasBeenSet =
false;
252 bool m_stateHasBeenSet =
false;
255 bool m_upfrontPriceHasBeenSet =
false;
258 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