AWS SDK for C++  0.14.3
AWS SDK for C++
ReservedInstancesListing.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
24 #include <aws/ec2/model/Tag.h>
25 
26 namespace Aws
27 {
28 namespace Utils
29 {
30 namespace Xml
31 {
32  class XmlNode;
33 } // namespace Xml
34 } // namespace Utils
35 namespace EC2
36 {
37 namespace Model
38 {
39 
44  {
45  public:
48  ReservedInstancesListing& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
49 
50  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
51  void OutputToStream(Aws::OStream& oStream, const char* location) const;
52 
56  inline const Aws::String& GetReservedInstancesListingId() const{ return m_reservedInstancesListingId; }
57 
61  inline void SetReservedInstancesListingId(const Aws::String& value) { m_reservedInstancesListingIdHasBeenSet = true; m_reservedInstancesListingId = value; }
62 
66  inline void SetReservedInstancesListingId(Aws::String&& value) { m_reservedInstancesListingIdHasBeenSet = true; m_reservedInstancesListingId = value; }
67 
71  inline void SetReservedInstancesListingId(const char* value) { m_reservedInstancesListingIdHasBeenSet = true; m_reservedInstancesListingId.assign(value); }
72 
76  inline ReservedInstancesListing& WithReservedInstancesListingId(const Aws::String& value) { SetReservedInstancesListingId(value); return *this;}
77 
81  inline ReservedInstancesListing& WithReservedInstancesListingId(Aws::String&& value) { SetReservedInstancesListingId(value); return *this;}
82 
86  inline ReservedInstancesListing& WithReservedInstancesListingId(const char* value) { SetReservedInstancesListingId(value); return *this;}
87 
91  inline const Aws::String& GetReservedInstancesId() const{ return m_reservedInstancesId; }
92 
96  inline void SetReservedInstancesId(const Aws::String& value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId = value; }
97 
101  inline void SetReservedInstancesId(Aws::String&& value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId = value; }
102 
106  inline void SetReservedInstancesId(const char* value) { m_reservedInstancesIdHasBeenSet = true; m_reservedInstancesId.assign(value); }
107 
111  inline ReservedInstancesListing& WithReservedInstancesId(const Aws::String& value) { SetReservedInstancesId(value); return *this;}
112 
116  inline ReservedInstancesListing& WithReservedInstancesId(Aws::String&& value) { SetReservedInstancesId(value); return *this;}
117 
121  inline ReservedInstancesListing& WithReservedInstancesId(const char* value) { SetReservedInstancesId(value); return *this;}
122 
126  inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
127 
131  inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
132 
136  inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = value; }
137 
141  inline ReservedInstancesListing& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
142 
146  inline ReservedInstancesListing& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(value); return *this;}
147 
151  inline const Aws::Utils::DateTime& GetUpdateDate() const{ return m_updateDate; }
152 
156  inline void SetUpdateDate(const Aws::Utils::DateTime& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
157 
161  inline void SetUpdateDate(Aws::Utils::DateTime&& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
162 
166  inline ReservedInstancesListing& WithUpdateDate(const Aws::Utils::DateTime& value) { SetUpdateDate(value); return *this;}
167 
171  inline ReservedInstancesListing& WithUpdateDate(Aws::Utils::DateTime&& value) { SetUpdateDate(value); return *this;}
172 
176  inline const ListingStatus& GetStatus() const{ return m_status; }
177 
181  inline void SetStatus(const ListingStatus& value) { m_statusHasBeenSet = true; m_status = value; }
182 
186  inline void SetStatus(ListingStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
187 
191  inline ReservedInstancesListing& WithStatus(const ListingStatus& value) { SetStatus(value); return *this;}
192 
196  inline ReservedInstancesListing& WithStatus(ListingStatus&& value) { SetStatus(value); return *this;}
197 
202  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
203 
208  inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
209 
214  inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
215 
220  inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
221 
226  inline ReservedInstancesListing& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
227 
232  inline ReservedInstancesListing& WithStatusMessage(Aws::String&& value) { SetStatusMessage(value); return *this;}
233 
238  inline ReservedInstancesListing& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
239 
243  inline const Aws::Vector<InstanceCount>& GetInstanceCounts() const{ return m_instanceCounts; }
244 
248  inline void SetInstanceCounts(const Aws::Vector<InstanceCount>& value) { m_instanceCountsHasBeenSet = true; m_instanceCounts = value; }
249 
253  inline void SetInstanceCounts(Aws::Vector<InstanceCount>&& value) { m_instanceCountsHasBeenSet = true; m_instanceCounts = value; }
254 
258  inline ReservedInstancesListing& WithInstanceCounts(const Aws::Vector<InstanceCount>& value) { SetInstanceCounts(value); return *this;}
259 
263  inline ReservedInstancesListing& WithInstanceCounts(Aws::Vector<InstanceCount>&& value) { SetInstanceCounts(value); return *this;}
264 
268  inline ReservedInstancesListing& AddInstanceCounts(const InstanceCount& value) { m_instanceCountsHasBeenSet = true; m_instanceCounts.push_back(value); return *this; }
269 
273  inline ReservedInstancesListing& AddInstanceCounts(InstanceCount&& value) { m_instanceCountsHasBeenSet = true; m_instanceCounts.push_back(value); return *this; }
274 
278  inline const Aws::Vector<PriceSchedule>& GetPriceSchedules() const{ return m_priceSchedules; }
279 
283  inline void SetPriceSchedules(const Aws::Vector<PriceSchedule>& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules = value; }
284 
288  inline void SetPriceSchedules(Aws::Vector<PriceSchedule>&& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules = value; }
289 
293  inline ReservedInstancesListing& WithPriceSchedules(const Aws::Vector<PriceSchedule>& value) { SetPriceSchedules(value); return *this;}
294 
298  inline ReservedInstancesListing& WithPriceSchedules(Aws::Vector<PriceSchedule>&& value) { SetPriceSchedules(value); return *this;}
299 
303  inline ReservedInstancesListing& AddPriceSchedules(const PriceSchedule& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules.push_back(value); return *this; }
304 
308  inline ReservedInstancesListing& AddPriceSchedules(PriceSchedule&& value) { m_priceSchedulesHasBeenSet = true; m_priceSchedules.push_back(value); return *this; }
309 
313  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
314 
318  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
319 
323  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
324 
328  inline ReservedInstancesListing& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
329 
333  inline ReservedInstancesListing& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
334 
338  inline ReservedInstancesListing& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
339 
343  inline ReservedInstancesListing& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
344 
351  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
352 
359  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
360 
367  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
368 
375  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
376 
383  inline ReservedInstancesListing& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
384 
391  inline ReservedInstancesListing& WithClientToken(Aws::String&& value) { SetClientToken(value); return *this;}
392 
399  inline ReservedInstancesListing& WithClientToken(const char* value) { SetClientToken(value); return *this;}
400 
401  private:
402  Aws::String m_reservedInstancesListingId;
403  bool m_reservedInstancesListingIdHasBeenSet;
404  Aws::String m_reservedInstancesId;
405  bool m_reservedInstancesIdHasBeenSet;
406  Aws::Utils::DateTime m_createDate;
407  bool m_createDateHasBeenSet;
408  Aws::Utils::DateTime m_updateDate;
409  bool m_updateDateHasBeenSet;
410  ListingStatus m_status;
411  bool m_statusHasBeenSet;
412  Aws::String m_statusMessage;
413  bool m_statusMessageHasBeenSet;
414  Aws::Vector<InstanceCount> m_instanceCounts;
415  bool m_instanceCountsHasBeenSet;
416  Aws::Vector<PriceSchedule> m_priceSchedules;
417  bool m_priceSchedulesHasBeenSet;
418  Aws::Vector<Tag> m_tags;
419  bool m_tagsHasBeenSet;
420  Aws::String m_clientToken;
421  bool m_clientTokenHasBeenSet;
422  };
423 
424 } // namespace Model
425 } // namespace EC2
426 } // namespace Aws
void SetUpdateDate(Aws::Utils::DateTime &&value)
ReservedInstancesListing & WithCreateDate(Aws::Utils::DateTime &&value)
ReservedInstancesListing & AddInstanceCounts(InstanceCount &&value)
ReservedInstancesListing & WithReservedInstancesId(const char *value)
ReservedInstancesListing & WithReservedInstancesId(const Aws::String &value)
ReservedInstancesListing & WithPriceSchedules(const Aws::Vector< PriceSchedule > &value)
ReservedInstancesListing & WithPriceSchedules(Aws::Vector< PriceSchedule > &&value)
const Aws::String & GetReservedInstancesId() const
void SetInstanceCounts(const Aws::Vector< InstanceCount > &value)
ReservedInstancesListing & WithInstanceCounts(const Aws::Vector< InstanceCount > &value)
ReservedInstancesListing & WithReservedInstancesListingId(Aws::String &&value)
void SetPriceSchedules(Aws::Vector< PriceSchedule > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< Tag > & GetTags() const
ReservedInstancesListing & WithReservedInstancesListingId(const char *value)
ReservedInstancesListing & WithInstanceCounts(Aws::Vector< InstanceCount > &&value)
const Aws::Utils::DateTime & GetCreateDate() const
ReservedInstancesListing & AddInstanceCounts(const InstanceCount &value)
ReservedInstancesListing & WithCreateDate(const Aws::Utils::DateTime &value)
ReservedInstancesListing & WithStatusMessage(const Aws::String &value)
ReservedInstancesListing & AddPriceSchedules(PriceSchedule &&value)
ReservedInstancesListing & WithClientToken(const char *value)
ReservedInstancesListing & WithUpdateDate(Aws::Utils::DateTime &&value)
ReservedInstancesListing & WithClientToken(const Aws::String &value)
void SetPriceSchedules(const Aws::Vector< PriceSchedule > &value)
ReservedInstancesListing & AddPriceSchedules(const PriceSchedule &value)
ReservedInstancesListing & WithStatus(const ListingStatus &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ReservedInstancesListing & WithStatus(ListingStatus &&value)
ReservedInstancesListing & WithReservedInstancesListingId(const Aws::String &value)
ReservedInstancesListing & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< InstanceCount > & GetInstanceCounts() const
void SetReservedInstancesId(const Aws::String &value)
ReservedInstancesListing & WithClientToken(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Utils::DateTime & GetUpdateDate() const
void SetCreateDate(const Aws::Utils::DateTime &value)
ReservedInstancesListing & WithUpdateDate(const Aws::Utils::DateTime &value)
ReservedInstancesListing & AddTags(Tag &&value)
ReservedInstancesListing & WithReservedInstancesId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetInstanceCounts(Aws::Vector< InstanceCount > &&value)
const Aws::Vector< PriceSchedule > & GetPriceSchedules() const
void SetReservedInstancesListingId(const Aws::String &value)
ReservedInstancesListing & WithStatusMessage(Aws::String &&value)
ReservedInstancesListing & WithTags(const Aws::Vector< Tag > &value)
ReservedInstancesListing & WithStatusMessage(const char *value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
const Aws::String & GetReservedInstancesListingId() const
void SetUpdateDate(const Aws::Utils::DateTime &value)
JSON (JavaScript Object Notation).
void SetCreateDate(Aws::Utils::DateTime &&value)
ReservedInstancesListing & AddTags(const Tag &value)