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/InstanceCount.h>
13#include <aws/ec2/model/ListingStatus.h>
14#include <aws/ec2/model/PriceSchedule.h>
15#include <aws/ec2/model/Tag.h>
51 template <
typename ClientTokenT = Aws::String>
53 m_clientTokenHasBeenSet =
true;
54 m_clientToken = std::forward<ClientTokenT>(value);
56 template <
typename ClientTokenT = Aws::String>
69 template <
typename CreateDateT = Aws::Utils::DateTime>
71 m_createDateHasBeenSet =
true;
72 m_createDate = std::forward<CreateDateT>(value);
74 template <
typename CreateDateT = Aws::Utils::DateTime>
87 template <
typename InstanceCountsT = Aws::Vector<InstanceCount>>
89 m_instanceCountsHasBeenSet =
true;
90 m_instanceCounts = std::forward<InstanceCountsT>(value);
92 template <
typename InstanceCountsT = Aws::Vector<InstanceCount>>
97 template <
typename InstanceCountsT = InstanceCount>
99 m_instanceCountsHasBeenSet =
true;
100 m_instanceCounts.emplace_back(std::forward<InstanceCountsT>(value));
111 template <
typename PriceSchedulesT = Aws::Vector<PriceSchedule>>
113 m_priceSchedulesHasBeenSet =
true;
114 m_priceSchedules = std::forward<PriceSchedulesT>(value);
116 template <
typename PriceSchedulesT = Aws::Vector<PriceSchedule>>
121 template <
typename PriceSchedulesT = PriceSchedule>
123 m_priceSchedulesHasBeenSet =
true;
124 m_priceSchedules.emplace_back(std::forward<PriceSchedulesT>(value));
135 template <
typename ReservedInstancesIdT = Aws::String>
137 m_reservedInstancesIdHasBeenSet =
true;
138 m_reservedInstancesId = std::forward<ReservedInstancesIdT>(value);
140 template <
typename ReservedInstancesIdT = Aws::String>
153 template <
typename ReservedInstancesListingIdT = Aws::String>
155 m_reservedInstancesListingIdHasBeenSet =
true;
156 m_reservedInstancesListingId = std::forward<ReservedInstancesListingIdT>(value);
158 template <
typename ReservedInstancesListingIdT = Aws::String>
172 m_statusHasBeenSet =
true;
188 template <
typename StatusMessageT = Aws::String>
190 m_statusMessageHasBeenSet =
true;
191 m_statusMessage = std::forward<StatusMessageT>(value);
193 template <
typename StatusMessageT = Aws::String>
206 template <
typename TagsT = Aws::Vector<Tag>>
208 m_tagsHasBeenSet =
true;
209 m_tags = std::forward<TagsT>(value);
211 template <
typename TagsT = Aws::Vector<Tag>>
213 SetTags(std::forward<TagsT>(value));
216 template <
typename TagsT = Tag>
218 m_tagsHasBeenSet =
true;
219 m_tags.emplace_back(std::forward<TagsT>(value));
230 template <
typename UpdateDateT = Aws::Utils::DateTime>
232 m_updateDateHasBeenSet =
true;
233 m_updateDate = std::forward<UpdateDateT>(value);
235 template <
typename UpdateDateT = Aws::Utils::DateTime>
261 bool m_clientTokenHasBeenSet =
false;
262 bool m_createDateHasBeenSet =
false;
263 bool m_instanceCountsHasBeenSet =
false;
264 bool m_priceSchedulesHasBeenSet =
false;
265 bool m_reservedInstancesIdHasBeenSet =
false;
266 bool m_reservedInstancesListingIdHasBeenSet =
false;
267 bool m_statusHasBeenSet =
false;
268 bool m_statusMessageHasBeenSet =
false;
269 bool m_tagsHasBeenSet =
false;
270 bool m_updateDateHasBeenSet =
false;
ReservedInstancesListing & WithStatus(ListingStatus value)
bool StatusMessageHasBeenSet() const
const Aws::Utils::DateTime & GetCreateDate() const
void SetUpdateDate(UpdateDateT &&value)
const Aws::Vector< PriceSchedule > & GetPriceSchedules() const
ReservedInstancesListing & AddInstanceCounts(InstanceCountsT &&value)
bool PriceSchedulesHasBeenSet() const
ReservedInstancesListing & WithStatusMessage(StatusMessageT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool UpdateDateHasBeenSet() const
bool ReservedInstancesIdHasBeenSet() const
const Aws::Vector< InstanceCount > & GetInstanceCounts() const
ReservedInstancesListing & WithInstanceCounts(InstanceCountsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool ReservedInstancesListingIdHasBeenSet() const
ListingStatus GetStatus() const
const Aws::String & GetClientToken() const
bool ClientTokenHasBeenSet() const
ReservedInstancesListing & WithClientToken(ClientTokenT &&value)
AWS_EC2_API ReservedInstancesListing & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool CreateDateHasBeenSet() const
const Aws::String & GetReservedInstancesId() const
void SetInstanceCounts(InstanceCountsT &&value)
void SetPriceSchedules(PriceSchedulesT &&value)
void SetTags(TagsT &&value)
ReservedInstancesListing & WithCreateDate(CreateDateT &&value)
void SetStatusMessage(StatusMessageT &&value)
void SetClientToken(ClientTokenT &&value)
void SetCreateDate(CreateDateT &&value)
void SetStatus(ListingStatus value)
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetStatusMessage() const
bool StatusHasBeenSet() const
AWS_EC2_API ReservedInstancesListing(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetUpdateDate() const
ReservedInstancesListing & WithReservedInstancesId(ReservedInstancesIdT &&value)
ReservedInstancesListing & AddPriceSchedules(PriceSchedulesT &&value)
ReservedInstancesListing & WithPriceSchedules(PriceSchedulesT &&value)
bool TagsHasBeenSet() const
ReservedInstancesListing & AddTags(TagsT &&value)
ReservedInstancesListing & WithTags(TagsT &&value)
ReservedInstancesListing & WithReservedInstancesListingId(ReservedInstancesListingIdT &&value)
void SetReservedInstancesListingId(ReservedInstancesListingIdT &&value)
bool InstanceCountsHasBeenSet() const
ReservedInstancesListing & WithUpdateDate(UpdateDateT &&value)
AWS_EC2_API ReservedInstancesListing()=default
const Aws::String & GetReservedInstancesListingId() const
void SetReservedInstancesId(ReservedInstancesIdT &&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