AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PricingClient.h
1
6#pragma once
7#include <aws/pricing/Pricing_EXPORTS.h>
8#include <aws/core/client/ClientConfiguration.h>
9#include <aws/core/client/AWSClient.h>
10#include <aws/core/client/AWSClientAsyncCRTP.h>
11#include <aws/core/utils/json/JsonSerializer.h>
12#include <aws/pricing/PricingServiceClientModel.h>
13
14namespace Aws
15{
16namespace Pricing
17{
40 class AWS_PRICING_API PricingClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<PricingClient>
41 {
42 public:
44 static const char* GetServiceName();
45 static const char* GetAllocationTag();
46
49
55 std::shared_ptr<PricingEndpointProviderBase> endpointProvider = nullptr);
56
62 std::shared_ptr<PricingEndpointProviderBase> endpointProvider = nullptr,
64
69 PricingClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
70 std::shared_ptr<PricingEndpointProviderBase> endpointProvider = nullptr,
72
73
74 /* Legacy constructors due deprecation */
80
86 const Aws::Client::ClientConfiguration& clientConfiguration);
87
92 PricingClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
93 const Aws::Client::ClientConfiguration& clientConfiguration);
94
95 /* End of legacy constructors due deprecation */
96 virtual ~PricingClient();
97
111
115 template<typename DescribeServicesRequestT = Model::DescribeServicesRequest>
116 Model::DescribeServicesOutcomeCallable DescribeServicesCallable(const DescribeServicesRequestT& request = {}) const
117 {
118 return SubmitCallable(&PricingClient::DescribeServices, request);
119 }
120
124 template<typename DescribeServicesRequestT = Model::DescribeServicesRequest>
125 void DescribeServicesAsync(const DescribeServicesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const DescribeServicesRequestT& request = {}) const
126 {
127 return SubmitAsync(&PricingClient::DescribeServices, request, handler, context);
128 }
129
141
145 template<typename GetAttributeValuesRequestT = Model::GetAttributeValuesRequest>
146 Model::GetAttributeValuesOutcomeCallable GetAttributeValuesCallable(const GetAttributeValuesRequestT& request) const
147 {
148 return SubmitCallable(&PricingClient::GetAttributeValues, request);
149 }
150
154 template<typename GetAttributeValuesRequestT = Model::GetAttributeValuesRequest>
155 void GetAttributeValuesAsync(const GetAttributeValuesRequestT& request, const GetAttributeValuesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
156 {
157 return SubmitAsync(&PricingClient::GetAttributeValues, request, handler, context);
158 }
159
175
179 template<typename GetPriceListFileUrlRequestT = Model::GetPriceListFileUrlRequest>
180 Model::GetPriceListFileUrlOutcomeCallable GetPriceListFileUrlCallable(const GetPriceListFileUrlRequestT& request) const
181 {
182 return SubmitCallable(&PricingClient::GetPriceListFileUrl, request);
183 }
184
188 template<typename GetPriceListFileUrlRequestT = Model::GetPriceListFileUrlRequest>
189 void GetPriceListFileUrlAsync(const GetPriceListFileUrlRequestT& request, const GetPriceListFileUrlResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
190 {
191 return SubmitAsync(&PricingClient::GetPriceListFileUrl, request, handler, context);
192 }
193
201
205 template<typename GetProductsRequestT = Model::GetProductsRequest>
206 Model::GetProductsOutcomeCallable GetProductsCallable(const GetProductsRequestT& request) const
207 {
208 return SubmitCallable(&PricingClient::GetProducts, request);
209 }
210
214 template<typename GetProductsRequestT = Model::GetProductsRequest>
215 void GetProductsAsync(const GetProductsRequestT& request, const GetProductsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
216 {
217 return SubmitAsync(&PricingClient::GetProducts, request, handler, context);
218 }
219
240
244 template<typename ListPriceListsRequestT = Model::ListPriceListsRequest>
245 Model::ListPriceListsOutcomeCallable ListPriceListsCallable(const ListPriceListsRequestT& request) const
246 {
247 return SubmitCallable(&PricingClient::ListPriceLists, request);
248 }
249
253 template<typename ListPriceListsRequestT = Model::ListPriceListsRequest>
254 void ListPriceListsAsync(const ListPriceListsRequestT& request, const ListPriceListsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
255 {
256 return SubmitAsync(&PricingClient::ListPriceLists, request, handler, context);
257 }
258
259
260 void OverrideEndpoint(const Aws::String& endpoint);
261 std::shared_ptr<PricingEndpointProviderBase>& accessEndpointProvider();
262 private:
264 void init(const PricingClientConfiguration& clientConfiguration);
265
266 PricingClientConfiguration m_clientConfiguration;
267 std::shared_ptr<PricingEndpointProviderBase> m_endpointProvider;
268 };
269
270} // namespace Pricing
271} // namespace Aws
Model::DescribeServicesOutcomeCallable DescribeServicesCallable(const DescribeServicesRequestT &request={}) const
virtual Model::GetAttributeValuesOutcome GetAttributeValues(const Model::GetAttributeValuesRequest &request) const
Aws::Client::AWSJsonClient BASECLASS
void ListPriceListsAsync(const ListPriceListsRequestT &request, const ListPriceListsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::GetProductsOutcomeCallable GetProductsCallable(const GetProductsRequestT &request) const
PricingClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
PricingClientConfiguration ClientConfigurationType
PricingClient(const Aws::Client::ClientConfiguration &clientConfiguration)
PricingClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< PricingEndpointProviderBase > endpointProvider=nullptr, const Aws::Pricing::PricingClientConfiguration &clientConfiguration=Aws::Pricing::PricingClientConfiguration())
PricingEndpointProvider EndpointProviderType
static const char * GetAllocationTag()
PricingClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< PricingEndpointProviderBase > endpointProvider=nullptr, const Aws::Pricing::PricingClientConfiguration &clientConfiguration=Aws::Pricing::PricingClientConfiguration())
Model::ListPriceListsOutcomeCallable ListPriceListsCallable(const ListPriceListsRequestT &request) const
void OverrideEndpoint(const Aws::String &endpoint)
void GetProductsAsync(const GetProductsRequestT &request, const GetProductsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
std::shared_ptr< PricingEndpointProviderBase > & accessEndpointProvider()
virtual Model::GetPriceListFileUrlOutcome GetPriceListFileUrl(const Model::GetPriceListFileUrlRequest &request) const
void DescribeServicesAsync(const DescribeServicesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const DescribeServicesRequestT &request={}) const
PricingClient(const Aws::Pricing::PricingClientConfiguration &clientConfiguration=Aws::Pricing::PricingClientConfiguration(), std::shared_ptr< PricingEndpointProviderBase > endpointProvider=nullptr)
void GetAttributeValuesAsync(const GetAttributeValuesRequestT &request, const GetAttributeValuesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::DescribeServicesOutcome DescribeServices(const Model::DescribeServicesRequest &request={}) const
static const char * GetServiceName()
virtual Model::GetProductsOutcome GetProducts(const Model::GetProductsRequest &request) const
void GetPriceListFileUrlAsync(const GetPriceListFileUrlRequestT &request, const GetPriceListFileUrlResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::ListPriceListsOutcome ListPriceLists(const Model::ListPriceListsRequest &request) const
PricingClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::GetAttributeValuesOutcomeCallable GetAttributeValuesCallable(const GetAttributeValuesRequestT &request) const
Model::GetPriceListFileUrlOutcomeCallable GetPriceListFileUrlCallable(const GetPriceListFileUrlRequestT &request) const
std::future< GetProductsOutcome > GetProductsOutcomeCallable
std::future< DescribeServicesOutcome > DescribeServicesOutcomeCallable
std::future< GetAttributeValuesOutcome > GetAttributeValuesOutcomeCallable
std::future< GetPriceListFileUrlOutcome > GetPriceListFileUrlOutcomeCallable
std::future< ListPriceListsOutcome > ListPriceListsOutcomeCallable
std::function< void(const PricingClient *, const Model::GetPriceListFileUrlRequest &, const Model::GetPriceListFileUrlOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetPriceListFileUrlResponseReceivedHandler
std::function< void(const PricingClient *, const Model::DescribeServicesRequest &, const Model::DescribeServicesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeServicesResponseReceivedHandler
std::function< void(const PricingClient *, const Model::ListPriceListsRequest &, const Model::ListPriceListsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListPriceListsResponseReceivedHandler
std::function< void(const PricingClient *, const Model::GetProductsRequest &, const Model::GetProductsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetProductsResponseReceivedHandler
std::function< void(const PricingClient *, const Model::GetAttributeValuesRequest &, const Model::GetAttributeValuesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetAttributeValuesResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String