AWS SDK for C++  1.9.66
AWS SDK for C++
DescribeReservedInstancesResponse.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<ReservedInstances>& GetReservedInstances() const{ return m_reservedInstances; }
47 
51  inline void SetReservedInstances(const Aws::Vector<ReservedInstances>& value) { m_reservedInstances = value; }
52 
56  inline void SetReservedInstances(Aws::Vector<ReservedInstances>&& value) { m_reservedInstances = std::move(value); }
57 
61  inline DescribeReservedInstancesResponse& WithReservedInstances(const Aws::Vector<ReservedInstances>& value) { SetReservedInstances(value); return *this;}
62 
66  inline DescribeReservedInstancesResponse& WithReservedInstances(Aws::Vector<ReservedInstances>&& value) { SetReservedInstances(std::move(value)); return *this;}
67 
71  inline DescribeReservedInstancesResponse& AddReservedInstances(const ReservedInstances& value) { m_reservedInstances.push_back(value); return *this; }
72 
76  inline DescribeReservedInstancesResponse& AddReservedInstances(ReservedInstances&& value) { m_reservedInstances.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 DescribeReservedInstancesResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
90 
91 
92  inline DescribeReservedInstancesResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
93 
94  private:
95 
96  Aws::Vector<ReservedInstances> m_reservedInstances;
97 
98  ResponseMetadata m_responseMetadata;
99  };
100 
101 } // namespace Model
102 } // namespace EC2
103 } // namespace Aws
Aws::EC2::Model::DescribeReservedInstancesResponse::SetReservedInstances
void SetReservedInstances(const Aws::Vector< ReservedInstances > &value)
Definition: DescribeReservedInstancesResponse.h:51
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeReservedInstancesResponse::SetReservedInstances
void SetReservedInstances(Aws::Vector< ReservedInstances > &&value)
Definition: DescribeReservedInstancesResponse.h:56
Aws::EC2::Model::DescribeReservedInstancesResponse::WithReservedInstances
DescribeReservedInstancesResponse & WithReservedInstances(Aws::Vector< ReservedInstances > &&value)
Definition: DescribeReservedInstancesResponse.h:66
Aws::EC2::Model::DescribeReservedInstancesResponse::DescribeReservedInstancesResponse
DescribeReservedInstancesResponse()
Aws::EC2::Model::DescribeReservedInstancesResponse::WithResponseMetadata
DescribeReservedInstancesResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeReservedInstancesResponse.h:89
ReservedInstances.h
Aws::EC2::Model::DescribeReservedInstancesResponse::GetReservedInstances
const Aws::Vector< ReservedInstances > & GetReservedInstances() const
Definition: DescribeReservedInstancesResponse.h:46
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeReservedInstancesResponse::WithReservedInstances
DescribeReservedInstancesResponse & WithReservedInstances(const Aws::Vector< ReservedInstances > &value)
Definition: DescribeReservedInstancesResponse.h:61
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeReservedInstancesResponse::WithResponseMetadata
DescribeReservedInstancesResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeReservedInstancesResponse.h:92
Aws::EC2::Model::ReservedInstances
Definition: ReservedInstances.h:44
AWSVector.h
Aws::EC2::Model::DescribeReservedInstancesResponse::AddReservedInstances
DescribeReservedInstancesResponse & AddReservedInstances(ReservedInstances &&value)
Definition: DescribeReservedInstancesResponse.h:76
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::DescribeReservedInstancesResponse::DescribeReservedInstancesResponse
DescribeReservedInstancesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeReservedInstancesResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeReservedInstancesResponse.h:86
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeReservedInstancesResponse::AddReservedInstances
DescribeReservedInstancesResponse & AddReservedInstances(const ReservedInstances &value)
Definition: DescribeReservedInstancesResponse.h:71
Aws::EC2::Model::DescribeReservedInstancesResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeReservedInstancesResponse.h:83
Aws::EC2::Model::DescribeReservedInstancesResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeReservedInstancesResponse.h:80
EC2_EXPORTS.h
Aws::EC2::Model::DescribeReservedInstancesResponse
Definition: DescribeReservedInstancesResponse.h:36
Aws::EC2::Model::DescribeReservedInstancesResponse::operator=
DescribeReservedInstancesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)