ErrorCode LexInteractor::ConfigureAwsLex()

in lex_common/src/lex_common.cpp [105:115]


ErrorCode LexInteractor::ConfigureAwsLex(
  std::shared_ptr<LexConfiguration> lex_configuration,
  std::shared_ptr<Aws::LexRuntimeService::LexRuntimeServiceClient> lex_runtime_client)
{
  if (!(lex_configuration && lex_runtime_client)) {
    return ErrorCode::INVALID_LEX_CONFIGURATION;
  }
  lex_configuration_ = lex_configuration;
  lex_runtime_client_ = lex_runtime_client;
  return ErrorCode::SUCCESS;
}