AWS SDK for C++  1.9.132
AWS SDK for C++
PurchaseHostReservationResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <aws/ec2/model/Purchase.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 template<typename RESULT_TYPE>
18 class AmazonWebServiceResult;
19 
20 namespace Utils
21 {
22 namespace Xml
23 {
24  class XmlDocument;
25 } // namespace Xml
26 } // namespace Utils
27 namespace EC2
28 {
29 namespace Model
30 {
32  {
33  public:
37 
38 
45  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
46 
53  inline void SetClientToken(const Aws::String& value) { m_clientToken = value; }
54 
61  inline void SetClientToken(Aws::String&& value) { m_clientToken = std::move(value); }
62 
69  inline void SetClientToken(const char* value) { m_clientToken.assign(value); }
70 
77  inline PurchaseHostReservationResponse& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
78 
85  inline PurchaseHostReservationResponse& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
86 
93  inline PurchaseHostReservationResponse& WithClientToken(const char* value) { SetClientToken(value); return *this;}
94 
95 
101  inline const CurrencyCodeValues& GetCurrencyCode() const{ return m_currencyCode; }
102 
108  inline void SetCurrencyCode(const CurrencyCodeValues& value) { m_currencyCode = value; }
109 
115  inline void SetCurrencyCode(CurrencyCodeValues&& value) { m_currencyCode = std::move(value); }
116 
122  inline PurchaseHostReservationResponse& WithCurrencyCode(const CurrencyCodeValues& value) { SetCurrencyCode(value); return *this;}
123 
129  inline PurchaseHostReservationResponse& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;}
130 
131 
135  inline const Aws::Vector<Purchase>& GetPurchase() const{ return m_purchase; }
136 
140  inline void SetPurchase(const Aws::Vector<Purchase>& value) { m_purchase = value; }
141 
145  inline void SetPurchase(Aws::Vector<Purchase>&& value) { m_purchase = std::move(value); }
146 
150  inline PurchaseHostReservationResponse& WithPurchase(const Aws::Vector<Purchase>& value) { SetPurchase(value); return *this;}
151 
155  inline PurchaseHostReservationResponse& WithPurchase(Aws::Vector<Purchase>&& value) { SetPurchase(std::move(value)); return *this;}
156 
160  inline PurchaseHostReservationResponse& AddPurchase(const Purchase& value) { m_purchase.push_back(value); return *this; }
161 
165  inline PurchaseHostReservationResponse& AddPurchase(Purchase&& value) { m_purchase.push_back(std::move(value)); return *this; }
166 
167 
171  inline const Aws::String& GetTotalHourlyPrice() const{ return m_totalHourlyPrice; }
172 
176  inline void SetTotalHourlyPrice(const Aws::String& value) { m_totalHourlyPrice = value; }
177 
181  inline void SetTotalHourlyPrice(Aws::String&& value) { m_totalHourlyPrice = std::move(value); }
182 
186  inline void SetTotalHourlyPrice(const char* value) { m_totalHourlyPrice.assign(value); }
187 
191  inline PurchaseHostReservationResponse& WithTotalHourlyPrice(const Aws::String& value) { SetTotalHourlyPrice(value); return *this;}
192 
196  inline PurchaseHostReservationResponse& WithTotalHourlyPrice(Aws::String&& value) { SetTotalHourlyPrice(std::move(value)); return *this;}
197 
201  inline PurchaseHostReservationResponse& WithTotalHourlyPrice(const char* value) { SetTotalHourlyPrice(value); return *this;}
202 
203 
208  inline const Aws::String& GetTotalUpfrontPrice() const{ return m_totalUpfrontPrice; }
209 
214  inline void SetTotalUpfrontPrice(const Aws::String& value) { m_totalUpfrontPrice = value; }
215 
220  inline void SetTotalUpfrontPrice(Aws::String&& value) { m_totalUpfrontPrice = std::move(value); }
221 
226  inline void SetTotalUpfrontPrice(const char* value) { m_totalUpfrontPrice.assign(value); }
227 
232  inline PurchaseHostReservationResponse& WithTotalUpfrontPrice(const Aws::String& value) { SetTotalUpfrontPrice(value); return *this;}
233 
238  inline PurchaseHostReservationResponse& WithTotalUpfrontPrice(Aws::String&& value) { SetTotalUpfrontPrice(std::move(value)); return *this;}
239 
244  inline PurchaseHostReservationResponse& WithTotalUpfrontPrice(const char* value) { SetTotalUpfrontPrice(value); return *this;}
245 
246 
247 
248  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
249 
250 
251  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
252 
253 
254  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
255 
256 
257  inline PurchaseHostReservationResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
258 
259 
260  inline PurchaseHostReservationResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
261 
262  private:
263 
264  Aws::String m_clientToken;
265 
266  CurrencyCodeValues m_currencyCode;
267 
268  Aws::Vector<Purchase> m_purchase;
269 
270  Aws::String m_totalHourlyPrice;
271 
272  Aws::String m_totalUpfrontPrice;
273 
274  ResponseMetadata m_responseMetadata;
275  };
276 
277 } // namespace Model
278 } // namespace EC2
279 } // namespace Aws
Aws::EC2::Model::Purchase
Definition: Purchase.h:35
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::PurchaseHostReservationResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: PurchaseHostReservationResponse.h:248
Aws::EC2::Model::PurchaseHostReservationResponse::WithTotalUpfrontPrice
PurchaseHostReservationResponse & WithTotalUpfrontPrice(Aws::String &&value)
Definition: PurchaseHostReservationResponse.h:238
Aws::EC2::Model::PurchaseHostReservationResponse::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: PurchaseHostReservationResponse.h:53
Aws::EC2::Model::PurchaseHostReservationResponse::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: PurchaseHostReservationResponse.h:61
Aws::EC2::Model::PurchaseHostReservationResponse::SetClientToken
void SetClientToken(const char *value)
Definition: PurchaseHostReservationResponse.h:69
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::PurchaseHostReservationResponse::AddPurchase
PurchaseHostReservationResponse & AddPurchase(const Purchase &value)
Definition: PurchaseHostReservationResponse.h:160
Aws::EC2::Model::PurchaseHostReservationResponse::AddPurchase
PurchaseHostReservationResponse & AddPurchase(Purchase &&value)
Definition: PurchaseHostReservationResponse.h:165
Aws::EC2::Model::PurchaseHostReservationResponse::SetCurrencyCode
void SetCurrencyCode(CurrencyCodeValues &&value)
Definition: PurchaseHostReservationResponse.h:115
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::PurchaseHostReservationResponse::WithPurchase
PurchaseHostReservationResponse & WithPurchase(const Aws::Vector< Purchase > &value)
Definition: PurchaseHostReservationResponse.h:150
Aws::EC2::Model::PurchaseHostReservationResponse::WithClientToken
PurchaseHostReservationResponse & WithClientToken(const Aws::String &value)
Definition: PurchaseHostReservationResponse.h:77
Purchase.h
Aws::EC2::Model::PurchaseHostReservationResponse::GetPurchase
const Aws::Vector< Purchase > & GetPurchase() const
Definition: PurchaseHostReservationResponse.h:135
CurrencyCodeValues.h
Aws::EC2::Model::PurchaseHostReservationResponse::SetTotalUpfrontPrice
void SetTotalUpfrontPrice(const Aws::String &value)
Definition: PurchaseHostReservationResponse.h:214
AWSVector.h
Aws::EC2::Model::PurchaseHostReservationResponse::WithCurrencyCode
PurchaseHostReservationResponse & WithCurrencyCode(const CurrencyCodeValues &value)
Definition: PurchaseHostReservationResponse.h:122
Aws::EC2::Model::PurchaseHostReservationResponse::WithResponseMetadata
PurchaseHostReservationResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: PurchaseHostReservationResponse.h:257
Aws::EC2::Model::PurchaseHostReservationResponse::GetCurrencyCode
const CurrencyCodeValues & GetCurrencyCode() const
Definition: PurchaseHostReservationResponse.h:101
Aws::EC2::Model::PurchaseHostReservationResponse::GetTotalHourlyPrice
const Aws::String & GetTotalHourlyPrice() const
Definition: PurchaseHostReservationResponse.h:171
Aws::EC2::Model::PurchaseHostReservationResponse::WithTotalUpfrontPrice
PurchaseHostReservationResponse & WithTotalUpfrontPrice(const Aws::String &value)
Definition: PurchaseHostReservationResponse.h:232
Aws::EC2::Model::PurchaseHostReservationResponse::SetPurchase
void SetPurchase(const Aws::Vector< Purchase > &value)
Definition: PurchaseHostReservationResponse.h:140
Aws::EC2::Model::PurchaseHostReservationResponse::WithPurchase
PurchaseHostReservationResponse & WithPurchase(Aws::Vector< Purchase > &&value)
Definition: PurchaseHostReservationResponse.h:155
Aws::EC2::Model::PurchaseHostReservationResponse::GetTotalUpfrontPrice
const Aws::String & GetTotalUpfrontPrice() const
Definition: PurchaseHostReservationResponse.h:208
Aws::EC2::Model::PurchaseHostReservationResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: PurchaseHostReservationResponse.h:254
Aws::EC2::Model::PurchaseHostReservationResponse::SetTotalUpfrontPrice
void SetTotalUpfrontPrice(Aws::String &&value)
Definition: PurchaseHostReservationResponse.h:220
Aws::EC2::Model::PurchaseHostReservationResponse::PurchaseHostReservationResponse
PurchaseHostReservationResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::PurchaseHostReservationResponse::WithTotalHourlyPrice
PurchaseHostReservationResponse & WithTotalHourlyPrice(Aws::String &&value)
Definition: PurchaseHostReservationResponse.h:196
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::PurchaseHostReservationResponse::WithClientToken
PurchaseHostReservationResponse & WithClientToken(const char *value)
Definition: PurchaseHostReservationResponse.h:93
AWSString.h
Aws::EC2::Model::PurchaseHostReservationResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: PurchaseHostReservationResponse.h:251
Aws::EC2::Model::PurchaseHostReservationResponse::WithClientToken
PurchaseHostReservationResponse & WithClientToken(Aws::String &&value)
Definition: PurchaseHostReservationResponse.h:85
Aws::EC2::Model::PurchaseHostReservationResponse::WithCurrencyCode
PurchaseHostReservationResponse & WithCurrencyCode(CurrencyCodeValues &&value)
Definition: PurchaseHostReservationResponse.h:129
Aws::EC2::Model::PurchaseHostReservationResponse::GetClientToken
const Aws::String & GetClientToken() const
Definition: PurchaseHostReservationResponse.h:45
Aws::EC2::Model::PurchaseHostReservationResponse::SetTotalUpfrontPrice
void SetTotalUpfrontPrice(const char *value)
Definition: PurchaseHostReservationResponse.h:226
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PurchaseHostReservationResponse
Definition: PurchaseHostReservationResponse.h:32
Aws::EC2::Model::PurchaseHostReservationResponse::operator=
PurchaseHostReservationResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::PurchaseHostReservationResponse::WithResponseMetadata
PurchaseHostReservationResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: PurchaseHostReservationResponse.h:260
Aws::EC2::Model::PurchaseHostReservationResponse::SetTotalHourlyPrice
void SetTotalHourlyPrice(const char *value)
Definition: PurchaseHostReservationResponse.h:186
Aws::EC2::Model::PurchaseHostReservationResponse::PurchaseHostReservationResponse
PurchaseHostReservationResponse()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::PurchaseHostReservationResponse::SetTotalHourlyPrice
void SetTotalHourlyPrice(Aws::String &&value)
Definition: PurchaseHostReservationResponse.h:181
Aws::EC2::Model::PurchaseHostReservationResponse::SetCurrencyCode
void SetCurrencyCode(const CurrencyCodeValues &value)
Definition: PurchaseHostReservationResponse.h:108
Aws::EC2::Model::PurchaseHostReservationResponse::SetTotalHourlyPrice
void SetTotalHourlyPrice(const Aws::String &value)
Definition: PurchaseHostReservationResponse.h:176
Aws::EC2::Model::PurchaseHostReservationResponse::WithTotalHourlyPrice
PurchaseHostReservationResponse & WithTotalHourlyPrice(const char *value)
Definition: PurchaseHostReservationResponse.h:201
Aws::EC2::Model::PurchaseHostReservationResponse::WithTotalHourlyPrice
PurchaseHostReservationResponse & WithTotalHourlyPrice(const Aws::String &value)
Definition: PurchaseHostReservationResponse.h:191
Aws::EC2::Model::PurchaseHostReservationResponse::SetPurchase
void SetPurchase(Aws::Vector< Purchase > &&value)
Definition: PurchaseHostReservationResponse.h:145
EC2_EXPORTS.h
Aws::EC2::Model::PurchaseHostReservationResponse::WithTotalUpfrontPrice
PurchaseHostReservationResponse & WithTotalUpfrontPrice(const char *value)
Definition: PurchaseHostReservationResponse.h:244
Aws::EC2::Model::CurrencyCodeValues
CurrencyCodeValues
Definition: CurrencyCodeValues.h:17