AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
PollyClient.h
1
6#pragma once
7#include <aws/core/client/AWSClient.h>
8#include <aws/core/client/AWSClientAsyncCRTP.h>
9#include <aws/core/client/ClientConfiguration.h>
10#include <aws/core/utils/json/JsonSerializer.h>
11#include <aws/polly/PollyServiceClientModel.h>
12#include <aws/polly/Polly_EXPORTS.h>
13
14namespace Aws {
15namespace Polly {
24 public:
26 static const char* GetServiceName();
27 static const char* GetAllocationTag();
28
31
37 std::shared_ptr<PollyEndpointProviderBase> endpointProvider = nullptr);
38
43 PollyClient(const Aws::Auth::AWSCredentials& credentials, std::shared_ptr<PollyEndpointProviderBase> endpointProvider = nullptr,
45
50 PollyClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
51 std::shared_ptr<PollyEndpointProviderBase> endpointProvider = nullptr,
53
54 /* Legacy constructors due deprecation */
59 PollyClient(const Aws::Client::ClientConfiguration& clientConfiguration);
60
65 PollyClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration);
66
71 PollyClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
72 const Aws::Client::ClientConfiguration& clientConfiguration);
73
74 /* End of legacy constructors due deprecation */
75 virtual ~PollyClient();
76
88
92 template <typename DeleteLexiconRequestT = Model::DeleteLexiconRequest>
93 Model::DeleteLexiconOutcomeCallable DeleteLexiconCallable(const DeleteLexiconRequestT& request) const {
94 return SubmitCallable(&PollyClient::DeleteLexicon, request);
95 }
96
101 template <typename DeleteLexiconRequestT = Model::DeleteLexiconRequest>
102 void DeleteLexiconAsync(const DeleteLexiconRequestT& request, const DeleteLexiconResponseReceivedHandler& handler,
103 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
104 return SubmitAsync(&PollyClient::DeleteLexicon, request, handler, context);
105 }
106
125
129 template <typename DescribeVoicesRequestT = Model::DescribeVoicesRequest>
130 Model::DescribeVoicesOutcomeCallable DescribeVoicesCallable(const DescribeVoicesRequestT& request = {}) const {
131 return SubmitCallable(&PollyClient::DescribeVoices, request);
132 }
133
138 template <typename DescribeVoicesRequestT = Model::DescribeVoicesRequest>
140 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
141 const DescribeVoicesRequestT& request = {}) const {
142 return SubmitAsync(&PollyClient::DescribeVoices, request, handler, context);
143 }
144
154
158 template <typename GetLexiconRequestT = Model::GetLexiconRequest>
159 Model::GetLexiconOutcomeCallable GetLexiconCallable(const GetLexiconRequestT& request) const {
160 return SubmitCallable(&PollyClient::GetLexicon, request);
161 }
162
167 template <typename GetLexiconRequestT = Model::GetLexiconRequest>
168 void GetLexiconAsync(const GetLexiconRequestT& request, const GetLexiconResponseReceivedHandler& handler,
169 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
170 return SubmitAsync(&PollyClient::GetLexicon, request, handler, context);
171 }
172
182
187 template <typename GetSpeechSynthesisTaskRequestT = Model::GetSpeechSynthesisTaskRequest>
188 Model::GetSpeechSynthesisTaskOutcomeCallable GetSpeechSynthesisTaskCallable(const GetSpeechSynthesisTaskRequestT& request) const {
189 return SubmitCallable(&PollyClient::GetSpeechSynthesisTask, request);
190 }
191
196 template <typename GetSpeechSynthesisTaskRequestT = Model::GetSpeechSynthesisTaskRequest>
197 void GetSpeechSynthesisTaskAsync(const GetSpeechSynthesisTaskRequestT& request,
199 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
200 return SubmitAsync(&PollyClient::GetSpeechSynthesisTask, request, handler, context);
201 }
202
212
216 template <typename ListLexiconsRequestT = Model::ListLexiconsRequest>
217 Model::ListLexiconsOutcomeCallable ListLexiconsCallable(const ListLexiconsRequestT& request = {}) const {
218 return SubmitCallable(&PollyClient::ListLexicons, request);
219 }
220
225 template <typename ListLexiconsRequestT = Model::ListLexiconsRequest>
227 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
228 const ListLexiconsRequestT& request = {}) const {
229 return SubmitAsync(&PollyClient::ListLexicons, request, handler, context);
230 }
231
240
245 template <typename ListSpeechSynthesisTasksRequestT = Model::ListSpeechSynthesisTasksRequest>
247 const ListSpeechSynthesisTasksRequestT& request = {}) const {
248 return SubmitCallable(&PollyClient::ListSpeechSynthesisTasks, request);
249 }
250
255 template <typename ListSpeechSynthesisTasksRequestT = Model::ListSpeechSynthesisTasksRequest>
257 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr,
258 const ListSpeechSynthesisTasksRequestT& request = {}) const {
259 return SubmitAsync(&PollyClient::ListSpeechSynthesisTasks, request, handler, context);
260 }
261
274
278 template <typename PutLexiconRequestT = Model::PutLexiconRequest>
279 Model::PutLexiconOutcomeCallable PutLexiconCallable(const PutLexiconRequestT& request) const {
280 return SubmitCallable(&PollyClient::PutLexicon, request);
281 }
282
287 template <typename PutLexiconRequestT = Model::PutLexiconRequest>
288 void PutLexiconAsync(const PutLexiconRequestT& request, const PutLexiconResponseReceivedHandler& handler,
289 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
290 return SubmitAsync(&PollyClient::PutLexicon, request, handler, context);
291 }
292
308
313 template <typename StartSpeechSynthesisTaskRequestT = Model::StartSpeechSynthesisTaskRequest>
314 Model::StartSpeechSynthesisTaskOutcomeCallable StartSpeechSynthesisTaskCallable(const StartSpeechSynthesisTaskRequestT& request) const {
315 return SubmitCallable(&PollyClient::StartSpeechSynthesisTask, request);
316 }
317
322 template <typename StartSpeechSynthesisTaskRequestT = Model::StartSpeechSynthesisTaskRequest>
323 void StartSpeechSynthesisTaskAsync(const StartSpeechSynthesisTaskRequestT& request,
325 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
326 return SubmitAsync(&PollyClient::StartSpeechSynthesisTask, request, handler, context);
327 }
328
340
345 template <typename SynthesizeSpeechRequestT = Model::SynthesizeSpeechRequest>
346 Model::SynthesizeSpeechOutcomeCallable SynthesizeSpeechCallable(const SynthesizeSpeechRequestT& request) const {
347 return SubmitCallable(&PollyClient::SynthesizeSpeech, request);
348 }
349
354 template <typename SynthesizeSpeechRequestT = Model::SynthesizeSpeechRequest>
355 void SynthesizeSpeechAsync(const SynthesizeSpeechRequestT& request, const SynthesizeSpeechResponseReceivedHandler& handler,
356 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
357 return SubmitAsync(&PollyClient::SynthesizeSpeech, request, handler, context);
358 }
359
360 void OverrideEndpoint(const Aws::String& endpoint);
361 std::shared_ptr<PollyEndpointProviderBase>& accessEndpointProvider();
362
363 private:
365 void init(const PollyClientConfiguration& clientConfiguration);
366
367 PollyClientConfiguration m_clientConfiguration;
368 std::shared_ptr<PollyEndpointProviderBase> m_endpointProvider;
369};
370
371} // namespace Polly
372} // 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:93
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:29
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:25
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:30
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::StartSpeechSynthesisTaskRequest &, const Model::StartSpeechSynthesisTaskOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> StartSpeechSynthesisTaskResponseReceivedHandler
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::SynthesizeSpeechRequest &, Model::SynthesizeSpeechOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> SynthesizeSpeechResponseReceivedHandler
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::GetLexiconRequest &, const Model::GetLexiconOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> GetLexiconResponseReceivedHandler
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::ListSpeechSynthesisTasksRequest &, const Model::ListSpeechSynthesisTasksOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> ListSpeechSynthesisTasksResponseReceivedHandler
std::function< void(const PollyClient *, const Model::DeleteLexiconRequest &, const Model::DeleteLexiconOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> DeleteLexiconResponseReceivedHandler
std::function< void(const PollyClient *, const Model::ListLexiconsRequest &, const Model::ListLexiconsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> ListLexiconsResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String