AWS SDK for C++  1.9.68
AWS SDK for C++
GetHostReservationPurchasePreviewResponse.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 
44  inline const CurrencyCodeValues& GetCurrencyCode() const{ return m_currencyCode; }
45 
51  inline void SetCurrencyCode(const CurrencyCodeValues& value) { m_currencyCode = value; }
52 
58  inline void SetCurrencyCode(CurrencyCodeValues&& value) { m_currencyCode = std::move(value); }
59 
65  inline GetHostReservationPurchasePreviewResponse& WithCurrencyCode(const CurrencyCodeValues& value) { SetCurrencyCode(value); return *this;}
66 
72  inline GetHostReservationPurchasePreviewResponse& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;}
73 
74 
79  inline const Aws::Vector<Purchase>& GetPurchase() const{ return m_purchase; }
80 
85  inline void SetPurchase(const Aws::Vector<Purchase>& value) { m_purchase = value; }
86 
91  inline void SetPurchase(Aws::Vector<Purchase>&& value) { m_purchase = std::move(value); }
92 
97  inline GetHostReservationPurchasePreviewResponse& WithPurchase(const Aws::Vector<Purchase>& value) { SetPurchase(value); return *this;}
98 
103  inline GetHostReservationPurchasePreviewResponse& WithPurchase(Aws::Vector<Purchase>&& value) { SetPurchase(std::move(value)); return *this;}
104 
109  inline GetHostReservationPurchasePreviewResponse& AddPurchase(const Purchase& value) { m_purchase.push_back(value); return *this; }
110 
115  inline GetHostReservationPurchasePreviewResponse& AddPurchase(Purchase&& value) { m_purchase.push_back(std::move(value)); return *this; }
116 
117 
121  inline const Aws::String& GetTotalHourlyPrice() const{ return m_totalHourlyPrice; }
122 
126  inline void SetTotalHourlyPrice(const Aws::String& value) { m_totalHourlyPrice = value; }
127 
131  inline void SetTotalHourlyPrice(Aws::String&& value) { m_totalHourlyPrice = std::move(value); }
132 
136  inline void SetTotalHourlyPrice(const char* value) { m_totalHourlyPrice.assign(value); }
137 
141  inline GetHostReservationPurchasePreviewResponse& WithTotalHourlyPrice(const Aws::String& value) { SetTotalHourlyPrice(value); return *this;}
142 
146  inline GetHostReservationPurchasePreviewResponse& WithTotalHourlyPrice(Aws::String&& value) { SetTotalHourlyPrice(std::move(value)); return *this;}
147 
151  inline GetHostReservationPurchasePreviewResponse& WithTotalHourlyPrice(const char* value) { SetTotalHourlyPrice(value); return *this;}
152 
153 
157  inline const Aws::String& GetTotalUpfrontPrice() const{ return m_totalUpfrontPrice; }
158 
162  inline void SetTotalUpfrontPrice(const Aws::String& value) { m_totalUpfrontPrice = value; }
163 
167  inline void SetTotalUpfrontPrice(Aws::String&& value) { m_totalUpfrontPrice = std::move(value); }
168 
172  inline void SetTotalUpfrontPrice(const char* value) { m_totalUpfrontPrice.assign(value); }
173 
177  inline GetHostReservationPurchasePreviewResponse& WithTotalUpfrontPrice(const Aws::String& value) { SetTotalUpfrontPrice(value); return *this;}
178 
182  inline GetHostReservationPurchasePreviewResponse& WithTotalUpfrontPrice(Aws::String&& value) { SetTotalUpfrontPrice(std::move(value)); return *this;}
183 
187  inline GetHostReservationPurchasePreviewResponse& WithTotalUpfrontPrice(const char* value) { SetTotalUpfrontPrice(value); return *this;}
188 
189 
190 
191  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
192 
193 
194  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
195 
196 
197  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
198 
199 
200  inline GetHostReservationPurchasePreviewResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
201 
202 
203  inline GetHostReservationPurchasePreviewResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
204 
205  private:
206 
207  CurrencyCodeValues m_currencyCode;
208 
209  Aws::Vector<Purchase> m_purchase;
210 
211  Aws::String m_totalHourlyPrice;
212 
213  Aws::String m_totalUpfrontPrice;
214 
215  ResponseMetadata m_responseMetadata;
216  };
217 
218 } // namespace Model
219 } // namespace EC2
220 } // namespace Aws
Aws::EC2::Model::Purchase
Definition: Purchase.h:35
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::operator=
GetHostReservationPurchasePreviewResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::WithTotalUpfrontPrice
GetHostReservationPurchasePreviewResponse & WithTotalUpfrontPrice(const char *value)
Definition: GetHostReservationPurchasePreviewResponse.h:187
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::WithCurrencyCode
GetHostReservationPurchasePreviewResponse & WithCurrencyCode(CurrencyCodeValues &&value)
Definition: GetHostReservationPurchasePreviewResponse.h:72
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::GetTotalUpfrontPrice
const Aws::String & GetTotalUpfrontPrice() const
Definition: GetHostReservationPurchasePreviewResponse.h:157
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::GetCurrencyCode
const CurrencyCodeValues & GetCurrencyCode() const
Definition: GetHostReservationPurchasePreviewResponse.h:44
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::WithPurchase
GetHostReservationPurchasePreviewResponse & WithPurchase(Aws::Vector< Purchase > &&value)
Definition: GetHostReservationPurchasePreviewResponse.h:103
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: GetHostReservationPurchasePreviewResponse.h:197
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::SetTotalHourlyPrice
void SetTotalHourlyPrice(const char *value)
Definition: GetHostReservationPurchasePreviewResponse.h:136
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::GetHostReservationPurchasePreviewResponse
GetHostReservationPurchasePreviewResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Purchase.h
CurrencyCodeValues.h
AWSVector.h
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::GetTotalHourlyPrice
const Aws::String & GetTotalHourlyPrice() const
Definition: GetHostReservationPurchasePreviewResponse.h:121
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::SetTotalUpfrontPrice
void SetTotalUpfrontPrice(Aws::String &&value)
Definition: GetHostReservationPurchasePreviewResponse.h:167
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::SetTotalUpfrontPrice
void SetTotalUpfrontPrice(const char *value)
Definition: GetHostReservationPurchasePreviewResponse.h:172
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::SetCurrencyCode
void SetCurrencyCode(CurrencyCodeValues &&value)
Definition: GetHostReservationPurchasePreviewResponse.h:58
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: GetHostReservationPurchasePreviewResponse.h:191
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::WithCurrencyCode
GetHostReservationPurchasePreviewResponse & WithCurrencyCode(const CurrencyCodeValues &value)
Definition: GetHostReservationPurchasePreviewResponse.h:65
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::WithTotalHourlyPrice
GetHostReservationPurchasePreviewResponse & WithTotalHourlyPrice(const char *value)
Definition: GetHostReservationPurchasePreviewResponse.h:151
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::WithTotalHourlyPrice
GetHostReservationPurchasePreviewResponse & WithTotalHourlyPrice(const Aws::String &value)
Definition: GetHostReservationPurchasePreviewResponse.h:141
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::WithPurchase
GetHostReservationPurchasePreviewResponse & WithPurchase(const Aws::Vector< Purchase > &value)
Definition: GetHostReservationPurchasePreviewResponse.h:97
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::SetPurchase
void SetPurchase(const Aws::Vector< Purchase > &value)
Definition: GetHostReservationPurchasePreviewResponse.h:85
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::SetPurchase
void SetPurchase(Aws::Vector< Purchase > &&value)
Definition: GetHostReservationPurchasePreviewResponse.h:91
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::WithResponseMetadata
GetHostReservationPurchasePreviewResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: GetHostReservationPurchasePreviewResponse.h:203
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::SetTotalUpfrontPrice
void SetTotalUpfrontPrice(const Aws::String &value)
Definition: GetHostReservationPurchasePreviewResponse.h:162
AWSString.h
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::WithTotalUpfrontPrice
GetHostReservationPurchasePreviewResponse & WithTotalUpfrontPrice(Aws::String &&value)
Definition: GetHostReservationPurchasePreviewResponse.h:182
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::AddPurchase
GetHostReservationPurchasePreviewResponse & AddPurchase(const Purchase &value)
Definition: GetHostReservationPurchasePreviewResponse.h:109
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::SetTotalHourlyPrice
void SetTotalHourlyPrice(const Aws::String &value)
Definition: GetHostReservationPurchasePreviewResponse.h:126
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::WithTotalUpfrontPrice
GetHostReservationPurchasePreviewResponse & WithTotalUpfrontPrice(const Aws::String &value)
Definition: GetHostReservationPurchasePreviewResponse.h:177
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::GetHostReservationPurchasePreviewResponse
GetHostReservationPurchasePreviewResponse()
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::AddPurchase
GetHostReservationPurchasePreviewResponse & AddPurchase(Purchase &&value)
Definition: GetHostReservationPurchasePreviewResponse.h:115
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::GetPurchase
const Aws::Vector< Purchase > & GetPurchase() const
Definition: GetHostReservationPurchasePreviewResponse.h:79
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::WithResponseMetadata
GetHostReservationPurchasePreviewResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: GetHostReservationPurchasePreviewResponse.h:200
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: GetHostReservationPurchasePreviewResponse.h:194
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::SetTotalHourlyPrice
void SetTotalHourlyPrice(Aws::String &&value)
Definition: GetHostReservationPurchasePreviewResponse.h:131
EC2_EXPORTS.h
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse
Definition: GetHostReservationPurchasePreviewResponse.h:32
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::WithTotalHourlyPrice
GetHostReservationPurchasePreviewResponse & WithTotalHourlyPrice(Aws::String &&value)
Definition: GetHostReservationPurchasePreviewResponse.h:146
Aws::EC2::Model::CurrencyCodeValues
CurrencyCodeValues
Definition: CurrencyCodeValues.h:17
Aws::EC2::Model::GetHostReservationPurchasePreviewResponse::SetCurrencyCode
void SetCurrencyCode(const CurrencyCodeValues &value)
Definition: GetHostReservationPurchasePreviewResponse.h:51