AWS SDK for C++  1.8.129
AWS SDK for C++
ImportExportClient.h
Go to the documentation of this file.
1 
6 #pragma once
23 #include <future>
24 #include <functional>
25 
26 namespace Aws
27 {
28 
29 namespace Http
30 {
31  class HttpClient;
32  class HttpClientFactory;
33 } // namespace Http
34 
35 namespace Utils
36 {
37  template< typename R, typename E> class Outcome;
38 
39 namespace Threading
40 {
41  class Executor;
42 } // namespace Threading
43 
44 namespace Xml
45 {
46  class XmlDocument;
47 } // namespace Xml
48 } // namespace Utils
49 
50 namespace Auth
51 {
52  class AWSCredentials;
53  class AWSCredentialsProvider;
54 } // namespace Auth
55 
56 namespace Client
57 {
58  class RetryStrategy;
59 } // namespace Client
60 
61 namespace ImportExport
62 {
63 
64 namespace Model
65 {
66  class CancelJobRequest;
67  class CreateJobRequest;
69  class GetStatusRequest;
70  class ListJobsRequest;
71  class UpdateJobRequest;
72 
79 
80  typedef std::future<CancelJobOutcome> CancelJobOutcomeCallable;
81  typedef std::future<CreateJobOutcome> CreateJobOutcomeCallable;
82  typedef std::future<GetShippingLabelOutcome> GetShippingLabelOutcomeCallable;
83  typedef std::future<GetStatusOutcome> GetStatusOutcomeCallable;
84  typedef std::future<ListJobsOutcome> ListJobsOutcomeCallable;
85  typedef std::future<UpdateJobOutcome> UpdateJobOutcomeCallable;
86 } // namespace Model
87 
88  class ImportExportClient;
89 
90  typedef std::function<void(const ImportExportClient*, const Model::CancelJobRequest&, const Model::CancelJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CancelJobResponseReceivedHandler;
91  typedef std::function<void(const ImportExportClient*, const Model::CreateJobRequest&, const Model::CreateJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateJobResponseReceivedHandler;
92  typedef std::function<void(const ImportExportClient*, const Model::GetShippingLabelRequest&, const Model::GetShippingLabelOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetShippingLabelResponseReceivedHandler;
93  typedef std::function<void(const ImportExportClient*, const Model::GetStatusRequest&, const Model::GetStatusOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetStatusResponseReceivedHandler;
94  typedef std::function<void(const ImportExportClient*, const Model::ListJobsRequest&, const Model::ListJobsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListJobsResponseReceivedHandler;
95  typedef std::function<void(const ImportExportClient*, const Model::UpdateJobRequest&, const Model::UpdateJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateJobResponseReceivedHandler;
96 
106  {
107  public:
109 
115 
121 
126  ImportExportClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
128 
130 
131 
135  Aws::String ConvertRequestToPresignedUrl(const Aws::AmazonSerializableWebServiceRequest& requestToConvert, const char* region) const;
136 
137 
146 
157 
167  virtual void CancelJobAsync(const Model::CancelJobRequest& request, const CancelJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
168 
179 
192 
204  virtual void CreateJobAsync(const Model::CreateJobRequest& request, const CreateJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
205 
213 
223 
232  virtual void GetShippingLabelAsync(const Model::GetShippingLabelRequest& request, const GetShippingLabelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
233 
243 
255 
266  virtual void GetStatusAsync(const Model::GetStatusRequest& request, const GetStatusResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
267 
278 
291 
303  virtual void ListJobsAsync(const Model::ListJobsRequest& request, const ListJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
304 
315 
328 
340  virtual void UpdateJobAsync(const Model::UpdateJobRequest& request, const UpdateJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
341 
342 
343  void OverrideEndpoint(const Aws::String& endpoint);
344  private:
345  void init(const Aws::Client::ClientConfiguration& clientConfiguration);
346  void CancelJobAsyncHelper(const Model::CancelJobRequest& request, const CancelJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
347  void CreateJobAsyncHelper(const Model::CreateJobRequest& request, const CreateJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
348  void GetShippingLabelAsyncHelper(const Model::GetShippingLabelRequest& request, const GetShippingLabelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
349  void GetStatusAsyncHelper(const Model::GetStatusRequest& request, const GetStatusResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
350  void ListJobsAsyncHelper(const Model::ListJobsRequest& request, const ListJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
351  void UpdateJobAsyncHelper(const Model::UpdateJobRequest& request, const UpdateJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
352 
353  Aws::String m_uri;
354  Aws::String m_configScheme;
355  std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
356  };
357 
358 } // namespace ImportExport
359 } // namespace Aws
Aws::DirectoryService::Model::LDAPSType::NOT_SET
@ NOT_SET
Aws::ImportExport::CreateJobResponseReceivedHandler
std::function< void(const ImportExportClient *, const Model::CreateJobRequest &, const Model::CreateJobOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateJobResponseReceivedHandler
Definition: ImportExportClient.h:91
Aws::ImportExport::ImportExportClient::ImportExportClient
ImportExportClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::ImportExport::Model::ListJobsOutcome
Aws::Utils::Outcome< ListJobsResult, ImportExportError > ListJobsOutcome
Definition: ImportExportClient.h:77
AWSError.h
Aws::AmazonSerializableWebServiceRequest
Definition: AmazonSerializableWebServiceRequest.h:29
Aws::ImportExport::ImportExportClient::UpdateJobCallable
virtual Model::UpdateJobOutcomeCallable UpdateJobCallable(const Model::UpdateJobRequest &request) const
Aws::ImportExport::ImportExportClient::OverrideEndpoint
void OverrideEndpoint(const Aws::String &endpoint)
Aws::ImportExport::Model::GetStatusOutcomeCallable
std::future< GetStatusOutcome > GetStatusOutcomeCallable
Definition: ImportExportClient.h:83
Aws::ImportExport::ImportExportClient::GetShippingLabelAsync
virtual void GetShippingLabelAsync(const Model::GetShippingLabelRequest &request, const GetShippingLabelResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::ImportExport::ImportExportClient::ListJobsAsync
virtual void ListJobsAsync(const Model::ListJobsRequest &request, const ListJobsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::ImportExport::ImportExportClient::UpdateJobAsync
virtual void UpdateJobAsync(const Model::UpdateJobRequest &request, const UpdateJobResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
AsyncCallerContext.h
Aws::ImportExport::ImportExportClient::GetStatusCallable
virtual Model::GetStatusOutcomeCallable GetStatusCallable(const Model::GetStatusRequest &request) const
Aws::ImportExport::ImportExportClient::ImportExportClient
ImportExportClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
ImportExport_EXPORTS.h
Aws::ImportExport::UpdateJobResponseReceivedHandler
std::function< void(const ImportExportClient *, const Model::UpdateJobRequest &, const Model::UpdateJobOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateJobResponseReceivedHandler
Definition: ImportExportClient.h:95
Aws::ImportExport::ImportExportClient::GetShippingLabel
virtual Model::GetShippingLabelOutcome GetShippingLabel(const Model::GetShippingLabelRequest &request) const
Aws::ImportExport::Model::ListJobsOutcomeCallable
std::future< ListJobsOutcome > ListJobsOutcomeCallable
Definition: ImportExportClient.h:84
Aws::ImportExport::ImportExportClient::CancelJobAsync
virtual void CancelJobAsync(const Model::CancelJobRequest &request, const CancelJobResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::ImportExport::Model::GetShippingLabelOutcome
Aws::Utils::Outcome< GetShippingLabelResult, ImportExportError > GetShippingLabelOutcome
Definition: ImportExportClient.h:75
Aws::ImportExport::ImportExportClient::CancelJobCallable
virtual Model::CancelJobOutcomeCallable CancelJobCallable(const Model::CancelJobRequest &request) const
Aws::ImportExport::Model::CreateJobRequest
Definition: CreateJobRequest.h:26
Aws::ImportExport::Model::UpdateJobRequest
Definition: UpdateJobRequest.h:26
Aws::ImportExport::Model::CancelJobOutcome
Aws::Utils::Outcome< CancelJobResult, ImportExportError > CancelJobOutcome
Definition: ImportExportClient.h:71
ListJobsResult.h
Aws::Client::ClientConfiguration
Definition: ClientConfiguration.h:51
Aws::ImportExport::GetShippingLabelResponseReceivedHandler
std::function< void(const ImportExportClient *, const Model::GetShippingLabelRequest &, const Model::GetShippingLabelOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetShippingLabelResponseReceivedHandler
Definition: ImportExportClient.h:92
Aws::ImportExport::ImportExportClient::GetStatusAsync
virtual void GetStatusAsync(const Model::GetStatusRequest &request, const GetStatusResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::ImportExport::ImportExportClient::CreateJobAsync
virtual void CreateJobAsync(const Model::CreateJobRequest &request, const CreateJobResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::ImportExport::ImportExportClient::GetStatus
virtual Model::GetStatusOutcome GetStatus(const Model::GetStatusRequest &request) const
Aws::ImportExport::CancelJobResponseReceivedHandler
std::function< void(const ImportExportClient *, const Model::CancelJobRequest &, const Model::CancelJobOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CancelJobResponseReceivedHandler
Definition: ImportExportClient.h:88
Aws::ImportExport::ImportExportClient::CancelJob
virtual Model::CancelJobOutcome CancelJob(const Model::CancelJobRequest &request) const
Aws::ImportExport::Model::CreateJobOutcome
Aws::Utils::Outcome< CreateJobResult, ImportExportError > CreateJobOutcome
Definition: ImportExportClient.h:74
Aws::ImportExport::Model::GetShippingLabelOutcomeCallable
std::future< GetShippingLabelOutcome > GetShippingLabelOutcomeCallable
Definition: ImportExportClient.h:82
Aws::Auth::AWSCredentials
Definition: AWSCredentials.h:19
Aws::ImportExport::ImportExportClient::GetShippingLabelCallable
virtual Model::GetShippingLabelOutcomeCallable GetShippingLabelCallable(const Model::GetShippingLabelRequest &request) const
XmlSerializer.h
Aws::ImportExport::Model::CancelJobOutcomeCallable
std::future< CancelJobOutcome > CancelJobOutcomeCallable
Definition: ImportExportClient.h:80
AWSString.h
Aws::ImportExport::Model::GetStatusRequest
Definition: GetStatusRequest.h:25
UpdateJobResult.h
Aws::ImportExport::ImportExportClient::ImportExportClient
ImportExportClient(const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::ImportExport::Model::GetShippingLabelRequest
Definition: GetShippingLabelRequest.h:23
Aws::ImportExport::ImportExportClient::BASECLASS
Aws::Client::AWSXMLClient BASECLASS
Definition: ImportExportClient.h:108
Aws::ImportExport::ImportExportClient::ListJobs
virtual Model::ListJobsOutcome ListJobs(const Model::ListJobsRequest &request) const
Aws::ImportExport::ImportExportClient::UpdateJob
virtual Model::UpdateJobOutcome UpdateJob(const Model::UpdateJobRequest &request) const
Aws::ImportExport::Model::UpdateJobOutcomeCallable
std::future< UpdateJobOutcome > UpdateJobOutcomeCallable
Definition: ImportExportClient.h:85
CreateJobResult.h
Aws::ImportExport::Model::CancelJobRequest
Definition: CancelJobRequest.h:25
Aws
Definition: AccessManagementClient.h:15
HttpTypes.h
Aws::ImportExport::ImportExportClient::CreateJob
virtual Model::CreateJobOutcome CreateJob(const Model::CreateJobRequest &request) const
Aws::ImportExport::ImportExportClient::CreateJobCallable
virtual Model::CreateJobOutcomeCallable CreateJobCallable(const Model::CreateJobRequest &request) const
Aws::Utils::Outcome
Definition: Outcome.h:26
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ImportExport::ImportExportClient::ConvertRequestToPresignedUrl
Aws::String ConvertRequestToPresignedUrl(const Aws::AmazonSerializableWebServiceRequest &requestToConvert, const char *region) const
GetShippingLabelResult.h
Aws::ImportExport::Model::UpdateJobOutcome
Aws::Utils::Outcome< UpdateJobResult, ImportExportError > UpdateJobOutcome
Definition: ImportExportClient.h:78
AWSClient.h
AWS_IMPORTEXPORT_API
#define AWS_IMPORTEXPORT_API
Definition: ImportExport_EXPORTS.h:28
Aws::ImportExport::GetStatusResponseReceivedHandler
std::function< void(const ImportExportClient *, const Model::GetStatusRequest &, const Model::GetStatusOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetStatusResponseReceivedHandler
Definition: ImportExportClient.h:93
ImportExportErrors.h
Aws::ImportExport::ImportExportClient
Definition: ImportExportClient.h:106
Aws::ImportExport::Model::GetStatusOutcome
Aws::Utils::Outcome< GetStatusResult, ImportExportError > GetStatusOutcome
Definition: ImportExportClient.h:76
Aws::ImportExport::Model::ListJobsRequest
Definition: ListJobsRequest.h:25
Aws::ImportExport::ImportExportClient::~ImportExportClient
virtual ~ImportExportClient()
Aws::Client::AWSXMLClient
Definition: AWSClient.h:388
ClientConfiguration.h
Aws::ImportExport::Model::CreateJobOutcomeCallable
std::future< CreateJobOutcome > CreateJobOutcomeCallable
Definition: ImportExportClient.h:81
Aws::ImportExport::ImportExportClient::ListJobsCallable
virtual Model::ListJobsOutcomeCallable ListJobsCallable(const Model::ListJobsRequest &request) const
GetStatusResult.h
CancelJobResult.h
Aws::ImportExport::ListJobsResponseReceivedHandler
std::function< void(const ImportExportClient *, const Model::ListJobsRequest &, const Model::ListJobsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListJobsResponseReceivedHandler
Definition: ImportExportClient.h:94
AmazonSerializableWebServiceRequest.h