Classes | Enumerations | Functions | Variables
Aws::Lex Namespace Reference

Classes

class  LexCommonTestFixture
 
class  LexConfiguration
 
class  LexInteractor
 
struct  LexRequest
 
struct  LexResponse
 
class  LexRuntimeServiceClientMock
 
class  PostContentInterface
 
class  TestData
 
class  TestLexConfiguration
 
class  TestLexInteractor
 

Enumerations

enum  ErrorCode {
  SUCCESS = 0, INVALID_RESULT, FAILED_POST_CONTENT, RETRY_POST_CONTENT,
  INVALID_LEX_CONFIGURATION, INVALID_ARGUMENT
}
 

Functions

ErrorCode BuildLexInteractor (std::shared_ptr< Client::ParameterReaderInterface > params, LexInteractor &lex_interactor)
 Utility function to configure a LexInteractor. More...
 
ErrorCode CopyResult (Aws::LexRuntimeService::Model::PostContentResult &result, LexResponse &response)
 Copy the PostContentRestult to a LexResponse. More...
 
ErrorCode LoadLexParameters (const Client::ParameterReaderInterface &parameter_interface, LexConfiguration &lex_configuration)
 
std::ostream & operator<< (std::ostream &os, const Aws::LexRuntimeService::Model::PostContentRequest &request)
 
std::ostream & operator<< (std::ostream &os, const Aws::LexRuntimeService::Model::PostContentResult &result)
 
 TEST (BuildLexInteractor, TestBuildInteractorError)
 
 TEST (BuildLexInteractor, TestBuildInteractorSuccess)
 
 TEST_F (LexCommonTestFixture, CopyResultFailureInvalidJson)
 
 TEST_F (LexCommonTestFixture, CopyResultSuccessValidJson)
 
 TEST_F (LexCommonTestFixture, CopyResultSuccessNoSlots)
 
 TEST_F (TestLexInteractor, TestLexInteractorFailedConfiguration)
 
 TEST_F (TestLexInteractor, TestLexInteractorPostContentText)
 
 TEST_F (TestLexInteractor, TestLexInteractorPostContentAudio)
 
 TEST_F (TestLexInteractor, TestLexInteractorPostContentFailed)
 
 TEST_F (TestLexInteractor, TestLexInteractorPostContentRetry)
 

Variables

static const char * kAllocationTag = "lex"
 
constexpr char kLexConfigurationNamespace [] = "lex_configuration"
 

Enumeration Type Documentation

Error codes for lex.

Enumerator
SUCCESS 
INVALID_RESULT 
FAILED_POST_CONTENT 
RETRY_POST_CONTENT 
INVALID_LEX_CONFIGURATION 
INVALID_ARGUMENT 

Definition at line 27 of file error_codes.h.

Function Documentation

ErrorCode Aws::Lex::BuildLexInteractor ( std::shared_ptr< Client::ParameterReaderInterface params,
LexInteractor lex_interactor 
)
inline

Utility function to configure a LexInteractor.

Build a LexInteractor with the parameter reader specified.

Parameters
paramsto use in the lex interactor
lex_interactor[OUT] resulting simplified lex interface
Returns
SUCCESS if the lex interactor is built, error otherwise

Definition at line 185 of file lex_common.h.

ErrorCode Aws::Lex::CopyResult ( Aws::LexRuntimeService::Model::PostContentResult &  result,
LexResponse response 
)

Copy the PostContentRestult to a LexResponse.

Copy a result into an AudioTextConversionResponse.

Parameters
resultto copy to the response
response[out] result copy
Returns
error code, SUCCESS if the result is copied Format the contents of a PostContentResult and insert them into the respective Lex Response Fields.
Parameters
resultto copy to the response
response[out] result copy
Returns
error code, SUCCESS if the result is copied, INVALID_RESULT if unable to parse the Slots received

Definition at line 62 of file lex_common.cpp.

ErrorCode Aws::Lex::LoadLexParameters ( const Client::ParameterReaderInterface parameter_interface,
LexConfiguration lex_configuration 
)

Load lex parameters from ros param server.

Parameters
parameter_interfaceto retrieve the parameters from.
lex_configurationto fill with the parameter data
Returns
SUCCESS if able to get all parameters, INVALID_LEX_CONFIGURATION otherwise

Definition at line 25 of file lex_param_helper.cpp.

std::ostream & Aws::Lex::operator<< ( std::ostream &  os,
const Aws::LexRuntimeService::Model::PostContentRequest &  request 
)

Definition at line 27 of file lex_common.cpp.

std::ostream & Aws::Lex::operator<< ( std::ostream &  os,
const Aws::LexRuntimeService::Model::PostContentResult &  result 
)

Definition at line 43 of file lex_common.cpp.

Aws::Lex::TEST ( BuildLexInteractor  ,
TestBuildInteractorError   
)

Definition at line 97 of file lex_common_test.cpp.

Aws::Lex::TEST ( BuildLexInteractor  ,
TestBuildInteractorSuccess   
)

Definition at line 109 of file lex_common_test.cpp.

Aws::Lex::TEST_F ( LexCommonTestFixture  ,
CopyResultFailureInvalidJson   
)

Definition at line 52 of file lex_common_test.cpp.

Aws::Lex::TEST_F ( LexCommonTestFixture  ,
CopyResultSuccessValidJson   
)

Definition at line 67 of file lex_common_test.cpp.

Aws::Lex::TEST_F ( LexCommonTestFixture  ,
CopyResultSuccessNoSlots   
)

Definition at line 86 of file lex_common_test.cpp.

Aws::Lex::TEST_F ( TestLexInteractor  ,
TestLexInteractorFailedConfiguration   
)

Definition at line 160 of file lex_interactor_test.cpp.

Aws::Lex::TEST_F ( TestLexInteractor  ,
TestLexInteractorPostContentText   
)

Definition at line 169 of file lex_interactor_test.cpp.

Aws::Lex::TEST_F ( TestLexInteractor  ,
TestLexInteractorPostContentAudio   
)

Definition at line 186 of file lex_interactor_test.cpp.

Aws::Lex::TEST_F ( TestLexInteractor  ,
TestLexInteractorPostContentFailed   
)

Definition at line 206 of file lex_interactor_test.cpp.

Aws::Lex::TEST_F ( TestLexInteractor  ,
TestLexInteractorPostContentRetry   
)

Definition at line 218 of file lex_interactor_test.cpp.

Variable Documentation

const char* Aws::Lex::kAllocationTag = "lex"
static

Aws memory allocation tag.

Definition at line 56 of file lex_common.h.

constexpr char Aws::Lex::kLexConfigurationNamespace[] = "lex_configuration"

Lex configuration namespace.

Definition at line 33 of file lex_configuration.h.



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