AWS SDK for C++  0.14.3
AWS SDK for C++
MarketplaceCommerceAnalyticsClient.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
27 #include <future>
28 #include <functional>
29 
30 namespace Aws
31 {
32 
33 namespace Http
34 {
35  class HttpClient;
36  class HttpClientFactory;
37 } // namespace Http
38 
39 namespace Utils
40 {
41  template< typename R, typename E> class Outcome;
42 
43 namespace Threading
44 {
45  class Executor;
46 } // namespace Threading
47 
48 namespace Json
49 {
50  class JsonValue;
51 } // namespace Json
52 } // namespace Utils
53 
54 namespace Auth
55 {
56  class AWSCredentials;
57  class AWSCredentialsProvider;
58 } // namespace Auth
59 
60 namespace Client
61 {
62  class RetryStrategy;
63 } // namespace Client
64 
65 namespace MarketplaceCommerceAnalytics
66 {
67 
68 namespace Model
69 {
72 
75 
76  typedef std::future<GenerateDataSetOutcome> GenerateDataSetOutcomeCallable;
77  typedef std::future<StartSupportDataExportOutcome> StartSupportDataExportOutcomeCallable;
78 } // namespace Model
79 
81 
82  typedef std::function<void(const MarketplaceCommerceAnalyticsClient*, const Model::GenerateDataSetRequest&, const Model::GenerateDataSetOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GenerateDataSetResponseReceivedHandler;
83  typedef std::function<void(const MarketplaceCommerceAnalyticsClient*, const Model::StartSupportDataExportRequest&, const Model::StartSupportDataExportOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StartSupportDataExportResponseReceivedHandler;
84 
89  {
90  public:
92 
98 
104 
109  MarketplaceCommerceAnalyticsClient(const std::shared_ptr<Auth::AWSCredentialsProvider>& credentialsProvider,
110  const Client::ClientConfiguration& clientConfiguration = Client::ClientConfiguration());
111 
113 
126  virtual Model::GenerateDataSetOutcome GenerateDataSet(const Model::GenerateDataSetRequest& request) const;
127 
142  virtual Model::GenerateDataSetOutcomeCallable GenerateDataSetCallable(const Model::GenerateDataSetRequest& request) const;
143 
158  virtual void GenerateDataSetAsync(const Model::GenerateDataSetRequest& request, const GenerateDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
159 
173  virtual Model::StartSupportDataExportOutcome StartSupportDataExport(const Model::StartSupportDataExportRequest& request) const;
174 
190  virtual Model::StartSupportDataExportOutcomeCallable StartSupportDataExportCallable(const Model::StartSupportDataExportRequest& request) const;
191 
207  virtual void StartSupportDataExportAsync(const Model::StartSupportDataExportRequest& request, const StartSupportDataExportResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
208 
209 
210  private:
211  void init(const Client::ClientConfiguration& clientConfiguration);
212 
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  std::shared_ptr<Utils::Threading::Executor> m_executor;
219  };
220 
221 } // namespace MarketplaceCommerceAnalytics
222 } // 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, Aws::Client::AWSError< MarketplaceCommerceAnalyticsErrors > > GenerateDataSetOutcome
std::future< StartSupportDataExportOutcome > StartSupportDataExportOutcomeCallable
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
Aws::Utils::Outcome< StartSupportDataExportResult, Aws::Client::AWSError< MarketplaceCommerceAnalyticsErrors > > StartSupportDataExportOutcome
std::future< GenerateDataSetOutcome > GenerateDataSetOutcomeCallable
JSON (JavaScript Object Notation).