7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/ListingStatus.h>
13#include <aws/ec2/model/InstanceCount.h>
14#include <aws/ec2/model/PriceSchedule.h>
15#include <aws/ec2/model/Tag.h>
57 template<
typename ClientTokenT = Aws::String>
58 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
59 template<
typename ClientTokenT = Aws::String>
69 template<
typename CreateDateT = Aws::Utils::DateTime>
70 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet =
true; m_createDate = std::forward<CreateDateT>(value); }
71 template<
typename CreateDateT = Aws::Utils::DateTime>
81 template<
typename InstanceCountsT = Aws::Vector<InstanceCount>>
82 void SetInstanceCounts(InstanceCountsT&& value) { m_instanceCountsHasBeenSet =
true; m_instanceCounts = std::forward<InstanceCountsT>(value); }
83 template<
typename InstanceCountsT = Aws::Vector<InstanceCount>>
85 template<
typename InstanceCountsT = InstanceCount>
95 template<
typename PriceSchedulesT = Aws::Vector<PriceSchedule>>
96 void SetPriceSchedules(PriceSchedulesT&& value) { m_priceSchedulesHasBeenSet =
true; m_priceSchedules = std::forward<PriceSchedulesT>(value); }
97 template<
typename PriceSchedulesT = Aws::Vector<PriceSchedule>>
99 template<
typename PriceSchedulesT = PriceSchedule>
109 template<
typename ReservedInstancesIdT = Aws::String>
110 void SetReservedInstancesId(ReservedInstancesIdT&& value) { m_reservedInstancesIdHasBeenSet =
true; m_reservedInstancesId = std::forward<ReservedInstancesIdT>(value); }
111 template<
typename ReservedInstancesIdT = Aws::String>
121 template<
typename ReservedInstancesListingIdT = Aws::String>
122 void SetReservedInstancesListingId(ReservedInstancesListingIdT&& value) { m_reservedInstancesListingIdHasBeenSet =
true; m_reservedInstancesListingId = std::forward<ReservedInstancesListingIdT>(value); }
123 template<
typename ReservedInstancesListingIdT = Aws::String>
144 template<
typename StatusMessageT = Aws::String>
145 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet =
true; m_statusMessage = std::forward<StatusMessageT>(value); }
146 template<
typename StatusMessageT = Aws::String>
156 template<
typename TagsT = Aws::Vector<Tag>>
157 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
158 template<
typename TagsT = Aws::Vector<Tag>>
160 template<
typename TagsT = Tag>
170 template<
typename UpdateDateT = Aws::Utils::DateTime>
171 void SetUpdateDate(UpdateDateT&& value) { m_updateDateHasBeenSet =
true; m_updateDate = std::forward<UpdateDateT>(value); }
172 template<
typename UpdateDateT = Aws::Utils::DateTime>
178 bool m_clientTokenHasBeenSet =
false;
181 bool m_createDateHasBeenSet =
false;
184 bool m_instanceCountsHasBeenSet =
false;
187 bool m_priceSchedulesHasBeenSet =
false;
190 bool m_reservedInstancesIdHasBeenSet =
false;
193 bool m_reservedInstancesListingIdHasBeenSet =
false;
196 bool m_statusHasBeenSet =
false;
199 bool m_statusMessageHasBeenSet =
false;
202 bool m_tagsHasBeenSet =
false;
205 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