7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/CurrencyCodeValues.h>
11#include <aws/ec2/model/Purchase.h>
12#include <aws/ec2/model/ResponseMetadata.h>
17template <
typename RESULT_TYPE>
18class AmazonWebServiceResult;
41 template <
typename ClientTokenT = Aws::String>
43 m_clientTokenHasBeenSet =
true;
44 m_clientToken = std::forward<ClientTokenT>(value);
46 template <
typename ClientTokenT = Aws::String>
61 m_currencyCodeHasBeenSet =
true;
62 m_currencyCode = value;
75 template <
typename PurchaseT = Aws::Vector<Purchase>>
77 m_purchaseHasBeenSet =
true;
78 m_purchase = std::forward<PurchaseT>(value);
80 template <
typename PurchaseT = Aws::Vector<Purchase>>
85 template <
typename PurchaseT = Purchase>
87 m_purchaseHasBeenSet =
true;
88 m_purchase.emplace_back(std::forward<PurchaseT>(value));
98 template <
typename TotalHourlyPriceT = Aws::String>
100 m_totalHourlyPriceHasBeenSet =
true;
101 m_totalHourlyPrice = std::forward<TotalHourlyPriceT>(value);
103 template <
typename TotalHourlyPriceT = Aws::String>
116 template <
typename TotalUpfrontPriceT = Aws::String>
118 m_totalUpfrontPriceHasBeenSet =
true;
119 m_totalUpfrontPrice = std::forward<TotalUpfrontPriceT>(value);
121 template <
typename TotalUpfrontPriceT = Aws::String>
131 template <
typename ResponseMetadataT = ResponseMetadata>
133 m_responseMetadataHasBeenSet =
true;
134 m_responseMetadata = std::forward<ResponseMetadataT>(value);
136 template <
typename ResponseMetadataT = ResponseMetadata>
153 ResponseMetadata m_responseMetadata;
154 bool m_clientTokenHasBeenSet =
false;
155 bool m_currencyCodeHasBeenSet =
false;
156 bool m_purchaseHasBeenSet =
false;
157 bool m_totalHourlyPriceHasBeenSet =
false;
158 bool m_totalUpfrontPriceHasBeenSet =
false;
159 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
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