AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KinesisVideoMediaClient.h
1
6#pragma once
7#include <aws/kinesis-video-media/KinesisVideoMedia_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/kinesis-video-media/KinesisVideoMediaServiceClientModel.h>
13
14namespace Aws
15{
16namespace KinesisVideoMedia
17{
21 class AWS_KINESISVIDEOMEDIA_API KinesisVideoMediaClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<KinesisVideoMediaClient>
22 {
23 public:
25 static const char* GetServiceName();
26 static const char* GetAllocationTag();
27
30
36 std::shared_ptr<KinesisVideoMediaEndpointProviderBase> endpointProvider = nullptr);
37
43 std::shared_ptr<KinesisVideoMediaEndpointProviderBase> endpointProvider = nullptr,
45
50 KinesisVideoMediaClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
51 std::shared_ptr<KinesisVideoMediaEndpointProviderBase> endpointProvider = nullptr,
53
54
55 /* Legacy constructors due deprecation */
61
67 const Aws::Client::ClientConfiguration& clientConfiguration);
68
73 KinesisVideoMediaClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
74 const Aws::Client::ClientConfiguration& clientConfiguration);
75
76 /* End of legacy constructors due deprecation */
78
116
120 template<typename GetMediaRequestT = Model::GetMediaRequest>
121 Model::GetMediaOutcomeCallable GetMediaCallable(const GetMediaRequestT& request) const
122 {
123 return SubmitCallable(&KinesisVideoMediaClient::GetMedia, request);
124 }
125
129 template<typename GetMediaRequestT = Model::GetMediaRequest>
130 void GetMediaAsync(const GetMediaRequestT& request, const GetMediaResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
131 {
132 return SubmitAsync(&KinesisVideoMediaClient::GetMedia, request, handler, context);
133 }
134
135
136 void OverrideEndpoint(const Aws::String& endpoint);
137 std::shared_ptr<KinesisVideoMediaEndpointProviderBase>& accessEndpointProvider();
138 private:
140 void init(const KinesisVideoMediaClientConfiguration& clientConfiguration);
141
142 KinesisVideoMediaClientConfiguration m_clientConfiguration;
143 std::shared_ptr<KinesisVideoMediaEndpointProviderBase> m_endpointProvider;
144 };
145
146} // namespace KinesisVideoMedia
147} // namespace Aws
std::shared_ptr< KinesisVideoMediaEndpointProviderBase > & accessEndpointProvider()
KinesisVideoMediaEndpointProvider EndpointProviderType
Model::GetMediaOutcomeCallable GetMediaCallable(const GetMediaRequestT &request) const
KinesisVideoMediaClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
KinesisVideoMediaClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< KinesisVideoMediaEndpointProviderBase > endpointProvider=nullptr, const Aws::KinesisVideoMedia::KinesisVideoMediaClientConfiguration &clientConfiguration=Aws::KinesisVideoMedia::KinesisVideoMediaClientConfiguration())
void OverrideEndpoint(const Aws::String &endpoint)
KinesisVideoMediaClient(const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::GetMediaOutcome GetMedia(const Model::GetMediaRequest &request) const
KinesisVideoMediaClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
KinesisVideoMediaClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< KinesisVideoMediaEndpointProviderBase > endpointProvider=nullptr, const Aws::KinesisVideoMedia::KinesisVideoMediaClientConfiguration &clientConfiguration=Aws::KinesisVideoMedia::KinesisVideoMediaClientConfiguration())
KinesisVideoMediaClient(const Aws::KinesisVideoMedia::KinesisVideoMediaClientConfiguration &clientConfiguration=Aws::KinesisVideoMedia::KinesisVideoMediaClientConfiguration(), std::shared_ptr< KinesisVideoMediaEndpointProviderBase > endpointProvider=nullptr)
void GetMediaAsync(const GetMediaRequestT &request, const GetMediaResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
KinesisVideoMediaClientConfiguration ClientConfigurationType
std::future< GetMediaOutcome > GetMediaOutcomeCallable
std::function< void(const KinesisVideoMediaClient *, const Model::GetMediaRequest &, Model::GetMediaOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetMediaResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String