Public Member Functions | Protected Attributes | List of all members
Aws::Lex::LexInteractor Class Reference

#include <lex_common.h>

Inheritance diagram for Aws::Lex::LexInteractor:
Inheritance graph
[legend]

Public Member Functions

ErrorCode ConfigureAwsLex (std::shared_ptr< LexConfiguration > lex_configuration, std::shared_ptr< Aws::LexRuntimeService::LexRuntimeServiceClient > lex_runtime_client)
 Configure the Lex Interactor. More...
 
ErrorCode PostContent (const LexRequest &request, LexResponse &response) override
 

Protected Attributes

std::shared_ptr< LexConfigurationlex_configuration_
 
std::shared_ptr< Aws::LexRuntimeService::LexRuntimeServiceClient > lex_runtime_client_
 

Detailed Description

Class responsible for simplified interaction with Lex.

Definition at line 137 of file lex_common.h.

Member Function Documentation

ErrorCode Aws::Lex::LexInteractor::ConfigureAwsLex ( std::shared_ptr< LexConfiguration lex_configuration,
std::shared_ptr< Aws::LexRuntimeService::LexRuntimeServiceClient >  lex_runtime_client 
)

Configure the Lex Interactor.

Parameters
lex_configurationto configure lex calls
lex_runtime_clientto facilitate lex connection
Returns
INVALID_LEX_CONFIGURATION if either arguments are null SUCCESS otherwise

Definition at line 105 of file lex_common.cpp.

ErrorCode Aws::Lex::LexInteractor::PostContent ( const LexRequest request,
LexResponse response 
)
overridevirtual

Post content to lex given an audio text conversation request and respond to it. Configures the call with the lex configuration and lex_runtime_client.

Parameters
requestto populate the lex call with
responseto fill with data received by lex
Returns
error code, SUCCESS if all data is received

Implements Aws::Lex::PostContentInterface.

Definition at line 117 of file lex_common.cpp.

Member Data Documentation

std::shared_ptr<LexConfiguration> Aws::Lex::LexInteractor::lex_configuration_
protected

The Lex specific configuration for the amazon bot.

Definition at line 143 of file lex_common.h.

std::shared_ptr<Aws::LexRuntimeService::LexRuntimeServiceClient> Aws::Lex::LexInteractor::lex_runtime_client_
protected

The lex runtime client to use for lex api calls.

Definition at line 148 of file lex_common.h.


The documentation for this class was generated from the following files:


lex_common
Author(s): AWS RoboMaker
autogenerated on Sat Mar 6 2021 03:43:24