AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PollyClient.h
1
6#pragma once
7#include <aws/polly/Polly_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/polly/PollyServiceClientModel.h>
13
14namespace Aws
15{
16namespace Polly
17{
26 {
27 public:
29 static const char* GetServiceName();
30 static const char* GetAllocationTag();
31
34
40 std::shared_ptr<PollyEndpointProviderBase> endpointProvider = nullptr);
41
47 std::shared_ptr<PollyEndpointProviderBase> endpointProvider = nullptr,
49
54 PollyClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
55 std::shared_ptr<PollyEndpointProviderBase> endpointProvider = nullptr,
57
58
59 /* Legacy constructors due deprecation */
64 PollyClient(const Aws::Client::ClientConfiguration& clientConfiguration);
65
71 const Aws::Client::ClientConfiguration& clientConfiguration);
72
77 PollyClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
78 const Aws::Client::ClientConfiguration& clientConfiguration);
79
80 /* End of legacy constructors due deprecation */
81 virtual ~PollyClient();
82
94
98 template<typename DeleteLexiconRequestT = Model::DeleteLexiconRequest>
99 Model::DeleteLexiconOutcomeCallable DeleteLexiconCallable(const DeleteLexiconRequestT& request) const
100 {
101 return SubmitCallable(&PollyClient::DeleteLexicon, request);
102 }
103
107 template<typename DeleteLexiconRequestT = Model::DeleteLexiconRequest>
108 void DeleteLexiconAsync(const DeleteLexiconRequestT& request, const DeleteLexiconResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
109 {
110 return SubmitAsync(&PollyClient::DeleteLexicon, request, handler, context);
111 }
112
131
135 template<typename DescribeVoicesRequestT = Model::DescribeVoicesRequest>
136 Model::DescribeVoicesOutcomeCallable DescribeVoicesCallable(const DescribeVoicesRequestT& request = {}) const
137 {
138 return SubmitCallable(&PollyClient::DescribeVoices, request);
139 }
140
144 template<typename DescribeVoicesRequestT = Model::DescribeVoicesRequest>
145 void DescribeVoicesAsync(const DescribeVoicesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const DescribeVoicesRequestT& request = {}) const
146 {
147 return SubmitAsync(&PollyClient::DescribeVoices, request, handler, context);
148 }
149
159
163 template<typename GetLexiconRequestT = Model::GetLexiconRequest>
164 Model::GetLexiconOutcomeCallable GetLexiconCallable(const GetLexiconRequestT& request) const
165 {
166 return SubmitCallable(&PollyClient::GetLexicon, request);
167 }
168
172 template<typename GetLexiconRequestT = Model::GetLexiconRequest>
173 void GetLexiconAsync(const GetLexiconRequestT& request, const GetLexiconResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
174 {
175 return SubmitAsync(&PollyClient::GetLexicon, request, handler, context);
176 }
177
187
191 template<typename GetSpeechSynthesisTaskRequestT = Model::GetSpeechSynthesisTaskRequest>
192 Model::GetSpeechSynthesisTaskOutcomeCallable GetSpeechSynthesisTaskCallable(const GetSpeechSynthesisTaskRequestT& request) const
193 {
194 return SubmitCallable(&PollyClient::GetSpeechSynthesisTask, request);
195 }
196
200 template<typename GetSpeechSynthesisTaskRequestT = Model::GetSpeechSynthesisTaskRequest>
201 void GetSpeechSynthesisTaskAsync(const GetSpeechSynthesisTaskRequestT& request, const GetSpeechSynthesisTaskResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
202 {
203 return SubmitAsync(&PollyClient::GetSpeechSynthesisTask, request, handler, context);
204 }
205
215
219 template<typename ListLexiconsRequestT = Model::ListLexiconsRequest>
220 Model::ListLexiconsOutcomeCallable ListLexiconsCallable(const ListLexiconsRequestT& request = {}) const
221 {
222 return SubmitCallable(&PollyClient::ListLexicons, request);
223 }
224
228 template<typename ListLexiconsRequestT = Model::ListLexiconsRequest>
229 void ListLexiconsAsync(const ListLexiconsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListLexiconsRequestT& request = {}) const
230 {
231 return SubmitAsync(&PollyClient::ListLexicons, request, handler, context);
232 }
233
242
246 template<typename ListSpeechSynthesisTasksRequestT = Model::ListSpeechSynthesisTasksRequest>
247 Model::ListSpeechSynthesisTasksOutcomeCallable ListSpeechSynthesisTasksCallable(const ListSpeechSynthesisTasksRequestT& request = {}) const
248 {
249 return SubmitCallable(&PollyClient::ListSpeechSynthesisTasks, request);
250 }
251
255 template<typename ListSpeechSynthesisTasksRequestT = Model::ListSpeechSynthesisTasksRequest>
256 void ListSpeechSynthesisTasksAsync(const ListSpeechSynthesisTasksResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListSpeechSynthesisTasksRequestT& request = {}) const
257 {
258 return SubmitAsync(&PollyClient::ListSpeechSynthesisTasks, request, handler, context);
259 }
260
273
277 template<typename PutLexiconRequestT = Model::PutLexiconRequest>
278 Model::PutLexiconOutcomeCallable PutLexiconCallable(const PutLexiconRequestT& request) const
279 {
280 return SubmitCallable(&PollyClient::PutLexicon, request);
281 }
282
286 template<typename PutLexiconRequestT = Model::PutLexiconRequest>
287 void PutLexiconAsync(const PutLexiconRequestT& request, const PutLexiconResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
288 {
289 return SubmitAsync(&PollyClient::PutLexicon, request, handler, context);
290 }
291
307
311 template<typename StartSpeechSynthesisTaskRequestT = Model::StartSpeechSynthesisTaskRequest>
312 Model::StartSpeechSynthesisTaskOutcomeCallable StartSpeechSynthesisTaskCallable(const StartSpeechSynthesisTaskRequestT& request) const
313 {
314 return SubmitCallable(&PollyClient::StartSpeechSynthesisTask, request);
315 }
316
320 template<typename StartSpeechSynthesisTaskRequestT = Model::StartSpeechSynthesisTaskRequest>
321 void StartSpeechSynthesisTaskAsync(const StartSpeechSynthesisTaskRequestT& request, const StartSpeechSynthesisTaskResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
322 {
323 return SubmitAsync(&PollyClient::StartSpeechSynthesisTask, request, handler, context);
324 }
325
337
341 template<typename SynthesizeSpeechRequestT = Model::SynthesizeSpeechRequest>
342 Model::SynthesizeSpeechOutcomeCallable SynthesizeSpeechCallable(const SynthesizeSpeechRequestT& request) const
343 {
344 return SubmitCallable(&PollyClient::SynthesizeSpeech, request);
345 }
346
350 template<typename SynthesizeSpeechRequestT = Model::SynthesizeSpeechRequest>
351 void SynthesizeSpeechAsync(const SynthesizeSpeechRequestT& request, const SynthesizeSpeechResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
352 {
353 return SubmitAsync(&PollyClient::SynthesizeSpeech, request, handler, context);
354 }
355
356
357 void OverrideEndpoint(const Aws::String& endpoint);
358 std::shared_ptr<PollyEndpointProviderBase>& accessEndpointProvider();
359 private:
361 void init(const PollyClientConfiguration& clientConfiguration);
362
363 PollyClientConfiguration m_clientConfiguration;
364 std::shared_ptr<PollyEndpointProviderBase> m_endpointProvider;
365 };
366
367} // namespace Polly
368} // namespace Aws
PollyClient(const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::GetLexiconOutcome GetLexicon(const Model::GetLexiconRequest &request) const
void DescribeVoicesAsync(const DescribeVoicesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const DescribeVoicesRequestT &request={}) const
PollyClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
void PutLexiconAsync(const PutLexiconRequestT &request, const PutLexiconResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void ListSpeechSynthesisTasksAsync(const ListSpeechSynthesisTasksResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListSpeechSynthesisTasksRequestT &request={}) const
virtual Model::GetSpeechSynthesisTaskOutcome GetSpeechSynthesisTask(const Model::GetSpeechSynthesisTaskRequest &request) const
virtual Model::PutLexiconOutcome PutLexicon(const Model::PutLexiconRequest &request) const
virtual Model::DescribeVoicesOutcome DescribeVoices(const Model::DescribeVoicesRequest &request={}) const
void ListLexiconsAsync(const ListLexiconsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListLexiconsRequestT &request={}) const
Model::ListSpeechSynthesisTasksOutcomeCallable ListSpeechSynthesisTasksCallable(const ListSpeechSynthesisTasksRequestT &request={}) const
void DeleteLexiconAsync(const DeleteLexiconRequestT &request, const DeleteLexiconResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void GetSpeechSynthesisTaskAsync(const GetSpeechSynthesisTaskRequestT &request, const GetSpeechSynthesisTaskResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::DescribeVoicesOutcomeCallable DescribeVoicesCallable(const DescribeVoicesRequestT &request={}) const
virtual Model::ListLexiconsOutcome ListLexicons(const Model::ListLexiconsRequest &request={}) const
virtual Model::DeleteLexiconOutcome DeleteLexicon(const Model::DeleteLexiconRequest &request) const
virtual Model::StartSpeechSynthesisTaskOutcome StartSpeechSynthesisTask(const Model::StartSpeechSynthesisTaskRequest &request) const
Model::DeleteLexiconOutcomeCallable DeleteLexiconCallable(const DeleteLexiconRequestT &request) const
Definition PollyClient.h:99
Model::StartSpeechSynthesisTaskOutcomeCallable StartSpeechSynthesisTaskCallable(const StartSpeechSynthesisTaskRequestT &request) const
void SynthesizeSpeechAsync(const SynthesizeSpeechRequestT &request, const SynthesizeSpeechResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
PollyClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< PollyEndpointProviderBase > endpointProvider=nullptr, const Aws::Polly::PollyClientConfiguration &clientConfiguration=Aws::Polly::PollyClientConfiguration())
PollyClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< PollyEndpointProviderBase > endpointProvider=nullptr, const Aws::Polly::PollyClientConfiguration &clientConfiguration=Aws::Polly::PollyClientConfiguration())
virtual Model::ListSpeechSynthesisTasksOutcome ListSpeechSynthesisTasks(const Model::ListSpeechSynthesisTasksRequest &request={}) const
void OverrideEndpoint(const Aws::String &endpoint)
PollyClient(const Aws::Polly::PollyClientConfiguration &clientConfiguration=Aws::Polly::PollyClientConfiguration(), std::shared_ptr< PollyEndpointProviderBase > endpointProvider=nullptr)
static const char * GetAllocationTag()
Model::GetSpeechSynthesisTaskOutcomeCallable GetSpeechSynthesisTaskCallable(const GetSpeechSynthesisTaskRequestT &request) const
std::shared_ptr< PollyEndpointProviderBase > & accessEndpointProvider()
PollyClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
static const char * GetServiceName()
Model::GetLexiconOutcomeCallable GetLexiconCallable(const GetLexiconRequestT &request) const
PollyClientConfiguration ClientConfigurationType
Definition PollyClient.h:32
void StartSpeechSynthesisTaskAsync(const StartSpeechSynthesisTaskRequestT &request, const StartSpeechSynthesisTaskResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::SynthesizeSpeechOutcome SynthesizeSpeech(const Model::SynthesizeSpeechRequest &request) const
Model::ListLexiconsOutcomeCallable ListLexiconsCallable(const ListLexiconsRequestT &request={}) const
Aws::Client::AWSJsonClient BASECLASS
Definition PollyClient.h:28
void GetLexiconAsync(const GetLexiconRequestT &request, const GetLexiconResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::PutLexiconOutcomeCallable PutLexiconCallable(const PutLexiconRequestT &request) const
Model::SynthesizeSpeechOutcomeCallable SynthesizeSpeechCallable(const SynthesizeSpeechRequestT &request) const
PollyEndpointProvider EndpointProviderType
Definition PollyClient.h:33
std::future< ListSpeechSynthesisTasksOutcome > ListSpeechSynthesisTasksOutcomeCallable
std::future< DeleteLexiconOutcome > DeleteLexiconOutcomeCallable
std::future< GetLexiconOutcome > GetLexiconOutcomeCallable
std::future< PutLexiconOutcome > PutLexiconOutcomeCallable
std::future< GetSpeechSynthesisTaskOutcome > GetSpeechSynthesisTaskOutcomeCallable
std::future< ListLexiconsOutcome > ListLexiconsOutcomeCallable
std::future< SynthesizeSpeechOutcome > SynthesizeSpeechOutcomeCallable
std::future< StartSpeechSynthesisTaskOutcome > StartSpeechSynthesisTaskOutcomeCallable
std::future< DescribeVoicesOutcome > DescribeVoicesOutcomeCallable
std::function< void(const PollyClient *, const Model::ListSpeechSynthesisTasksRequest &, const Model::ListSpeechSynthesisTasksOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListSpeechSynthesisTasksResponseReceivedHandler
std::function< void(const PollyClient *, const Model::SynthesizeSpeechRequest &, Model::SynthesizeSpeechOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > SynthesizeSpeechResponseReceivedHandler
std::function< void(const PollyClient *, const Model::GetSpeechSynthesisTaskRequest &, const Model::GetSpeechSynthesisTaskOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetSpeechSynthesisTaskResponseReceivedHandler
std::function< void(const PollyClient *, const Model::GetLexiconRequest &, const Model::GetLexiconOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetLexiconResponseReceivedHandler
std::function< void(const PollyClient *, const Model::ListLexiconsRequest &, const Model::ListLexiconsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListLexiconsResponseReceivedHandler
std::function< void(const PollyClient *, const Model::StartSpeechSynthesisTaskRequest &, const Model::StartSpeechSynthesisTaskOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > StartSpeechSynthesisTaskResponseReceivedHandler
std::function< void(const PollyClient *, const Model::PutLexiconRequest &, const Model::PutLexiconOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PutLexiconResponseReceivedHandler
std::function< void(const PollyClient *, const Model::DescribeVoicesRequest &, const Model::DescribeVoicesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeVoicesResponseReceivedHandler
std::function< void(const PollyClient *, const Model::DeleteLexiconRequest &, const Model::DeleteLexiconOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteLexiconResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String