AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
58 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
59 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
60 inline ReservedInstancesListing& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
61 inline ReservedInstancesListing& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
62 inline ReservedInstancesListing& WithClientToken(const char* value) { SetClientToken(value); return *this;}
64
66
69 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
70 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
71 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
72 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
73 inline ReservedInstancesListing& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
74 inline ReservedInstancesListing& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
76
78
81 inline const Aws::Vector<InstanceCount>& GetInstanceCounts() const{ return m_instanceCounts; }
82 inline bool InstanceCountsHasBeenSet() const { return m_instanceCountsHasBeenSet; }
83 inline void SetInstanceCounts(const Aws::Vector<InstanceCount>& value) { m_instanceCountsHasBeenSet = true; m_instanceCounts = value; }
84 inline void SetInstanceCounts(Aws::Vector<InstanceCount>&& value) { m_instanceCountsHasBeenSet = true; m_instanceCounts = std::move(value); }
87 inline ReservedInstancesListing& AddInstanceCounts(const InstanceCount& value) { m_instanceCountsHasBeenSet = true; m_instanceCounts.push_back(value); return *this; }
88 inline ReservedInstancesListing& AddInstanceCounts(InstanceCount&& value) { m_instanceCountsHasBeenSet = true; m_instanceCounts.push_back(std::move(value)); return *this; }
90
92
95 inline const Aws::Vector<PriceSchedule>& GetPriceSchedules() const{ return m_priceSchedules; }
96 inline bool PriceSchedulesHasBeenSet() const { return m_priceSchedulesHasBeenSet; }
97 inline void SetPriceSchedules(const Aws::Vector<PriceSchedule>& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules = value; }
98 inline void SetPriceSchedules(Aws::Vector<PriceSchedule>&& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules = std::move(value); }
101 inline ReservedInstancesListing& AddPriceSchedules(const PriceSchedule& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules.push_back(value); return *this; }
102 inline ReservedInstancesListing& AddPriceSchedules(PriceSchedule&& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules.push_back(std::move(value)); return *this; }
104
106
109 inline const Aws::String& GetReservedInstancesId() const{ return m_reservedInstancesId; }
110 inline bool ReservedInstancesIdHasBeenSet() const { return m_reservedInstancesIdHasBeenSet; }
111 inline void SetReservedInstancesId(const Aws::String& value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId = value; }
112 inline void SetReservedInstancesId(Aws::String&& value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId = std::move(value); }
113 inline void SetReservedInstancesId(const char* value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId.assign(value); }
115 inline ReservedInstancesListing& WithReservedInstancesId(Aws::String&& value) { SetReservedInstancesId(std::move(value)); return *this;}
116 inline ReservedInstancesListing& WithReservedInstancesId(const char* value) { SetReservedInstancesId(value); return *this;}
118
120
123 inline const Aws::String& GetReservedInstancesListingId() const{ return m_reservedInstancesListingId; }
124 inline bool ReservedInstancesListingIdHasBeenSet() const { return m_reservedInstancesListingIdHasBeenSet; }
125 inline void SetReservedInstancesListingId(const Aws::String& value) { m_reservedInstancesListingIdHasBeenSet = true; m_reservedInstancesListingId = value; }
126 inline void SetReservedInstancesListingId(Aws::String&& value) { m_reservedInstancesListingIdHasBeenSet = true; m_reservedInstancesListingId = std::move(value); }
127 inline void SetReservedInstancesListingId(const char* value) { m_reservedInstancesListingIdHasBeenSet = true; m_reservedInstancesListingId.assign(value); }
132
134
137 inline const ListingStatus& GetStatus() const{ return m_status; }
138 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
139 inline void SetStatus(const ListingStatus& value) { m_statusHasBeenSet = true; m_status = value; }
140 inline void SetStatus(ListingStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
141 inline ReservedInstancesListing& WithStatus(const ListingStatus& value) { SetStatus(value); return *this;}
142 inline ReservedInstancesListing& WithStatus(ListingStatus&& value) { SetStatus(std::move(value)); return *this;}
144
146
150 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
151 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
152 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
153 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
154 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
155 inline ReservedInstancesListing& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
156 inline ReservedInstancesListing& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
157 inline ReservedInstancesListing& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
159
161
164 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
165 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
166 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
167 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
168 inline ReservedInstancesListing& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
169 inline ReservedInstancesListing& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
170 inline ReservedInstancesListing& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
171 inline ReservedInstancesListing& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
173
175
178 inline const Aws::Utils::DateTime& GetUpdateDate() const{ return m_updateDate; }
179 inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
180 inline void SetUpdateDate(const Aws::Utils::DateTime& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
181 inline void SetUpdateDate(Aws::Utils::DateTime&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::move(value); }
182 inline ReservedInstancesListing& WithUpdateDate(const Aws::Utils::DateTime& value) { SetUpdateDate(value); return *this;}
183 inline ReservedInstancesListing& WithUpdateDate(Aws::Utils::DateTime&& value) { SetUpdateDate(std::move(value)); return *this;}
185 private:
186
187 Aws::String m_clientToken;
188 bool m_clientTokenHasBeenSet = false;
189
190 Aws::Utils::DateTime m_createDate;
191 bool m_createDateHasBeenSet = false;
192
193 Aws::Vector<InstanceCount> m_instanceCounts;
194 bool m_instanceCountsHasBeenSet = false;
195
196 Aws::Vector<PriceSchedule> m_priceSchedules;
197 bool m_priceSchedulesHasBeenSet = false;
198
199 Aws::String m_reservedInstancesId;
200 bool m_reservedInstancesIdHasBeenSet = false;
201
202 Aws::String m_reservedInstancesListingId;
203 bool m_reservedInstancesListingIdHasBeenSet = false;
204
205 ListingStatus m_status;
206 bool m_statusHasBeenSet = false;
207
208 Aws::String m_statusMessage;
209 bool m_statusMessageHasBeenSet = false;
210
211 Aws::Vector<Tag> m_tags;
212 bool m_tagsHasBeenSet = false;
213
214 Aws::Utils::DateTime m_updateDate;
215 bool m_updateDateHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace EC2
220} // namespace Aws
ReservedInstancesListing & WithStatus(ListingStatus &&value)
ReservedInstancesListing & AddPriceSchedules(const PriceSchedule &value)
ReservedInstancesListing & WithStatusMessage(const Aws::String &value)
ReservedInstancesListing & AddInstanceCounts(const InstanceCount &value)
const Aws::Utils::DateTime & GetCreateDate() const
const Aws::Vector< PriceSchedule > & GetPriceSchedules() const
ReservedInstancesListing & WithUpdateDate(const Aws::Utils::DateTime &value)
ReservedInstancesListing & WithClientToken(Aws::String &&value)
void SetInstanceCounts(Aws::Vector< InstanceCount > &&value)
ReservedInstancesListing & WithStatusMessage(const char *value)
ReservedInstancesListing & WithInstanceCounts(Aws::Vector< InstanceCount > &&value)
void SetPriceSchedules(Aws::Vector< PriceSchedule > &&value)
ReservedInstancesListing & AddTags(Tag &&value)
ReservedInstancesListing & AddPriceSchedules(PriceSchedule &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetCreateDate(const Aws::Utils::DateTime &value)
void SetTags(const Aws::Vector< Tag > &value)
ReservedInstancesListing & WithPriceSchedules(const Aws::Vector< PriceSchedule > &value)
ReservedInstancesListing & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< InstanceCount > & GetInstanceCounts() const
void SetInstanceCounts(const Aws::Vector< InstanceCount > &value)
void SetUpdateDate(const Aws::Utils::DateTime &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ReservedInstancesListing & WithReservedInstancesId(Aws::String &&value)
ReservedInstancesListing & WithPriceSchedules(Aws::Vector< PriceSchedule > &&value)
AWS_EC2_API ReservedInstancesListing & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetUpdateDate(Aws::Utils::DateTime &&value)
ReservedInstancesListing & AddTags(const Tag &value)
ReservedInstancesListing & WithReservedInstancesId(const char *value)
ReservedInstancesListing & WithCreateDate(const Aws::Utils::DateTime &value)
ReservedInstancesListing & WithCreateDate(Aws::Utils::DateTime &&value)
AWS_EC2_API ReservedInstancesListing(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetUpdateDate() const
void SetCreateDate(Aws::Utils::DateTime &&value)
ReservedInstancesListing & WithUpdateDate(Aws::Utils::DateTime &&value)
ReservedInstancesListing & WithClientToken(const Aws::String &value)
void SetPriceSchedules(const Aws::Vector< PriceSchedule > &value)
ReservedInstancesListing & WithStatusMessage(Aws::String &&value)
ReservedInstancesListing & WithReservedInstancesId(const Aws::String &value)
ReservedInstancesListing & WithTags(const Aws::Vector< Tag > &value)
ReservedInstancesListing & WithInstanceCounts(const Aws::Vector< InstanceCount > &value)
void SetReservedInstancesListingId(const Aws::String &value)
ReservedInstancesListing & WithReservedInstancesListingId(Aws::String &&value)
ReservedInstancesListing & AddInstanceCounts(InstanceCount &&value)
const Aws::String & GetReservedInstancesListingId() const
ReservedInstancesListing & WithReservedInstancesListingId(const Aws::String &value)
ReservedInstancesListing & WithClientToken(const char *value)
void SetReservedInstancesId(const Aws::String &value)
ReservedInstancesListing & WithStatus(const ListingStatus &value)
ReservedInstancesListing & WithReservedInstancesListingId(const char *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