AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
LexRuntimeV2Client.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/lexv2-runtime/LexRuntimeV2PaginationBase.h>
12#include <aws/lexv2-runtime/LexRuntimeV2ServiceClientModel.h>
13#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
14
15namespace Aws {
16namespace LexRuntimeV2 {
21class AWS_LEXRUNTIMEV2_API LexRuntimeV2Client : public Aws::Client::AWSJsonClient,
22 public Aws::Client::ClientWithAsyncTemplateMethods<LexRuntimeV2Client>,
23 public LexRuntimeV2PaginationBase<LexRuntimeV2Client> {
24 public:
26 static const char* GetServiceName();
27 static const char* GetAllocationTag();
28
31
38 std::shared_ptr<LexRuntimeV2EndpointProviderBase> endpointProvider = nullptr);
39
45 const Aws::Auth::AWSCredentials& credentials, std::shared_ptr<LexRuntimeV2EndpointProviderBase> endpointProvider = nullptr,
47
53 const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
54 std::shared_ptr<LexRuntimeV2EndpointProviderBase> endpointProvider = nullptr,
56
57 /* Legacy constructors due deprecation */
63
68 LexRuntimeV2Client(const Aws::Auth::AWSCredentials& credentials, 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 return SubmitCallable(&LexRuntimeV2Client::DeleteSession, request);
102 }
103
108 template <typename DeleteSessionRequestT = Model::DeleteSessionRequest>
109 void DeleteSessionAsync(const DeleteSessionRequestT& request, const DeleteSessionResponseReceivedHandler& handler,
110 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
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 return SubmitCallable(&LexRuntimeV2Client::GetSession, request);
133 }
134
139 template <typename GetSessionRequestT = Model::GetSessionRequest>
140 void GetSessionAsync(const GetSessionRequestT& request, const GetSessionResponseReceivedHandler& handler,
141 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
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 return SubmitCallable(&LexRuntimeV2Client::PutSession, request);
160 }
161
166 template <typename PutSessionRequestT = Model::PutSessionRequest>
167 void PutSessionAsync(const PutSessionRequestT& request, const PutSessionResponseReceivedHandler& handler,
168 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
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 return SubmitCallable(&LexRuntimeV2Client::RecognizeText, request);
203 }
204
209 template <typename RecognizeTextRequestT = Model::RecognizeTextRequest>
210 void RecognizeTextAsync(const RecognizeTextRequestT& request, const RecognizeTextResponseReceivedHandler& handler,
211 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
212 return SubmitAsync(&LexRuntimeV2Client::RecognizeText, request, handler, context);
213 }
214
247
252 template <typename RecognizeUtteranceRequestT = Model::RecognizeUtteranceRequest>
253 Model::RecognizeUtteranceOutcomeCallable RecognizeUtteranceCallable(const RecognizeUtteranceRequestT& request) const {
254 return SubmitCallable(&LexRuntimeV2Client::RecognizeUtterance, request);
255 }
256
261 template <typename RecognizeUtteranceRequestT = Model::RecognizeUtteranceRequest>
262 void RecognizeUtteranceAsync(const RecognizeUtteranceRequestT& request, const RecognizeUtteranceResponseReceivedHandler& handler,
263 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
264 return SubmitAsync(&LexRuntimeV2Client::RecognizeUtterance, request, handler, context);
265 }
266
309 const StartConversationStreamReadyHandler& streamReadyHandler,
311 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& handlerContext = nullptr) const;
312
313 virtual void OverrideEndpoint(const Aws::String& endpoint);
314 virtual std::shared_ptr<LexRuntimeV2EndpointProviderBase>& accessEndpointProvider();
315
316 private:
318 void init(const LexRuntimeV2ClientConfiguration& clientConfiguration);
319
320 LexRuntimeV2ClientConfiguration m_clientConfiguration;
321 std::shared_ptr<LexRuntimeV2EndpointProviderBase> m_endpointProvider;
322};
323
324} // namespace LexRuntimeV2
325} // 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
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 OverrideEndpoint(const Aws::String &endpoint)
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())
virtual 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::DeleteSessionRequest &, const Model::DeleteSessionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> DeleteSessionResponseReceivedHandler
std::function< void(const LexRuntimeV2Client *, const Model::RecognizeUtteranceRequest &, Model::RecognizeUtteranceOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> RecognizeUtteranceResponseReceivedHandler
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::RecognizeTextRequest &, const Model::RecognizeTextOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> RecognizeTextResponseReceivedHandler
std::function< void(const LexRuntimeV2Client *, const Model::StartConversationRequest &, const Model::StartConversationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> StartConversationResponseReceivedHandler
std::function< void(Model::StartConversationRequestEventStream &)> StartConversationStreamReadyHandler
std::function< void(const LexRuntimeV2Client *, const Model::PutSessionRequest &, Model::PutSessionOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> PutSessionResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String