AWS SDK for C++  1.9.75
AWS SDK for C++
DescribeReservedInstancesOfferingsResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
37  {
38  public:
42 
43 
47  inline const Aws::Vector<ReservedInstancesOffering>& GetReservedInstancesOfferings() const{ return m_reservedInstancesOfferings; }
48 
52  inline void SetReservedInstancesOfferings(const Aws::Vector<ReservedInstancesOffering>& value) { m_reservedInstancesOfferings = value; }
53 
57  inline void SetReservedInstancesOfferings(Aws::Vector<ReservedInstancesOffering>&& value) { m_reservedInstancesOfferings = std::move(value); }
58 
62  inline DescribeReservedInstancesOfferingsResponse& WithReservedInstancesOfferings(const Aws::Vector<ReservedInstancesOffering>& value) { SetReservedInstancesOfferings(value); return *this;}
63 
67  inline DescribeReservedInstancesOfferingsResponse& WithReservedInstancesOfferings(Aws::Vector<ReservedInstancesOffering>&& value) { SetReservedInstancesOfferings(std::move(value)); return *this;}
68 
72  inline DescribeReservedInstancesOfferingsResponse& AddReservedInstancesOfferings(const ReservedInstancesOffering& value) { m_reservedInstancesOfferings.push_back(value); return *this; }
73 
77  inline DescribeReservedInstancesOfferingsResponse& AddReservedInstancesOfferings(ReservedInstancesOffering&& value) { m_reservedInstancesOfferings.push_back(std::move(value)); return *this; }
78 
79 
84  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
90  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
91 
96  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
97 
102  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
103 
108  inline DescribeReservedInstancesOfferingsResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
109 
114  inline DescribeReservedInstancesOfferingsResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
115 
120  inline DescribeReservedInstancesOfferingsResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122 
123 
124  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
125 
126 
127  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
128 
129 
130  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
131 
132 
133  inline DescribeReservedInstancesOfferingsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
134 
135 
136  inline DescribeReservedInstancesOfferingsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
137 
138  private:
139 
140  Aws::Vector<ReservedInstancesOffering> m_reservedInstancesOfferings;
141 
142  Aws::String m_nextToken;
143 
144  ResponseMetadata m_responseMetadata;
145  };
146 
147 } // namespace Model
148 } // namespace EC2
149 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::DescribeReservedInstancesOfferingsResponse
DescribeReservedInstancesOfferingsResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeReservedInstancesOfferingsResponse.h:96
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::operator=
DescribeReservedInstancesOfferingsResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeReservedInstancesOfferingsResponse.h:90
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::WithResponseMetadata
DescribeReservedInstancesOfferingsResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeReservedInstancesOfferingsResponse.h:136
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::WithReservedInstancesOfferings
DescribeReservedInstancesOfferingsResponse & WithReservedInstancesOfferings(const Aws::Vector< ReservedInstancesOffering > &value)
Definition: DescribeReservedInstancesOfferingsResponse.h:62
ResponseMetadata.h
ReservedInstancesOffering.h
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::SetReservedInstancesOfferings
void SetReservedInstancesOfferings(Aws::Vector< ReservedInstancesOffering > &&value)
Definition: DescribeReservedInstancesOfferingsResponse.h:57
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::WithNextToken
DescribeReservedInstancesOfferingsResponse & WithNextToken(const Aws::String &value)
Definition: DescribeReservedInstancesOfferingsResponse.h:108
AWSVector.h
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse
Definition: DescribeReservedInstancesOfferingsResponse.h:37
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeReservedInstancesOfferingsResponse.h:84
Aws::EC2::Model::ReservedInstancesOffering
Definition: ReservedInstancesOffering.h:42
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::SetReservedInstancesOfferings
void SetReservedInstancesOfferings(const Aws::Vector< ReservedInstancesOffering > &value)
Definition: DescribeReservedInstancesOfferingsResponse.h:52
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::GetReservedInstancesOfferings
const Aws::Vector< ReservedInstancesOffering > & GetReservedInstancesOfferings() const
Definition: DescribeReservedInstancesOfferingsResponse.h:47
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeReservedInstancesOfferingsResponse.h:130
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::WithReservedInstancesOfferings
DescribeReservedInstancesOfferingsResponse & WithReservedInstancesOfferings(Aws::Vector< ReservedInstancesOffering > &&value)
Definition: DescribeReservedInstancesOfferingsResponse.h:67
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::AddReservedInstancesOfferings
DescribeReservedInstancesOfferingsResponse & AddReservedInstancesOfferings(ReservedInstancesOffering &&value)
Definition: DescribeReservedInstancesOfferingsResponse.h:77
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeReservedInstancesOfferingsResponse.h:102
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeReservedInstancesOfferingsResponse.h:124
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::WithNextToken
DescribeReservedInstancesOfferingsResponse & WithNextToken(Aws::String &&value)
Definition: DescribeReservedInstancesOfferingsResponse.h:114
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::WithNextToken
DescribeReservedInstancesOfferingsResponse & WithNextToken(const char *value)
Definition: DescribeReservedInstancesOfferingsResponse.h:120
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::DescribeReservedInstancesOfferingsResponse
DescribeReservedInstancesOfferingsResponse()
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::WithResponseMetadata
DescribeReservedInstancesOfferingsResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeReservedInstancesOfferingsResponse.h:133
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeReservedInstancesOfferingsResponse.h:127
EC2_EXPORTS.h
Aws::EC2::Model::DescribeReservedInstancesOfferingsResponse::AddReservedInstancesOfferings
DescribeReservedInstancesOfferingsResponse & AddReservedInstancesOfferings(const ReservedInstancesOffering &value)
Definition: DescribeReservedInstancesOfferingsResponse.h:72