AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ReservedInstancesListing.h
1
6#pragma once
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>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace EC2
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_EC2_API ReservedInstancesListing() = default;
43
44 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
55 inline const Aws::String& GetClientToken() const { return m_clientToken; }
56 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
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>
60 ReservedInstancesListing& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
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) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
71 template<typename CreateDateT = Aws::Utils::DateTime>
72 ReservedInstancesListing& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
74
76
79 inline const Aws::Vector<InstanceCount>& GetInstanceCounts() const { return m_instanceCounts; }
80 inline bool InstanceCountsHasBeenSet() const { return m_instanceCountsHasBeenSet; }
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>>
84 ReservedInstancesListing& WithInstanceCounts(InstanceCountsT&& value) { SetInstanceCounts(std::forward<InstanceCountsT>(value)); return *this;}
85 template<typename InstanceCountsT = InstanceCount>
86 ReservedInstancesListing& AddInstanceCounts(InstanceCountsT&& value) { m_instanceCountsHasBeenSet = true; m_instanceCounts.emplace_back(std::forward<InstanceCountsT>(value)); return *this; }
88
90
93 inline const Aws::Vector<PriceSchedule>& GetPriceSchedules() const { return m_priceSchedules; }
94 inline bool PriceSchedulesHasBeenSet() const { return m_priceSchedulesHasBeenSet; }
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>>
98 ReservedInstancesListing& WithPriceSchedules(PriceSchedulesT&& value) { SetPriceSchedules(std::forward<PriceSchedulesT>(value)); return *this;}
99 template<typename PriceSchedulesT = PriceSchedule>
100 ReservedInstancesListing& AddPriceSchedules(PriceSchedulesT&& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules.emplace_back(std::forward<PriceSchedulesT>(value)); return *this; }
102
104
107 inline const Aws::String& GetReservedInstancesId() const { return m_reservedInstancesId; }
108 inline bool ReservedInstancesIdHasBeenSet() const { return m_reservedInstancesIdHasBeenSet; }
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>
112 ReservedInstancesListing& WithReservedInstancesId(ReservedInstancesIdT&& value) { SetReservedInstancesId(std::forward<ReservedInstancesIdT>(value)); return *this;}
114
116
119 inline const Aws::String& GetReservedInstancesListingId() const { return m_reservedInstancesListingId; }
120 inline bool ReservedInstancesListingIdHasBeenSet() const { return m_reservedInstancesListingIdHasBeenSet; }
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>
124 ReservedInstancesListing& WithReservedInstancesListingId(ReservedInstancesListingIdT&& value) { SetReservedInstancesListingId(std::forward<ReservedInstancesListingIdT>(value)); return *this;}
126
128
131 inline ListingStatus GetStatus() const { return m_status; }
132 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
133 inline void SetStatus(ListingStatus value) { m_statusHasBeenSet = true; m_status = value; }
134 inline ReservedInstancesListing& WithStatus(ListingStatus value) { SetStatus(value); return *this;}
136
138
142 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
143 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
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>
147 ReservedInstancesListing& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
149
151
154 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
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>>
159 ReservedInstancesListing& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
160 template<typename TagsT = Tag>
161 ReservedInstancesListing& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
163
165
168 inline const Aws::Utils::DateTime& GetUpdateDate() const { return m_updateDate; }
169 inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
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>
173 ReservedInstancesListing& WithUpdateDate(UpdateDateT&& value) { SetUpdateDate(std::forward<UpdateDateT>(value)); return *this;}
175 private:
176
177 Aws::String m_clientToken;
178 bool m_clientTokenHasBeenSet = false;
179
180 Aws::Utils::DateTime m_createDate{};
181 bool m_createDateHasBeenSet = false;
182
183 Aws::Vector<InstanceCount> m_instanceCounts;
184 bool m_instanceCountsHasBeenSet = false;
185
186 Aws::Vector<PriceSchedule> m_priceSchedules;
187 bool m_priceSchedulesHasBeenSet = false;
188
189 Aws::String m_reservedInstancesId;
190 bool m_reservedInstancesIdHasBeenSet = false;
191
192 Aws::String m_reservedInstancesListingId;
193 bool m_reservedInstancesListingIdHasBeenSet = false;
194
196 bool m_statusHasBeenSet = false;
197
198 Aws::String m_statusMessage;
199 bool m_statusMessageHasBeenSet = false;
200
201 Aws::Vector<Tag> m_tags;
202 bool m_tagsHasBeenSet = false;
203
204 Aws::Utils::DateTime m_updateDate{};
205 bool m_updateDateHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace EC2
210} // 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