AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ReservedInstancesListing.h
1
6#pragma once
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>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Xml {
22class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2 {
26namespace Model {
27
34 public:
35 AWS_EC2_API ReservedInstancesListing() = default;
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
49 inline const Aws::String& GetClientToken() const { return m_clientToken; }
50 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
51 template <typename ClientTokenT = Aws::String>
52 void SetClientToken(ClientTokenT&& value) {
53 m_clientTokenHasBeenSet = true;
54 m_clientToken = std::forward<ClientTokenT>(value);
55 }
56 template <typename ClientTokenT = Aws::String>
58 SetClientToken(std::forward<ClientTokenT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
68 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
69 template <typename CreateDateT = Aws::Utils::DateTime>
70 void SetCreateDate(CreateDateT&& value) {
71 m_createDateHasBeenSet = true;
72 m_createDate = std::forward<CreateDateT>(value);
73 }
74 template <typename CreateDateT = Aws::Utils::DateTime>
76 SetCreateDate(std::forward<CreateDateT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Vector<InstanceCount>& GetInstanceCounts() const { return m_instanceCounts; }
86 inline bool InstanceCountsHasBeenSet() const { return m_instanceCountsHasBeenSet; }
87 template <typename InstanceCountsT = Aws::Vector<InstanceCount>>
88 void SetInstanceCounts(InstanceCountsT&& value) {
89 m_instanceCountsHasBeenSet = true;
90 m_instanceCounts = std::forward<InstanceCountsT>(value);
91 }
92 template <typename InstanceCountsT = Aws::Vector<InstanceCount>>
93 ReservedInstancesListing& WithInstanceCounts(InstanceCountsT&& value) {
94 SetInstanceCounts(std::forward<InstanceCountsT>(value));
95 return *this;
96 }
97 template <typename InstanceCountsT = InstanceCount>
98 ReservedInstancesListing& AddInstanceCounts(InstanceCountsT&& value) {
99 m_instanceCountsHasBeenSet = true;
100 m_instanceCounts.emplace_back(std::forward<InstanceCountsT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Vector<PriceSchedule>& GetPriceSchedules() const { return m_priceSchedules; }
110 inline bool PriceSchedulesHasBeenSet() const { return m_priceSchedulesHasBeenSet; }
111 template <typename PriceSchedulesT = Aws::Vector<PriceSchedule>>
112 void SetPriceSchedules(PriceSchedulesT&& value) {
113 m_priceSchedulesHasBeenSet = true;
114 m_priceSchedules = std::forward<PriceSchedulesT>(value);
115 }
116 template <typename PriceSchedulesT = Aws::Vector<PriceSchedule>>
118 SetPriceSchedules(std::forward<PriceSchedulesT>(value));
119 return *this;
120 }
121 template <typename PriceSchedulesT = PriceSchedule>
122 ReservedInstancesListing& AddPriceSchedules(PriceSchedulesT&& value) {
123 m_priceSchedulesHasBeenSet = true;
124 m_priceSchedules.emplace_back(std::forward<PriceSchedulesT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetReservedInstancesId() const { return m_reservedInstancesId; }
134 inline bool ReservedInstancesIdHasBeenSet() const { return m_reservedInstancesIdHasBeenSet; }
135 template <typename ReservedInstancesIdT = Aws::String>
136 void SetReservedInstancesId(ReservedInstancesIdT&& value) {
137 m_reservedInstancesIdHasBeenSet = true;
138 m_reservedInstancesId = std::forward<ReservedInstancesIdT>(value);
139 }
140 template <typename ReservedInstancesIdT = Aws::String>
141 ReservedInstancesListing& WithReservedInstancesId(ReservedInstancesIdT&& value) {
142 SetReservedInstancesId(std::forward<ReservedInstancesIdT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetReservedInstancesListingId() const { return m_reservedInstancesListingId; }
152 inline bool ReservedInstancesListingIdHasBeenSet() const { return m_reservedInstancesListingIdHasBeenSet; }
153 template <typename ReservedInstancesListingIdT = Aws::String>
154 void SetReservedInstancesListingId(ReservedInstancesListingIdT&& value) {
155 m_reservedInstancesListingIdHasBeenSet = true;
156 m_reservedInstancesListingId = std::forward<ReservedInstancesListingIdT>(value);
157 }
158 template <typename ReservedInstancesListingIdT = Aws::String>
159 ReservedInstancesListing& WithReservedInstancesListingId(ReservedInstancesListingIdT&& value) {
160 SetReservedInstancesListingId(std::forward<ReservedInstancesListingIdT>(value));
161 return *this;
162 }
164
166
169 inline ListingStatus GetStatus() const { return m_status; }
170 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
171 inline void SetStatus(ListingStatus value) {
172 m_statusHasBeenSet = true;
173 m_status = value;
174 }
176 SetStatus(value);
177 return *this;
178 }
180
182
186 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
187 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
188 template <typename StatusMessageT = Aws::String>
189 void SetStatusMessage(StatusMessageT&& value) {
190 m_statusMessageHasBeenSet = true;
191 m_statusMessage = std::forward<StatusMessageT>(value);
192 }
193 template <typename StatusMessageT = Aws::String>
195 SetStatusMessage(std::forward<StatusMessageT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
205 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
206 template <typename TagsT = Aws::Vector<Tag>>
207 void SetTags(TagsT&& value) {
208 m_tagsHasBeenSet = true;
209 m_tags = std::forward<TagsT>(value);
210 }
211 template <typename TagsT = Aws::Vector<Tag>>
213 SetTags(std::forward<TagsT>(value));
214 return *this;
215 }
216 template <typename TagsT = Tag>
218 m_tagsHasBeenSet = true;
219 m_tags.emplace_back(std::forward<TagsT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::Utils::DateTime& GetUpdateDate() const { return m_updateDate; }
229 inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
230 template <typename UpdateDateT = Aws::Utils::DateTime>
231 void SetUpdateDate(UpdateDateT&& value) {
232 m_updateDateHasBeenSet = true;
233 m_updateDate = std::forward<UpdateDateT>(value);
234 }
235 template <typename UpdateDateT = Aws::Utils::DateTime>
237 SetUpdateDate(std::forward<UpdateDateT>(value));
238 return *this;
239 }
241 private:
242 Aws::String m_clientToken;
243
244 Aws::Utils::DateTime m_createDate{};
245
246 Aws::Vector<InstanceCount> m_instanceCounts;
247
248 Aws::Vector<PriceSchedule> m_priceSchedules;
249
250 Aws::String m_reservedInstancesId;
251
252 Aws::String m_reservedInstancesListingId;
253
255
256 Aws::String m_statusMessage;
257
258 Aws::Vector<Tag> m_tags;
259
260 Aws::Utils::DateTime m_updateDate{};
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;
271};
272
273} // namespace Model
274} // namespace EC2
275} // namespace Aws
ReservedInstancesListing & WithStatus(ListingStatus value)
const Aws::Utils::DateTime & GetCreateDate() const
const Aws::Vector< PriceSchedule > & GetPriceSchedules() const
ReservedInstancesListing & AddInstanceCounts(InstanceCountsT &&value)
ReservedInstancesListing & WithStatusMessage(StatusMessageT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) 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
ReservedInstancesListing & WithClientToken(ClientTokenT &&value)
AWS_EC2_API ReservedInstancesListing & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedInstancesListing & WithCreateDate(CreateDateT &&value)
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)
ReservedInstancesListing & AddTags(TagsT &&value)
ReservedInstancesListing & WithTags(TagsT &&value)
ReservedInstancesListing & WithReservedInstancesListingId(ReservedInstancesListingIdT &&value)
void SetReservedInstancesListingId(ReservedInstancesListingIdT &&value)
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