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/LexRuntimeV2Waiter.h>
14#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
17namespace LexRuntimeV2 {
40 std::shared_ptr<LexRuntimeV2EndpointProviderBase> endpointProvider =
nullptr);
47 const Aws::Auth::AWSCredentials& credentials, std::shared_ptr<LexRuntimeV2EndpointProviderBase> endpointProvider =
nullptr,
55 const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
56 std::shared_ptr<LexRuntimeV2EndpointProviderBase> endpointProvider =
nullptr,
76 LexRuntimeV2Client(
const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
101 template <
typename DeleteSessionRequestT = Model::DeleteSessionRequest>
103 return SubmitCallable(&LexRuntimeV2Client::DeleteSession, request);
110 template <
typename DeleteSessionRequestT = Model::DeleteSessionRequest>
112 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context =
nullptr)
const {
113 return SubmitAsync(&LexRuntimeV2Client::DeleteSession, request, handler, context);
132 template <
typename GetSessionRequestT = Model::GetSessionRequest>
134 return SubmitCallable(&LexRuntimeV2Client::GetSession, request);
141 template <
typename GetSessionRequestT = Model::GetSessionRequest>
143 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context =
nullptr)
const {
144 return SubmitAsync(&LexRuntimeV2Client::GetSession, request, handler, context);
159 template <
typename PutSessionRequestT = Model::PutSessionRequest>
161 return SubmitCallable(&LexRuntimeV2Client::PutSession, request);
168 template <
typename PutSessionRequestT = Model::PutSessionRequest>
170 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context =
nullptr)
const {
171 return SubmitAsync(&LexRuntimeV2Client::PutSession, request, handler, context);
202 template <
typename RecognizeTextRequestT = Model::RecognizeTextRequest>
204 return SubmitCallable(&LexRuntimeV2Client::RecognizeText, request);
211 template <
typename RecognizeTextRequestT = Model::RecognizeTextRequest>
213 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context =
nullptr)
const {
214 return SubmitAsync(&LexRuntimeV2Client::RecognizeText, request, handler, context);
254 template <
typename RecognizeUtteranceRequestT = Model::RecognizeUtteranceRequest>
256 return SubmitCallable(&LexRuntimeV2Client::RecognizeUtterance, request);
263 template <
typename RecognizeUtteranceRequestT = Model::RecognizeUtteranceRequest>
265 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context =
nullptr)
const {
266 return SubmitAsync(&LexRuntimeV2Client::RecognizeUtterance, request, handler, context);
313 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& handlerContext =
nullptr)
const;
329 std::shared_ptr<LexRuntimeV2EndpointProviderBase> m_endpointProvider;
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
Aws::Client::AWSJsonClient BASECLASS
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 ~LexRuntimeV2Client()
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