AWS SDK for C++  1.9.126
AWS SDK for C++
DescribeReservedInstancesListingsResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlDocument;
23 } // namespace Xml
24 } // namespace Utils
25 namespace EC2
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
46  inline const Aws::Vector<ReservedInstancesListing>& GetReservedInstancesListings() const{ return m_reservedInstancesListings; }
47 
51  inline void SetReservedInstancesListings(const Aws::Vector<ReservedInstancesListing>& value) { m_reservedInstancesListings = value; }
52 
56  inline void SetReservedInstancesListings(Aws::Vector<ReservedInstancesListing>&& value) { m_reservedInstancesListings = std::move(value); }
57 
61  inline DescribeReservedInstancesListingsResponse& WithReservedInstancesListings(const Aws::Vector<ReservedInstancesListing>& value) { SetReservedInstancesListings(value); return *this;}
62 
66  inline DescribeReservedInstancesListingsResponse& WithReservedInstancesListings(Aws::Vector<ReservedInstancesListing>&& value) { SetReservedInstancesListings(std::move(value)); return *this;}
67 
71  inline DescribeReservedInstancesListingsResponse& AddReservedInstancesListings(const ReservedInstancesListing& value) { m_reservedInstancesListings.push_back(value); return *this; }
72 
76  inline DescribeReservedInstancesListingsResponse& AddReservedInstancesListings(ReservedInstancesListing&& value) { m_reservedInstancesListings.push_back(std::move(value)); return *this; }
77 
78 
79 
80  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
81 
82 
83  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
84 
85 
86  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
87 
88 
89  inline DescribeReservedInstancesListingsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
90 
91 
92  inline DescribeReservedInstancesListingsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
93 
94  private:
95 
96  Aws::Vector<ReservedInstancesListing> m_reservedInstancesListings;
97 
98  ResponseMetadata m_responseMetadata;
99  };
100 
101 } // namespace Model
102 } // namespace EC2
103 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeReservedInstancesListingsResponse
Definition: DescribeReservedInstancesListingsResponse.h:36
Aws::EC2::Model::DescribeReservedInstancesListingsResponse::operator=
DescribeReservedInstancesListingsResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeReservedInstancesListingsResponse::DescribeReservedInstancesListingsResponse
DescribeReservedInstancesListingsResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeReservedInstancesListingsResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeReservedInstancesListingsResponse.h:80
Aws::EC2::Model::DescribeReservedInstancesListingsResponse::SetReservedInstancesListings
void SetReservedInstancesListings(const Aws::Vector< ReservedInstancesListing > &value)
Definition: DescribeReservedInstancesListingsResponse.h:51
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::DescribeReservedInstancesListingsResponse::SetReservedInstancesListings
void SetReservedInstancesListings(Aws::Vector< ReservedInstancesListing > &&value)
Definition: DescribeReservedInstancesListingsResponse.h:56
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::DescribeReservedInstancesListingsResponse::WithResponseMetadata
DescribeReservedInstancesListingsResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeReservedInstancesListingsResponse.h:92
Aws::EC2::Model::DescribeReservedInstancesListingsResponse::AddReservedInstancesListings
DescribeReservedInstancesListingsResponse & AddReservedInstancesListings(const ReservedInstancesListing &value)
Definition: DescribeReservedInstancesListingsResponse.h:71
Aws::EC2::Model::DescribeReservedInstancesListingsResponse::DescribeReservedInstancesListingsResponse
DescribeReservedInstancesListingsResponse()
Aws::EC2::Model::DescribeReservedInstancesListingsResponse::WithReservedInstancesListings
DescribeReservedInstancesListingsResponse & WithReservedInstancesListings(Aws::Vector< ReservedInstancesListing > &&value)
Definition: DescribeReservedInstancesListingsResponse.h:66
Aws::EC2::Model::DescribeReservedInstancesListingsResponse::WithResponseMetadata
DescribeReservedInstancesListingsResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeReservedInstancesListingsResponse.h:89
ReservedInstancesListing.h
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::ReservedInstancesListing
Definition: ReservedInstancesListing.h:38
Aws::EC2::Model::DescribeReservedInstancesListingsResponse::AddReservedInstancesListings
DescribeReservedInstancesListingsResponse & AddReservedInstancesListings(ReservedInstancesListing &&value)
Definition: DescribeReservedInstancesListingsResponse.h:76
Aws::EC2::Model::DescribeReservedInstancesListingsResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeReservedInstancesListingsResponse.h:83
Aws::EC2::Model::DescribeReservedInstancesListingsResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeReservedInstancesListingsResponse.h:86
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeReservedInstancesListingsResponse::GetReservedInstancesListings
const Aws::Vector< ReservedInstancesListing > & GetReservedInstancesListings() const
Definition: DescribeReservedInstancesListingsResponse.h:46
Aws::EC2::Model::DescribeReservedInstancesListingsResponse::WithReservedInstancesListings
DescribeReservedInstancesListingsResponse & WithReservedInstancesListings(const Aws::Vector< ReservedInstancesListing > &value)
Definition: DescribeReservedInstancesListingsResponse.h:61
EC2_EXPORTS.h