AWS SDK for C++  1.9.130
AWS SDK for C++
LexRuntimeV2Client.h
Go to the documentation of this file.
1 
6 #pragma once
19 #include <aws/core/NoResult.h>
22 #include <future>
23 #include <functional>
24 
25 namespace Aws
26 {
27 
28 namespace Http
29 {
30  class HttpClient;
31  class HttpClientFactory;
32 } // namespace Http
33 
34 namespace Utils
35 {
36  template< typename R, typename E> class Outcome;
37 namespace Event
38 {
39  class EventEncoderStream;
40 }
41 
42 namespace Threading
43 {
44  class Executor;
45 } // namespace Threading
46 } // namespace Utils
47 
48 namespace Auth
49 {
50  class AWSCredentials;
51  class AWSCredentialsProvider;
52 } // namespace Auth
53 
54 namespace Client
55 {
56  class RetryStrategy;
57 } // namespace Client
58 
59 namespace LexRuntimeV2
60 {
61 
62 namespace Model
63 {
65  class GetSessionRequest;
66  class PutSessionRequest;
71 
78 
79  typedef std::future<DeleteSessionOutcome> DeleteSessionOutcomeCallable;
80  typedef std::future<GetSessionOutcome> GetSessionOutcomeCallable;
81  typedef std::future<PutSessionOutcome> PutSessionOutcomeCallable;
82  typedef std::future<RecognizeTextOutcome> RecognizeTextOutcomeCallable;
83  typedef std::future<RecognizeUtteranceOutcome> RecognizeUtteranceOutcomeCallable;
84  typedef std::future<StartConversationOutcome> StartConversationOutcomeCallable;
85 } // namespace Model
86 
87  class LexRuntimeV2Client;
88 
89  typedef std::function<void(const LexRuntimeV2Client*, const Model::DeleteSessionRequest&, const Model::DeleteSessionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteSessionResponseReceivedHandler;
90  typedef std::function<void(const LexRuntimeV2Client*, const Model::GetSessionRequest&, const Model::GetSessionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetSessionResponseReceivedHandler;
91  typedef std::function<void(const LexRuntimeV2Client*, const Model::PutSessionRequest&, Model::PutSessionOutcome, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PutSessionResponseReceivedHandler;
92  typedef std::function<void(const LexRuntimeV2Client*, const Model::RecognizeTextRequest&, const Model::RecognizeTextOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > RecognizeTextResponseReceivedHandler;
93  typedef std::function<void(const LexRuntimeV2Client*, const Model::RecognizeUtteranceRequest&, Model::RecognizeUtteranceOutcome, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > RecognizeUtteranceResponseReceivedHandler;
95  typedef std::function<void(const LexRuntimeV2Client*, const Model::StartConversationRequest&, const Model::StartConversationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StartConversationResponseReceivedHandler;
96 
101  {
102  public:
104 
110 
116 
121  LexRuntimeV2Client(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
123 
125 
126 
142 
160 
177  virtual void DeleteSessionAsync(const Model::DeleteSessionRequest& request, const DeleteSessionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
178 
191 
206 
220  virtual void GetSessionAsync(const Model::GetSessionRequest& request, const GetSessionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
221 
230 
241 
251  virtual void PutSessionAsync(const Model::PutSessionRequest& request, const PutSessionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
252 
277 
304 
330  virtual void RecognizeTextAsync(const Model::RecognizeTextRequest& request, const RecognizeTextResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
331 
364 
399 
433  virtual void RecognizeUtteranceAsync(const Model::RecognizeUtteranceRequest& request, const RecognizeUtteranceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
434 
477  const StartConversationStreamReadyHandler& streamReadyHandler,
478  const StartConversationResponseReceivedHandler& responseHandler,
479  const std::shared_ptr<const Aws::Client::AsyncCallerContext>& handlerContext = nullptr) const;
480 
481 
482  void OverrideEndpoint(const Aws::String& endpoint);
483  private:
484  void init(const Aws::Client::ClientConfiguration& clientConfiguration);
485  void DeleteSessionAsyncHelper(const Model::DeleteSessionRequest& request, const DeleteSessionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
486  void GetSessionAsyncHelper(const Model::GetSessionRequest& request, const GetSessionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
487  void PutSessionAsyncHelper(const Model::PutSessionRequest& request, const PutSessionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
488  void RecognizeTextAsyncHelper(const Model::RecognizeTextRequest& request, const RecognizeTextResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
489  void RecognizeUtteranceAsyncHelper(const Model::RecognizeUtteranceRequest& request, const RecognizeUtteranceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
490 
491  Aws::String m_uri;
492  Aws::String m_configScheme;
493  std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
494  };
495 
496 } // namespace LexRuntimeV2
497 } // namespace Aws
Aws::LexRuntimeV2::Model::RecognizeTextOutcome
Aws::Utils::Outcome< RecognizeTextResult, LexRuntimeV2Error > RecognizeTextOutcome
Definition: LexRuntimeV2Client.h:75
Aws::DirectoryService::Model::LDAPSType::NOT_SET
@ NOT_SET
Aws::LexRuntimeV2::Model::GetSessionOutcomeCallable
std::future< GetSessionOutcome > GetSessionOutcomeCallable
Definition: LexRuntimeV2Client.h:80
Aws::LexRuntimeV2::LexRuntimeV2Client::GetSession
virtual Model::GetSessionOutcome GetSession(const Model::GetSessionRequest &request) const
RecognizeTextResult.h
Aws::LexRuntimeV2::Model::DeleteSessionRequest
Definition: DeleteSessionRequest.h:22
Aws::LexRuntimeV2::Model::StartConversationOutcome
Aws::Utils::Outcome< Aws::NoResult, LexRuntimeV2Error > StartConversationOutcome
Definition: LexRuntimeV2Client.h:77
Aws::LexRuntimeV2::Model::GetSessionOutcome
Aws::Utils::Outcome< GetSessionResult, LexRuntimeV2Error > GetSessionOutcome
Definition: LexRuntimeV2Client.h:73
Aws::LexRuntimeV2::LexRuntimeV2Client::RecognizeTextAsync
virtual void RecognizeTextAsync(const Model::RecognizeTextRequest &request, const RecognizeTextResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
AWSError.h
Aws::LexRuntimeV2::DeleteSessionResponseReceivedHandler
std::function< void(const LexRuntimeV2Client *, const Model::DeleteSessionRequest &, const Model::DeleteSessionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteSessionResponseReceivedHandler
Definition: LexRuntimeV2Client.h:87
Aws::IoTWireless::Model::Event
Event
Definition: Event.h:17
Aws::LexRuntimeV2::LexRuntimeV2Client::GetSessionAsync
virtual void GetSessionAsync(const Model::GetSessionRequest &request, const GetSessionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::LexRuntimeV2::LexRuntimeV2Client::PutSessionCallable
virtual Model::PutSessionOutcomeCallable PutSessionCallable(const Model::PutSessionRequest &request) const
Aws::LexRuntimeV2::GetSessionResponseReceivedHandler
std::function< void(const LexRuntimeV2Client *, const Model::GetSessionRequest &, const Model::GetSessionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetSessionResponseReceivedHandler
Definition: LexRuntimeV2Client.h:90
Aws::LexRuntimeV2::Model::DeleteSessionOutcomeCallable
std::future< DeleteSessionOutcome > DeleteSessionOutcomeCallable
Definition: LexRuntimeV2Client.h:79
Aws::LexRuntimeV2::LexRuntimeV2Client::StartConversationAsync
virtual void StartConversationAsync(Model::StartConversationRequest &request, const StartConversationStreamReadyHandler &streamReadyHandler, const StartConversationResponseReceivedHandler &responseHandler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &handlerContext=nullptr) const
Aws::LexRuntimeV2::Model::PutSessionOutcome
Aws::Utils::Outcome< PutSessionResult, LexRuntimeV2Error > PutSessionOutcome
Definition: LexRuntimeV2Client.h:74
Aws::LexRuntimeV2::LexRuntimeV2Client::LexRuntimeV2Client
LexRuntimeV2Client(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::LexRuntimeV2::Model::GetSessionRequest
Definition: GetSessionRequest.h:22
Aws::LexRuntimeV2::Model::PutSessionOutcomeCallable
std::future< PutSessionOutcome > PutSessionOutcomeCallable
Definition: LexRuntimeV2Client.h:81
AsyncCallerContext.h
DeleteSessionResult.h
PutSessionResult.h
Aws::LexRuntimeV2::LexRuntimeV2Client::RecognizeTextCallable
virtual Model::RecognizeTextOutcomeCallable RecognizeTextCallable(const Model::RecognizeTextRequest &request) const
NoResult.h
Aws::LexRuntimeV2::LexRuntimeV2Client::DeleteSession
virtual Model::DeleteSessionOutcome DeleteSession(const Model::DeleteSessionRequest &request) const
Aws::LexRuntimeV2::LexRuntimeV2Client::LexRuntimeV2Client
LexRuntimeV2Client(const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::LexRuntimeV2::LexRuntimeV2Client::OverrideEndpoint
void OverrideEndpoint(const Aws::String &endpoint)
Aws::Client::ClientConfiguration
Definition: ClientConfiguration.h:53
Aws::LexRuntimeV2::StartConversationResponseReceivedHandler
std::function< void(const LexRuntimeV2Client *, const Model::StartConversationRequest &, const Model::StartConversationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > StartConversationResponseReceivedHandler
Definition: LexRuntimeV2Client.h:95
Aws::LexRuntimeV2::Model::RecognizeUtteranceOutcome
Aws::Utils::Outcome< RecognizeUtteranceResult, LexRuntimeV2Error > RecognizeUtteranceOutcome
Definition: LexRuntimeV2Client.h:76
Aws::LexRuntimeV2::Model::StartConversationOutcomeCallable
std::future< StartConversationOutcome > StartConversationOutcomeCallable
Definition: LexRuntimeV2Client.h:84
LexRuntimeV2_EXPORTS.h
Aws::LexRuntimeV2::Model::RecognizeUtteranceOutcomeCallable
std::future< RecognizeUtteranceOutcome > RecognizeUtteranceOutcomeCallable
Definition: LexRuntimeV2Client.h:83
Aws::Auth::AWSCredentials
Definition: AWSCredentials.h:19
Aws::LexRuntimeV2::Model::PutSessionRequest
Definition: PutSessionRequest.h:26
Aws::LexRuntimeV2::Model::RecognizeTextRequest
Definition: RecognizeTextRequest.h:24
AWSString.h
Aws::LexRuntimeV2::Model::RecognizeUtteranceRequest
Definition: RecognizeUtteranceRequest.h:23
Aws::Client::AWSJsonClient
Definition: AWSClient.h:338
Aws::LexRuntimeV2::StartConversationStreamReadyHandler
std::function< void(Model::StartConversationRequestEventStream &)> StartConversationStreamReadyHandler
Definition: LexRuntimeV2Client.h:94
Aws::LexRuntimeV2::Model::RecognizeTextOutcomeCallable
std::future< RecognizeTextOutcome > RecognizeTextOutcomeCallable
Definition: LexRuntimeV2Client.h:82
Aws::LexRuntimeV2::LexRuntimeV2Client::RecognizeText
virtual Model::RecognizeTextOutcome RecognizeText(const Model::RecognizeTextRequest &request) const
Aws::LexRuntimeV2::PutSessionResponseReceivedHandler
std::function< void(const LexRuntimeV2Client *, const Model::PutSessionRequest &, Model::PutSessionOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PutSessionResponseReceivedHandler
Definition: LexRuntimeV2Client.h:91
Aws::LexRuntimeV2::LexRuntimeV2Client::RecognizeUtteranceAsync
virtual void RecognizeUtteranceAsync(const Model::RecognizeUtteranceRequest &request, const RecognizeUtteranceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::LexRuntimeV2::LexRuntimeV2Client::RecognizeUtterance
virtual Model::RecognizeUtteranceOutcome RecognizeUtterance(const Model::RecognizeUtteranceRequest &request) const
Aws::LexRuntimeV2::Model::StartConversationRequestEventStream
Definition: StartConversationRequestEventStream.h:31
Aws::LexRuntimeV2::LexRuntimeV2Client::DeleteSessionCallable
virtual Model::DeleteSessionOutcomeCallable DeleteSessionCallable(const Model::DeleteSessionRequest &request) const
Aws::LexRuntimeV2::Model::DeleteSessionOutcome
Aws::Utils::Outcome< DeleteSessionResult, LexRuntimeV2Error > DeleteSessionOutcome
Definition: LexRuntimeV2Client.h:70
RecognizeUtteranceResult.h
ClientConfiguration.h
Aws::LexRuntimeV2::LexRuntimeV2Client::DeleteSessionAsync
virtual void DeleteSessionAsync(const Model::DeleteSessionRequest &request, const DeleteSessionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::LexRuntimeV2::LexRuntimeV2Client::BASECLASS
Aws::Client::AWSJsonClient BASECLASS
Definition: LexRuntimeV2Client.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::LexRuntimeV2::LexRuntimeV2Client::RecognizeUtteranceCallable
virtual Model::RecognizeUtteranceOutcomeCallable RecognizeUtteranceCallable(const Model::RecognizeUtteranceRequest &request) const
HttpTypes.h
Aws::LexRuntimeV2::LexRuntimeV2Client::GetSessionCallable
virtual Model::GetSessionOutcomeCallable GetSessionCallable(const Model::GetSessionRequest &request) const
Aws::Utils::Outcome
Definition: Outcome.h:26
Aws::LexRuntimeV2::LexRuntimeV2Client
Definition: LexRuntimeV2Client.h:101
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LexRuntimeV2::LexRuntimeV2Client::~LexRuntimeV2Client
virtual ~LexRuntimeV2Client()
Aws::LexRuntimeV2::LexRuntimeV2Client::PutSession
virtual Model::PutSessionOutcome PutSession(const Model::PutSessionRequest &request) const
AWSClient.h
GetSessionResult.h
Aws::LexRuntimeV2::RecognizeTextResponseReceivedHandler
std::function< void(const LexRuntimeV2Client *, const Model::RecognizeTextRequest &, const Model::RecognizeTextOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > RecognizeTextResponseReceivedHandler
Definition: LexRuntimeV2Client.h:92
Aws::LexRuntimeV2::RecognizeUtteranceResponseReceivedHandler
std::function< void(const LexRuntimeV2Client *, const Model::RecognizeUtteranceRequest &, Model::RecognizeUtteranceOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > RecognizeUtteranceResponseReceivedHandler
Definition: LexRuntimeV2Client.h:93
LexRuntimeV2Errors.h
JsonSerializer.h
Aws::LexRuntimeV2::LexRuntimeV2Client::LexRuntimeV2Client
LexRuntimeV2Client(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::LexRuntimeV2::Model::StartConversationRequest
Definition: StartConversationRequest.h:27
AWS_LEXRUNTIMEV2_API
#define AWS_LEXRUNTIMEV2_API
Definition: LexRuntimeV2_EXPORTS.h:28
Aws::LexRuntimeV2::LexRuntimeV2Client::PutSessionAsync
virtual void PutSessionAsync(const Model::PutSessionRequest &request, const PutSessionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const