AWS SDK for C++  1.8.95
AWS SDK for C++
MarketplaceCommerceAnalyticsClient.h
Go to the documentation of this file.
1 
6 #pragma once
18 #include <future>
19 #include <functional>
20 
21 namespace Aws
22 {
23 
24 namespace Http
25 {
26  class HttpClient;
27  class HttpClientFactory;
28 } // namespace Http
29 
30 namespace Utils
31 {
32  template< typename R, typename E> class Outcome;
33 namespace Threading
34 {
35  class Executor;
36 } // namespace Threading
37 } // namespace Utils
38 
39 namespace Auth
40 {
41  class AWSCredentials;
42  class AWSCredentialsProvider;
43 } // namespace Auth
44 
45 namespace Client
46 {
47  class RetryStrategy;
48 } // namespace Client
49 
50 namespace MarketplaceCommerceAnalytics
51 {
52 
53 namespace Model
54 {
57 
60 
61  typedef std::future<GenerateDataSetOutcome> GenerateDataSetOutcomeCallable;
62  typedef std::future<StartSupportDataExportOutcome> StartSupportDataExportOutcomeCallable;
63 } // namespace Model
64 
66 
67  typedef std::function<void(const MarketplaceCommerceAnalyticsClient*, const Model::GenerateDataSetRequest&, const Model::GenerateDataSetOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GenerateDataSetResponseReceivedHandler;
68  typedef std::function<void(const MarketplaceCommerceAnalyticsClient*, const Model::StartSupportDataExportRequest&, const Model::StartSupportDataExportOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StartSupportDataExportResponseReceivedHandler;
69 
74  {
75  public:
77 
83 
89 
94  MarketplaceCommerceAnalyticsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
96 
98 
99 
115  virtual Model::GenerateDataSetOutcome GenerateDataSet(const Model::GenerateDataSetRequest& request) const;
116 
134  virtual Model::GenerateDataSetOutcomeCallable GenerateDataSetCallable(const Model::GenerateDataSetRequest& request) const;
135 
153  virtual void GenerateDataSetAsync(const Model::GenerateDataSetRequest& request, const GenerateDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
154 
170  virtual Model::StartSupportDataExportOutcome StartSupportDataExport(const Model::StartSupportDataExportRequest& request) const;
171 
189  virtual Model::StartSupportDataExportOutcomeCallable StartSupportDataExportCallable(const Model::StartSupportDataExportRequest& request) const;
190 
208  virtual void StartSupportDataExportAsync(const Model::StartSupportDataExportRequest& request, const StartSupportDataExportResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
209 
210 
211  void OverrideEndpoint(const Aws::String& endpoint);
212  private:
213  void init(const Aws::Client::ClientConfiguration& clientConfiguration);
214  void GenerateDataSetAsyncHelper(const Model::GenerateDataSetRequest& request, const GenerateDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
215  void StartSupportDataExportAsyncHelper(const Model::StartSupportDataExportRequest& request, const StartSupportDataExportResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
216 
217  Aws::String m_uri;
218  Aws::String m_configScheme;
219  std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
220  };
221 
222 } // namespace MarketplaceCommerceAnalytics
223 } // namespace Aws
std::function< void(const MarketplaceCommerceAnalyticsClient *, const Model::GenerateDataSetRequest &, const Model::GenerateDataSetOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GenerateDataSetResponseReceivedHandler
Aws::Utils::Outcome< GenerateDataSetResult, MarketplaceCommerceAnalyticsError > GenerateDataSetOutcome
std::future< StartSupportDataExportOutcome > StartSupportDataExportOutcomeCallable
Aws::Utils::Outcome< StartSupportDataExportResult, MarketplaceCommerceAnalyticsError > StartSupportDataExportOutcome
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_MARKETPLACECOMMERCEANALYTICS_API
std::function< void(const MarketplaceCommerceAnalyticsClient *, const Model::StartSupportDataExportRequest &, const Model::StartSupportDataExportOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > StartSupportDataExportResponseReceivedHandler
std::future< GenerateDataSetOutcome > GenerateDataSetOutcomeCallable