7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/CurrencyCodeValues.h>
12#include <aws/ec2/model/Purchase.h>
13#include <aws/ec2/model/ResponseMetadata.h>
18template <
typename RESULT_TYPE>
19class AmazonWebServiceResult;
42 template <
typename ClientTokenT = Aws::String>
44 m_clientTokenHasBeenSet =
true;
45 m_clientToken = std::forward<ClientTokenT>(value);
47 template <
typename ClientTokenT = Aws::String>
62 m_currencyCodeHasBeenSet =
true;
63 m_currencyCode = value;
76 template <
typename PurchaseT = Aws::Vector<Purchase>>
78 m_purchaseHasBeenSet =
true;
79 m_purchase = std::forward<PurchaseT>(value);
81 template <
typename PurchaseT = Aws::Vector<Purchase>>
86 template <
typename PurchaseT = Purchase>
88 m_purchaseHasBeenSet =
true;
89 m_purchase.emplace_back(std::forward<PurchaseT>(value));
99 template <
typename TotalHourlyPriceT = Aws::String>
101 m_totalHourlyPriceHasBeenSet =
true;
102 m_totalHourlyPrice = std::forward<TotalHourlyPriceT>(value);
104 template <
typename TotalHourlyPriceT = Aws::String>
117 template <
typename TotalUpfrontPriceT = Aws::String>
119 m_totalUpfrontPriceHasBeenSet =
true;
120 m_totalUpfrontPrice = std::forward<TotalUpfrontPriceT>(value);
122 template <
typename TotalUpfrontPriceT = Aws::String>
132 template <
typename ResponseMetadataT = ResponseMetadata>
134 m_responseMetadataHasBeenSet =
true;
135 m_responseMetadata = std::forward<ResponseMetadataT>(value);
137 template <
typename ResponseMetadataT = ResponseMetadata>
156 ResponseMetadata m_responseMetadata;
158 bool m_clientTokenHasBeenSet =
false;
159 bool m_currencyCodeHasBeenSet =
false;
160 bool m_purchaseHasBeenSet =
false;
161 bool m_totalHourlyPriceHasBeenSet =
false;
162 bool m_totalUpfrontPriceHasBeenSet =
false;
163 bool m_responseMetadataHasBeenSet =
false;
void SetPurchase(PurchaseT &&value)
const Aws::String & GetTotalHourlyPrice() const
const Aws::String & GetTotalUpfrontPrice() const
void SetTotalHourlyPrice(TotalHourlyPriceT &&value)
PurchaseHostReservationResponse & WithTotalUpfrontPrice(TotalUpfrontPriceT &&value)
const ResponseMetadata & GetResponseMetadata() const
void SetCurrencyCode(CurrencyCodeValues value)
PurchaseHostReservationResponse & WithTotalHourlyPrice(TotalHourlyPriceT &&value)
void SetTotalUpfrontPrice(TotalUpfrontPriceT &&value)
AWS_EC2_API PurchaseHostReservationResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CurrencyCodeValues GetCurrencyCode() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
PurchaseHostReservationResponse & WithCurrencyCode(CurrencyCodeValues value)
PurchaseHostReservationResponse & WithResponseMetadata(ResponseMetadataT &&value)
AWS_EC2_API PurchaseHostReservationResponse()=default
PurchaseHostReservationResponse & AddPurchase(PurchaseT &&value)
void SetClientToken(ClientTokenT &&value)
const Aws::Vector< Purchase > & GetPurchase() const
void SetResponseMetadata(ResponseMetadataT &&value)
const Aws::String & GetClientToken() const
PurchaseHostReservationResponse & WithClientToken(ClientTokenT &&value)
AWS_EC2_API PurchaseHostReservationResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
PurchaseHostReservationResponse & WithPurchase(PurchaseT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument