AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LexRuntimeV2Client.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_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/lexv2-runtime/LexRuntimeV2ServiceClientModel.h>
13
14namespace Aws
15{
16namespace LexRuntimeV2
17{
22 class AWS_LEXRUNTIMEV2_API LexRuntimeV2Client : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<LexRuntimeV2Client>
23 {
24 public:
26 static const char* GetServiceName();
27 static const char* GetAllocationTag();
28
31
37 std::shared_ptr<LexRuntimeV2EndpointProviderBase> endpointProvider = nullptr);
38
44 std::shared_ptr<LexRuntimeV2EndpointProviderBase> endpointProvider = nullptr,
46
51 LexRuntimeV2Client(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
52 std::shared_ptr<LexRuntimeV2EndpointProviderBase> endpointProvider = nullptr,
54
55
56 /* Legacy constructors due deprecation */
62
68 const Aws::Client::ClientConfiguration& clientConfiguration);
69
74 LexRuntimeV2Client(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
75 const Aws::Client::ClientConfiguration& clientConfiguration);
76
77 /* End of legacy constructors due deprecation */
79
95
99 template<typename DeleteSessionRequestT = Model::DeleteSessionRequest>
100 Model::DeleteSessionOutcomeCallable DeleteSessionCallable(const DeleteSessionRequestT& request) const
101 {
102 return SubmitCallable(&LexRuntimeV2Client::DeleteSession, request);
103 }
104
108 template<typename DeleteSessionRequestT = Model::DeleteSessionRequest>
109 void DeleteSessionAsync(const DeleteSessionRequestT& request, const DeleteSessionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
110 {
111 return SubmitAsync(&LexRuntimeV2Client::DeleteSession, request, handler, context);
112 }
113
126
130 template<typename GetSessionRequestT = Model::GetSessionRequest>
131 Model::GetSessionOutcomeCallable GetSessionCallable(const GetSessionRequestT& request) const
132 {
133 return SubmitCallable(&LexRuntimeV2Client::GetSession, request);
134 }
135
139 template<typename GetSessionRequestT = Model::GetSessionRequest>
140 void GetSessionAsync(const GetSessionRequestT& request, const GetSessionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
141 {
142 return SubmitAsync(&LexRuntimeV2Client::GetSession, request, handler, context);
143 }
144
153
157 template<typename PutSessionRequestT = Model::PutSessionRequest>
158 Model::PutSessionOutcomeCallable PutSessionCallable(const PutSessionRequestT& request) const
159 {
160 return SubmitCallable(&LexRuntimeV2Client::PutSession, request);
161 }
162
166 template<typename PutSessionRequestT = Model::PutSessionRequest>
167 void PutSessionAsync(const PutSessionRequestT& request, const PutSessionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
168 {
169 return SubmitAsync(&LexRuntimeV2Client::PutSession, request, handler, context);
170 }
171
196
200 template<typename RecognizeTextRequestT = Model::RecognizeTextRequest>
201 Model::RecognizeTextOutcomeCallable RecognizeTextCallable(const RecognizeTextRequestT& request) const
202 {
203 return SubmitCallable(&LexRuntimeV2Client::RecognizeText, request);
204 }
205
209 template<typename RecognizeTextRequestT = Model::RecognizeTextRequest>
210 void RecognizeTextAsync(const RecognizeTextRequestT& request, const RecognizeTextResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
211 {
212 return SubmitAsync(&LexRuntimeV2Client::RecognizeText, request, handler, context);
213 }
214
247
251 template<typename RecognizeUtteranceRequestT = Model::RecognizeUtteranceRequest>
252 Model::RecognizeUtteranceOutcomeCallable RecognizeUtteranceCallable(const RecognizeUtteranceRequestT& request) const
253 {
254 return SubmitCallable(&LexRuntimeV2Client::RecognizeUtterance, request);
255 }
256
260 template<typename RecognizeUtteranceRequestT = Model::RecognizeUtteranceRequest>
261 void RecognizeUtteranceAsync(const RecognizeUtteranceRequestT& request, const RecognizeUtteranceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
262 {
263 return SubmitAsync(&LexRuntimeV2Client::RecognizeUtterance, request, handler, context);
264 }
265
308 const StartConversationStreamReadyHandler& streamReadyHandler,
310 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& handlerContext = nullptr) const;
311
312
313 void OverrideEndpoint(const Aws::String& endpoint);
314 std::shared_ptr<LexRuntimeV2EndpointProviderBase>& accessEndpointProvider();
315 private:
317 void init(const LexRuntimeV2ClientConfiguration& clientConfiguration);
318
319 LexRuntimeV2ClientConfiguration m_clientConfiguration;
320 std::shared_ptr<LexRuntimeV2EndpointProviderBase> m_endpointProvider;
321 };
322
323} // namespace LexRuntimeV2
324} // namespace Aws
Model::DeleteSessionOutcomeCallable DeleteSessionCallable(const DeleteSessionRequestT &request) const
LexRuntimeV2Client(const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::GetSessionOutcome GetSession(const Model::GetSessionRequest &request) const
LexRuntimeV2Client(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
void PutSessionAsync(const PutSessionRequestT &request, const PutSessionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void GetSessionAsync(const GetSessionRequestT &request, const GetSessionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::RecognizeTextOutcome RecognizeText(const Model::RecognizeTextRequest &request) const
void RecognizeTextAsync(const RecognizeTextRequestT &request, const RecognizeTextResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void OverrideEndpoint(const Aws::String &endpoint)
static const char * GetAllocationTag()
static const char * GetServiceName()
Model::RecognizeUtteranceOutcomeCallable RecognizeUtteranceCallable(const RecognizeUtteranceRequestT &request) const
void RecognizeUtteranceAsync(const RecognizeUtteranceRequestT &request, const RecognizeUtteranceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
LexRuntimeV2Client(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< LexRuntimeV2EndpointProviderBase > endpointProvider=nullptr, const Aws::LexRuntimeV2::LexRuntimeV2ClientConfiguration &clientConfiguration=Aws::LexRuntimeV2::LexRuntimeV2ClientConfiguration())
virtual Model::PutSessionOutcome PutSession(const Model::PutSessionRequest &request) const
void DeleteSessionAsync(const DeleteSessionRequestT &request, const DeleteSessionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::PutSessionOutcomeCallable PutSessionCallable(const PutSessionRequestT &request) const
Model::RecognizeTextOutcomeCallable RecognizeTextCallable(const RecognizeTextRequestT &request) const
LexRuntimeV2ClientConfiguration ClientConfigurationType
virtual Model::RecognizeUtteranceOutcome RecognizeUtterance(const Model::RecognizeUtteranceRequest &request) const
LexRuntimeV2EndpointProvider EndpointProviderType
LexRuntimeV2Client(const Aws::LexRuntimeV2::LexRuntimeV2ClientConfiguration &clientConfiguration=Aws::LexRuntimeV2::LexRuntimeV2ClientConfiguration(), std::shared_ptr< LexRuntimeV2EndpointProviderBase > endpointProvider=nullptr)
virtual void StartConversationAsync(Model::StartConversationRequest &request, const StartConversationStreamReadyHandler &streamReadyHandler, const StartConversationResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &handlerContext=nullptr) const
LexRuntimeV2Client(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::GetSessionOutcomeCallable GetSessionCallable(const GetSessionRequestT &request) const
virtual Model::DeleteSessionOutcome DeleteSession(const Model::DeleteSessionRequest &request) const
LexRuntimeV2Client(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< LexRuntimeV2EndpointProviderBase > endpointProvider=nullptr, const Aws::LexRuntimeV2::LexRuntimeV2ClientConfiguration &clientConfiguration=Aws::LexRuntimeV2::LexRuntimeV2ClientConfiguration())
std::shared_ptr< LexRuntimeV2EndpointProviderBase > & accessEndpointProvider()
std::future< GetSessionOutcome > GetSessionOutcomeCallable
std::future< RecognizeUtteranceOutcome > RecognizeUtteranceOutcomeCallable
std::future< DeleteSessionOutcome > DeleteSessionOutcomeCallable
std::future< RecognizeTextOutcome > RecognizeTextOutcomeCallable
std::future< PutSessionOutcome > PutSessionOutcomeCallable
std::function< void(const LexRuntimeV2Client *, const Model::PutSessionRequest &, Model::PutSessionOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PutSessionResponseReceivedHandler
std::function< void(const LexRuntimeV2Client *, const Model::GetSessionRequest &, const Model::GetSessionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetSessionResponseReceivedHandler
std::function< void(const LexRuntimeV2Client *, const Model::DeleteSessionRequest &, const Model::DeleteSessionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteSessionResponseReceivedHandler
std::function< void(const LexRuntimeV2Client *, const Model::RecognizeTextRequest &, const Model::RecognizeTextOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > RecognizeTextResponseReceivedHandler
std::function< void(const LexRuntimeV2Client *, const Model::RecognizeUtteranceRequest &, Model::RecognizeUtteranceOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > RecognizeUtteranceResponseReceivedHandler
std::function< void(Model::StartConversationRequestEventStream &)> StartConversationStreamReadyHandler
std::function< void(const LexRuntimeV2Client *, const Model::StartConversationRequest &, const Model::StartConversationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > StartConversationResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String