AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
PurchaseHostReservationResponse.h
1
6#pragma once
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>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Xml {
23class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace EC2 {
27namespace Model {
29 public:
30 AWS_EC2_API PurchaseHostReservationResponse() = default;
33
35
41 inline const Aws::String& GetClientToken() const { return m_clientToken; }
42 template <typename ClientTokenT = Aws::String>
43 void SetClientToken(ClientTokenT&& value) {
44 m_clientTokenHasBeenSet = true;
45 m_clientToken = std::forward<ClientTokenT>(value);
46 }
47 template <typename ClientTokenT = Aws::String>
49 SetClientToken(std::forward<ClientTokenT>(value));
50 return *this;
51 }
53
55
60 inline CurrencyCodeValues GetCurrencyCode() const { return m_currencyCode; }
62 m_currencyCodeHasBeenSet = true;
63 m_currencyCode = value;
64 }
66 SetCurrencyCode(value);
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Purchase>& GetPurchase() const { return m_purchase; }
76 template <typename PurchaseT = Aws::Vector<Purchase>>
77 void SetPurchase(PurchaseT&& value) {
78 m_purchaseHasBeenSet = true;
79 m_purchase = std::forward<PurchaseT>(value);
80 }
81 template <typename PurchaseT = Aws::Vector<Purchase>>
83 SetPurchase(std::forward<PurchaseT>(value));
84 return *this;
85 }
86 template <typename PurchaseT = Purchase>
88 m_purchaseHasBeenSet = true;
89 m_purchase.emplace_back(std::forward<PurchaseT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetTotalHourlyPrice() const { return m_totalHourlyPrice; }
99 template <typename TotalHourlyPriceT = Aws::String>
100 void SetTotalHourlyPrice(TotalHourlyPriceT&& value) {
101 m_totalHourlyPriceHasBeenSet = true;
102 m_totalHourlyPrice = std::forward<TotalHourlyPriceT>(value);
103 }
104 template <typename TotalHourlyPriceT = Aws::String>
106 SetTotalHourlyPrice(std::forward<TotalHourlyPriceT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetTotalUpfrontPrice() const { return m_totalUpfrontPrice; }
117 template <typename TotalUpfrontPriceT = Aws::String>
118 void SetTotalUpfrontPrice(TotalUpfrontPriceT&& value) {
119 m_totalUpfrontPriceHasBeenSet = true;
120 m_totalUpfrontPrice = std::forward<TotalUpfrontPriceT>(value);
121 }
122 template <typename TotalUpfrontPriceT = Aws::String>
124 SetTotalUpfrontPrice(std::forward<TotalUpfrontPriceT>(value));
125 return *this;
126 }
128
130
131 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
132 template <typename ResponseMetadataT = ResponseMetadata>
133 void SetResponseMetadata(ResponseMetadataT&& value) {
134 m_responseMetadataHasBeenSet = true;
135 m_responseMetadata = std::forward<ResponseMetadataT>(value);
136 }
137 template <typename ResponseMetadataT = ResponseMetadata>
139 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
140 return *this;
141 }
143 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
144
145 private:
146 Aws::String m_clientToken;
147
149
150 Aws::Vector<Purchase> m_purchase;
151
152 Aws::String m_totalHourlyPrice;
153
154 Aws::String m_totalUpfrontPrice;
155
156 ResponseMetadata m_responseMetadata;
157 Aws::Http::HttpResponseCode m_HttpResponseCode;
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;
164};
165
166} // namespace Model
167} // namespace EC2
168} // namespace Aws
PurchaseHostReservationResponse & WithTotalUpfrontPrice(TotalUpfrontPriceT &&value)
PurchaseHostReservationResponse & WithTotalHourlyPrice(TotalHourlyPriceT &&value)
AWS_EC2_API PurchaseHostReservationResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
PurchaseHostReservationResponse & WithCurrencyCode(CurrencyCodeValues value)
PurchaseHostReservationResponse & WithResponseMetadata(ResponseMetadataT &&value)
PurchaseHostReservationResponse & AddPurchase(PurchaseT &&value)
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