AWS SDK for C++  1.8.186
AWS SDK for C++
MediaStoreDataClient.h
Go to the documentation of this file.
1 
6 #pragma once
21 #include <future>
22 #include <functional>
23 
24 namespace Aws
25 {
26 
27 namespace Http
28 {
29  class HttpClient;
30  class HttpClientFactory;
31 } // namespace Http
32 
33 namespace Utils
34 {
35  template< typename R, typename E> class Outcome;
36 namespace Threading
37 {
38  class Executor;
39 } // namespace Threading
40 } // namespace Utils
41 
42 namespace Auth
43 {
44  class AWSCredentials;
45  class AWSCredentialsProvider;
46 } // namespace Auth
47 
48 namespace Client
49 {
50  class RetryStrategy;
51 } // namespace Client
52 
53 namespace MediaStoreData
54 {
55 
56 namespace Model
57 {
58  class DeleteObjectRequest;
60  class GetObjectRequest;
61  class ListItemsRequest;
62  class PutObjectRequest;
63 
69 
70  typedef std::future<DeleteObjectOutcome> DeleteObjectOutcomeCallable;
71  typedef std::future<DescribeObjectOutcome> DescribeObjectOutcomeCallable;
72  typedef std::future<GetObjectOutcome> GetObjectOutcomeCallable;
73  typedef std::future<ListItemsOutcome> ListItemsOutcomeCallable;
74  typedef std::future<PutObjectOutcome> PutObjectOutcomeCallable;
75 } // namespace Model
76 
78 
79  typedef std::function<void(const MediaStoreDataClient*, const Model::DeleteObjectRequest&, const Model::DeleteObjectOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteObjectResponseReceivedHandler;
80  typedef std::function<void(const MediaStoreDataClient*, const Model::DescribeObjectRequest&, const Model::DescribeObjectOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeObjectResponseReceivedHandler;
81  typedef std::function<void(const MediaStoreDataClient*, const Model::GetObjectRequest&, Model::GetObjectOutcome, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetObjectResponseReceivedHandler;
82  typedef std::function<void(const MediaStoreDataClient*, const Model::ListItemsRequest&, const Model::ListItemsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListItemsResponseReceivedHandler;
83  typedef std::function<void(const MediaStoreDataClient*, const Model::PutObjectRequest&, const Model::PutObjectOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PutObjectResponseReceivedHandler;
84 
91  {
92  public:
94 
100 
106 
111  MediaStoreDataClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
113 
115 
116 
123 
132 
140  virtual void DeleteObjectAsync(const Model::DeleteObjectRequest& request, const DeleteObjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
141 
149 
159 
168  virtual void DescribeObjectAsync(const Model::DescribeObjectRequest& request, const DescribeObjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
169 
179 
191 
202  virtual void GetObjectAsync(const Model::GetObjectRequest& request, const GetObjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
203 
211 
221 
230  virtual void ListItemsAsync(const Model::ListItemsRequest& request, const ListItemsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
231 
240 
251 
261  virtual void PutObjectAsync(const Model::PutObjectRequest& request, const PutObjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
262 
263 
264  void OverrideEndpoint(const Aws::String& endpoint);
265  private:
266  void init(const Aws::Client::ClientConfiguration& clientConfiguration);
267  void DeleteObjectAsyncHelper(const Model::DeleteObjectRequest& request, const DeleteObjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
268  void DescribeObjectAsyncHelper(const Model::DescribeObjectRequest& request, const DescribeObjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
269  void GetObjectAsyncHelper(const Model::GetObjectRequest& request, const GetObjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
270  void ListItemsAsyncHelper(const Model::ListItemsRequest& request, const ListItemsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
271  void PutObjectAsyncHelper(const Model::PutObjectRequest& request, const PutObjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
272 
273  Aws::String m_uri;
274  Aws::String m_configScheme;
275  std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
276  };
277 
278 } // namespace MediaStoreData
279 } // namespace Aws
Aws::MediaStoreData::Model::GetObjectOutcomeCallable
std::future< GetObjectOutcome > GetObjectOutcomeCallable
Definition: MediaStoreDataClient.h:72
Aws::DirectoryService::Model::LDAPSType::NOT_SET
@ NOT_SET
Aws::MediaStoreData::Model::GetObjectOutcome
Aws::Utils::Outcome< GetObjectResult, MediaStoreDataError > GetObjectOutcome
Definition: MediaStoreDataClient.h:66
MediaStoreData_EXPORTS.h
Aws::MediaStoreData::MediaStoreDataClient::PutObjectAsync
virtual void PutObjectAsync(const Model::PutObjectRequest &request, const PutObjectResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::MediaStoreData::MediaStoreDataClient
Definition: MediaStoreDataClient.h:91
Aws::MediaStoreData::Model::PutObjectRequest
Definition: PutObjectRequest.h:25
Aws::MediaStoreData::Model::ListItemsOutcome
Aws::Utils::Outcome< ListItemsResult, MediaStoreDataError > ListItemsOutcome
Definition: MediaStoreDataClient.h:67
AWSError.h
Aws::MediaStoreData::Model::PutObjectOutcome
Aws::Utils::Outcome< PutObjectResult, MediaStoreDataError > PutObjectOutcome
Definition: MediaStoreDataClient.h:68
PutObjectResult.h
AWS_MEDIASTOREDATA_API
#define AWS_MEDIASTOREDATA_API
Definition: MediaStoreData_EXPORTS.h:28
Aws::MediaStoreData::Model::DescribeObjectOutcome
Aws::Utils::Outcome< DescribeObjectResult, MediaStoreDataError > DescribeObjectOutcome
Definition: MediaStoreDataClient.h:65
DescribeObjectResult.h
AsyncCallerContext.h
Aws::MediaStoreData::Model::DescribeObjectOutcomeCallable
std::future< DescribeObjectOutcome > DescribeObjectOutcomeCallable
Definition: MediaStoreDataClient.h:71
Aws::MediaStoreData::DeleteObjectResponseReceivedHandler
std::function< void(const MediaStoreDataClient *, const Model::DeleteObjectRequest &, const Model::DeleteObjectOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteObjectResponseReceivedHandler
Definition: MediaStoreDataClient.h:77
Aws::MediaStoreData::MediaStoreDataClient::DeleteObject
virtual Model::DeleteObjectOutcome DeleteObject(const Model::DeleteObjectRequest &request) const
Aws::MediaStoreData::MediaStoreDataClient::~MediaStoreDataClient
virtual ~MediaStoreDataClient()
Aws::MediaStoreData::Model::GetObjectRequest
Definition: GetObjectRequest.h:22
Aws::MediaStoreData::MediaStoreDataClient::DescribeObjectCallable
virtual Model::DescribeObjectOutcomeCallable DescribeObjectCallable(const Model::DescribeObjectRequest &request) const
Aws::MediaStoreData::Model::ListItemsOutcomeCallable
std::future< ListItemsOutcome > ListItemsOutcomeCallable
Definition: MediaStoreDataClient.h:73
Aws::MediaStoreData::MediaStoreDataClient::ListItems
virtual Model::ListItemsOutcome ListItems(const Model::ListItemsRequest &request) const
Aws::MediaStoreData::GetObjectResponseReceivedHandler
std::function< void(const MediaStoreDataClient *, const Model::GetObjectRequest &, Model::GetObjectOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetObjectResponseReceivedHandler
Definition: MediaStoreDataClient.h:81
Aws::MediaStoreData::MediaStoreDataClient::MediaStoreDataClient
MediaStoreDataClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::Client::ClientConfiguration
Definition: ClientConfiguration.h:52
Aws::MediaStoreData::MediaStoreDataClient::DeleteObjectAsync
virtual void DeleteObjectAsync(const Model::DeleteObjectRequest &request, const DeleteObjectResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::MediaStoreData::Model::PutObjectOutcomeCallable
std::future< PutObjectOutcome > PutObjectOutcomeCallable
Definition: MediaStoreDataClient.h:74
Aws::MediaStoreData::MediaStoreDataClient::GetObjectAsync
virtual void GetObjectAsync(const Model::GetObjectRequest &request, const GetObjectResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::MediaStoreData::MediaStoreDataClient::OverrideEndpoint
void OverrideEndpoint(const Aws::String &endpoint)
Aws::MediaStoreData::Model::DeleteObjectOutcome
Aws::Utils::Outcome< DeleteObjectResult, MediaStoreDataError > DeleteObjectOutcome
Definition: MediaStoreDataClient.h:62
Aws::MediaStoreData::MediaStoreDataClient::MediaStoreDataClient
MediaStoreDataClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::Auth::AWSCredentials
Definition: AWSCredentials.h:19
Aws::MediaStoreData::MediaStoreDataClient::GetObject
virtual Model::GetObjectOutcome GetObject(const Model::GetObjectRequest &request) const
DeleteObjectResult.h
AWSString.h
Aws::Client::AWSJsonClient
Definition: AWSClient.h:323
Aws::MediaStoreData::MediaStoreDataClient::ListItemsAsync
virtual void ListItemsAsync(const Model::ListItemsRequest &request, const ListItemsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::MediaStoreData::ListItemsResponseReceivedHandler
std::function< void(const MediaStoreDataClient *, const Model::ListItemsRequest &, const Model::ListItemsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListItemsResponseReceivedHandler
Definition: MediaStoreDataClient.h:82
GetObjectResult.h
Aws::MediaStoreData::DescribeObjectResponseReceivedHandler
std::function< void(const MediaStoreDataClient *, const Model::DescribeObjectRequest &, const Model::DescribeObjectOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeObjectResponseReceivedHandler
Definition: MediaStoreDataClient.h:80
Aws::MediaStoreData::Model::ListItemsRequest
Definition: ListItemsRequest.h:26
ListItemsResult.h
Aws::MediaStoreData::Model::DeleteObjectRequest
Definition: DeleteObjectRequest.h:22
Aws
Definition: AccessManagementClient.h:15
HttpTypes.h
Aws::MediaStoreData::MediaStoreDataClient::DescribeObjectAsync
virtual void DescribeObjectAsync(const Model::DescribeObjectRequest &request, const DescribeObjectResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::MediaStoreData::MediaStoreDataClient::BASECLASS
Aws::Client::AWSJsonClient BASECLASS
Definition: MediaStoreDataClient.h:93
Aws::MediaStoreData::PutObjectResponseReceivedHandler
std::function< void(const MediaStoreDataClient *, const Model::PutObjectRequest &, const Model::PutObjectOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PutObjectResponseReceivedHandler
Definition: MediaStoreDataClient.h:83
Aws::Utils::Outcome
Definition: Outcome.h:26
Aws::MediaStoreData::MediaStoreDataClient::GetObjectCallable
virtual Model::GetObjectOutcomeCallable GetObjectCallable(const Model::GetObjectRequest &request) const
Aws::MediaStoreData::MediaStoreDataClient::PutObjectCallable
virtual Model::PutObjectOutcomeCallable PutObjectCallable(const Model::PutObjectRequest &request) const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaStoreData::MediaStoreDataClient::PutObject
virtual Model::PutObjectOutcome PutObject(const Model::PutObjectRequest &request) const
MediaStoreDataErrors.h
AWSClient.h
Aws::MediaStoreData::MediaStoreDataClient::DeleteObjectCallable
virtual Model::DeleteObjectOutcomeCallable DeleteObjectCallable(const Model::DeleteObjectRequest &request) const
Aws::MediaStoreData::MediaStoreDataClient::MediaStoreDataClient
MediaStoreDataClient(const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::MediaStoreData::Model::DescribeObjectRequest
Definition: DescribeObjectRequest.h:22
Aws::MediaStoreData::MediaStoreDataClient::ListItemsCallable
virtual Model::ListItemsOutcomeCallable ListItemsCallable(const Model::ListItemsRequest &request) const
ClientConfiguration.h
Aws::MediaStoreData::MediaStoreDataClient::DescribeObject
virtual Model::DescribeObjectOutcome DescribeObject(const Model::DescribeObjectRequest &request) const
JsonSerializer.h
Aws::MediaStoreData::Model::DeleteObjectOutcomeCallable
std::future< DeleteObjectOutcome > DeleteObjectOutcomeCallable
Definition: MediaStoreDataClient.h:70