AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ManagedBlockchainQueryClient.h
1
6#pragma once
7#include <aws/managedblockchain-query/ManagedBlockchainQuery_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/managedblockchain-query/ManagedBlockchainQueryServiceClientModel.h>
13
14namespace Aws
15{
16namespace ManagedBlockchainQuery
17{
29 class AWS_MANAGEDBLOCKCHAINQUERY_API ManagedBlockchainQueryClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<ManagedBlockchainQueryClient>
30 {
31 public:
33 static const char* GetServiceName();
34 static const char* GetAllocationTag();
35
38
44 std::shared_ptr<ManagedBlockchainQueryEndpointProviderBase> endpointProvider = nullptr);
45
51 std::shared_ptr<ManagedBlockchainQueryEndpointProviderBase> endpointProvider = nullptr,
53
58 ManagedBlockchainQueryClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
59 std::shared_ptr<ManagedBlockchainQueryEndpointProviderBase> endpointProvider = nullptr,
61
62
63 /* Legacy constructors due deprecation */
69
75 const Aws::Client::ClientConfiguration& clientConfiguration);
76
81 ManagedBlockchainQueryClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
82 const Aws::Client::ClientConfiguration& clientConfiguration);
83
84 /* End of legacy constructors due deprecation */
86
96
100 template<typename BatchGetTokenBalanceRequestT = Model::BatchGetTokenBalanceRequest>
101 Model::BatchGetTokenBalanceOutcomeCallable BatchGetTokenBalanceCallable(const BatchGetTokenBalanceRequestT& request = {}) const
102 {
103 return SubmitCallable(&ManagedBlockchainQueryClient::BatchGetTokenBalance, request);
104 }
105
109 template<typename BatchGetTokenBalanceRequestT = Model::BatchGetTokenBalanceRequest>
110 void BatchGetTokenBalanceAsync(const BatchGetTokenBalanceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const BatchGetTokenBalanceRequestT& request = {}) const
111 {
112 return SubmitAsync(&ManagedBlockchainQueryClient::BatchGetTokenBalance, request, handler, context);
113 }
114
126
130 template<typename GetAssetContractRequestT = Model::GetAssetContractRequest>
131 Model::GetAssetContractOutcomeCallable GetAssetContractCallable(const GetAssetContractRequestT& request) const
132 {
133 return SubmitCallable(&ManagedBlockchainQueryClient::GetAssetContract, request);
134 }
135
139 template<typename GetAssetContractRequestT = Model::GetAssetContractRequest>
140 void GetAssetContractAsync(const GetAssetContractRequestT& request, const GetAssetContractResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
141 {
142 return SubmitAsync(&ManagedBlockchainQueryClient::GetAssetContract, request, handler, context);
143 }
144
154
158 template<typename GetTokenBalanceRequestT = Model::GetTokenBalanceRequest>
159 Model::GetTokenBalanceOutcomeCallable GetTokenBalanceCallable(const GetTokenBalanceRequestT& request) const
160 {
161 return SubmitCallable(&ManagedBlockchainQueryClient::GetTokenBalance, request);
162 }
163
167 template<typename GetTokenBalanceRequestT = Model::GetTokenBalanceRequest>
168 void GetTokenBalanceAsync(const GetTokenBalanceRequestT& request, const GetTokenBalanceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
169 {
170 return SubmitAsync(&ManagedBlockchainQueryClient::GetTokenBalance, request, handler, context);
171 }
172
183
187 template<typename GetTransactionRequestT = Model::GetTransactionRequest>
188 Model::GetTransactionOutcomeCallable GetTransactionCallable(const GetTransactionRequestT& request) const
189 {
190 return SubmitCallable(&ManagedBlockchainQueryClient::GetTransaction, request);
191 }
192
196 template<typename GetTransactionRequestT = Model::GetTransactionRequest>
197 void GetTransactionAsync(const GetTransactionRequestT& request, const GetTransactionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
198 {
199 return SubmitAsync(&ManagedBlockchainQueryClient::GetTransaction, request, handler, context);
200 }
201
210
214 template<typename ListAssetContractsRequestT = Model::ListAssetContractsRequest>
215 Model::ListAssetContractsOutcomeCallable ListAssetContractsCallable(const ListAssetContractsRequestT& request) const
216 {
217 return SubmitCallable(&ManagedBlockchainQueryClient::ListAssetContracts, request);
218 }
219
223 template<typename ListAssetContractsRequestT = Model::ListAssetContractsRequest>
224 void ListAssetContractsAsync(const ListAssetContractsRequestT& request, const ListAssetContractsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
225 {
226 return SubmitAsync(&ManagedBlockchainQueryClient::ListAssetContracts, request, handler, context);
227 }
228
237
241 template<typename ListFilteredTransactionEventsRequestT = Model::ListFilteredTransactionEventsRequest>
242 Model::ListFilteredTransactionEventsOutcomeCallable ListFilteredTransactionEventsCallable(const ListFilteredTransactionEventsRequestT& request) const
243 {
244 return SubmitCallable(&ManagedBlockchainQueryClient::ListFilteredTransactionEvents, request);
245 }
246
250 template<typename ListFilteredTransactionEventsRequestT = Model::ListFilteredTransactionEventsRequest>
251 void ListFilteredTransactionEventsAsync(const ListFilteredTransactionEventsRequestT& request, const ListFilteredTransactionEventsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
252 {
253 return SubmitAsync(&ManagedBlockchainQueryClient::ListFilteredTransactionEvents, request, handler, context);
254 }
255
268
272 template<typename ListTokenBalancesRequestT = Model::ListTokenBalancesRequest>
273 Model::ListTokenBalancesOutcomeCallable ListTokenBalancesCallable(const ListTokenBalancesRequestT& request) const
274 {
275 return SubmitCallable(&ManagedBlockchainQueryClient::ListTokenBalances, request);
276 }
277
281 template<typename ListTokenBalancesRequestT = Model::ListTokenBalancesRequest>
282 void ListTokenBalancesAsync(const ListTokenBalancesRequestT& request, const ListTokenBalancesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
283 {
284 return SubmitAsync(&ManagedBlockchainQueryClient::ListTokenBalances, request, handler, context);
285 }
286
297
301 template<typename ListTransactionEventsRequestT = Model::ListTransactionEventsRequest>
302 Model::ListTransactionEventsOutcomeCallable ListTransactionEventsCallable(const ListTransactionEventsRequestT& request) const
303 {
304 return SubmitCallable(&ManagedBlockchainQueryClient::ListTransactionEvents, request);
305 }
306
310 template<typename ListTransactionEventsRequestT = Model::ListTransactionEventsRequest>
311 void ListTransactionEventsAsync(const ListTransactionEventsRequestT& request, const ListTransactionEventsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
312 {
313 return SubmitAsync(&ManagedBlockchainQueryClient::ListTransactionEvents, request, handler, context);
314 }
315
323
327 template<typename ListTransactionsRequestT = Model::ListTransactionsRequest>
328 Model::ListTransactionsOutcomeCallable ListTransactionsCallable(const ListTransactionsRequestT& request) const
329 {
330 return SubmitCallable(&ManagedBlockchainQueryClient::ListTransactions, request);
331 }
332
336 template<typename ListTransactionsRequestT = Model::ListTransactionsRequest>
337 void ListTransactionsAsync(const ListTransactionsRequestT& request, const ListTransactionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
338 {
339 return SubmitAsync(&ManagedBlockchainQueryClient::ListTransactions, request, handler, context);
340 }
341
342
343 void OverrideEndpoint(const Aws::String& endpoint);
344 std::shared_ptr<ManagedBlockchainQueryEndpointProviderBase>& accessEndpointProvider();
345 private:
347 void init(const ManagedBlockchainQueryClientConfiguration& clientConfiguration);
348
349 ManagedBlockchainQueryClientConfiguration m_clientConfiguration;
350 std::shared_ptr<ManagedBlockchainQueryEndpointProviderBase> m_endpointProvider;
351 };
352
353} // namespace ManagedBlockchainQuery
354} // namespace Aws
ManagedBlockchainQueryClient(const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::ListTokenBalancesOutcome ListTokenBalances(const Model::ListTokenBalancesRequest &request) const
void ListTokenBalancesAsync(const ListTokenBalancesRequestT &request, const ListTokenBalancesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::ListTransactionEventsOutcomeCallable ListTransactionEventsCallable(const ListTransactionEventsRequestT &request) const
virtual Model::GetTransactionOutcome GetTransaction(const Model::GetTransactionRequest &request) const
Model::GetTransactionOutcomeCallable GetTransactionCallable(const GetTransactionRequestT &request) const
virtual Model::GetAssetContractOutcome GetAssetContract(const Model::GetAssetContractRequest &request) const
void ListFilteredTransactionEventsAsync(const ListFilteredTransactionEventsRequestT &request, const ListFilteredTransactionEventsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::ListAssetContractsOutcomeCallable ListAssetContractsCallable(const ListAssetContractsRequestT &request) const
ManagedBlockchainQueryClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< ManagedBlockchainQueryEndpointProviderBase > endpointProvider=nullptr, const Aws::ManagedBlockchainQuery::ManagedBlockchainQueryClientConfiguration &clientConfiguration=Aws::ManagedBlockchainQuery::ManagedBlockchainQueryClientConfiguration())
virtual Model::ListFilteredTransactionEventsOutcome ListFilteredTransactionEvents(const Model::ListFilteredTransactionEventsRequest &request) const
Model::ListFilteredTransactionEventsOutcomeCallable ListFilteredTransactionEventsCallable(const ListFilteredTransactionEventsRequestT &request) const
std::shared_ptr< ManagedBlockchainQueryEndpointProviderBase > & accessEndpointProvider()
ManagedBlockchainQueryClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::ListTokenBalancesOutcomeCallable ListTokenBalancesCallable(const ListTokenBalancesRequestT &request) const
void GetAssetContractAsync(const GetAssetContractRequestT &request, const GetAssetContractResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void GetTokenBalanceAsync(const GetTokenBalanceRequestT &request, const GetTokenBalanceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::GetTokenBalanceOutcomeCallable GetTokenBalanceCallable(const GetTokenBalanceRequestT &request) const
ManagedBlockchainQueryClient(const Aws::ManagedBlockchainQuery::ManagedBlockchainQueryClientConfiguration &clientConfiguration=Aws::ManagedBlockchainQuery::ManagedBlockchainQueryClientConfiguration(), std::shared_ptr< ManagedBlockchainQueryEndpointProviderBase > endpointProvider=nullptr)
virtual Model::ListAssetContractsOutcome ListAssetContracts(const Model::ListAssetContractsRequest &request) const
void ListAssetContractsAsync(const ListAssetContractsRequestT &request, const ListAssetContractsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::ListTransactionsOutcomeCallable ListTransactionsCallable(const ListTransactionsRequestT &request) const
void ListTransactionsAsync(const ListTransactionsRequestT &request, const ListTransactionsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
ManagedBlockchainQueryClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< ManagedBlockchainQueryEndpointProviderBase > endpointProvider=nullptr, const Aws::ManagedBlockchainQuery::ManagedBlockchainQueryClientConfiguration &clientConfiguration=Aws::ManagedBlockchainQuery::ManagedBlockchainQueryClientConfiguration())
virtual Model::BatchGetTokenBalanceOutcome BatchGetTokenBalance(const Model::BatchGetTokenBalanceRequest &request={}) const
ManagedBlockchainQueryClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::GetAssetContractOutcomeCallable GetAssetContractCallable(const GetAssetContractRequestT &request) const
void ListTransactionEventsAsync(const ListTransactionEventsRequestT &request, const ListTransactionEventsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::ListTransactionEventsOutcome ListTransactionEvents(const Model::ListTransactionEventsRequest &request) const
void OverrideEndpoint(const Aws::String &endpoint)
Model::BatchGetTokenBalanceOutcomeCallable BatchGetTokenBalanceCallable(const BatchGetTokenBalanceRequestT &request={}) const
void BatchGetTokenBalanceAsync(const BatchGetTokenBalanceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const BatchGetTokenBalanceRequestT &request={}) const
virtual Model::ListTransactionsOutcome ListTransactions(const Model::ListTransactionsRequest &request) const
virtual Model::GetTokenBalanceOutcome GetTokenBalance(const Model::GetTokenBalanceRequest &request) const
void GetTransactionAsync(const GetTransactionRequestT &request, const GetTransactionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
std::future< ListTransactionsOutcome > ListTransactionsOutcomeCallable
std::future< BatchGetTokenBalanceOutcome > BatchGetTokenBalanceOutcomeCallable
std::future< ListTokenBalancesOutcome > ListTokenBalancesOutcomeCallable
std::future< ListFilteredTransactionEventsOutcome > ListFilteredTransactionEventsOutcomeCallable
std::future< ListAssetContractsOutcome > ListAssetContractsOutcomeCallable
std::future< GetTransactionOutcome > GetTransactionOutcomeCallable
std::future< ListTransactionEventsOutcome > ListTransactionEventsOutcomeCallable
std::future< GetAssetContractOutcome > GetAssetContractOutcomeCallable
std::future< GetTokenBalanceOutcome > GetTokenBalanceOutcomeCallable
std::function< void(const ManagedBlockchainQueryClient *, const Model::ListAssetContractsRequest &, const Model::ListAssetContractsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListAssetContractsResponseReceivedHandler
std::function< void(const ManagedBlockchainQueryClient *, const Model::GetAssetContractRequest &, const Model::GetAssetContractOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetAssetContractResponseReceivedHandler
std::function< void(const ManagedBlockchainQueryClient *, const Model::ListTokenBalancesRequest &, const Model::ListTokenBalancesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListTokenBalancesResponseReceivedHandler
std::function< void(const ManagedBlockchainQueryClient *, const Model::BatchGetTokenBalanceRequest &, const Model::BatchGetTokenBalanceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > BatchGetTokenBalanceResponseReceivedHandler
std::function< void(const ManagedBlockchainQueryClient *, const Model::ListTransactionEventsRequest &, const Model::ListTransactionEventsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListTransactionEventsResponseReceivedHandler
std::function< void(const ManagedBlockchainQueryClient *, const Model::ListFilteredTransactionEventsRequest &, const Model::ListFilteredTransactionEventsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListFilteredTransactionEventsResponseReceivedHandler
std::function< void(const ManagedBlockchainQueryClient *, const Model::GetTransactionRequest &, const Model::GetTransactionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetTransactionResponseReceivedHandler
std::function< void(const ManagedBlockchainQueryClient *, const Model::GetTokenBalanceRequest &, const Model::GetTokenBalanceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetTokenBalanceResponseReceivedHandler
std::function< void(const ManagedBlockchainQueryClient *, const Model::ListTransactionsRequest &, const Model::ListTransactionsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListTransactionsResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String