@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AmazonLexRuntimeV2Async extends AmazonLexRuntimeV2
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAmazonLexRuntimeV2Async
instead.
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
Future<DeleteSessionResult> |
deleteSessionAsync(DeleteSessionRequest deleteSessionRequest)
Removes session information for a specified bot, alias, and user ID.
|
Future<DeleteSessionResult> |
deleteSessionAsync(DeleteSessionRequest deleteSessionRequest,
AsyncHandler<DeleteSessionRequest,DeleteSessionResult> asyncHandler)
Removes session information for a specified bot, alias, and user ID.
|
Future<GetSessionResult> |
getSessionAsync(GetSessionRequest getSessionRequest)
Returns session information for a specified bot, alias, and user.
|
Future<GetSessionResult> |
getSessionAsync(GetSessionRequest getSessionRequest,
AsyncHandler<GetSessionRequest,GetSessionResult> asyncHandler)
Returns session information for a specified bot, alias, and user.
|
Future<PutSessionResult> |
putSessionAsync(PutSessionRequest putSessionRequest)
Creates a new session or modifies an existing session with an Amazon Lex bot.
|
Future<PutSessionResult> |
putSessionAsync(PutSessionRequest putSessionRequest,
AsyncHandler<PutSessionRequest,PutSessionResult> asyncHandler)
Creates a new session or modifies an existing session with an Amazon Lex bot.
|
Future<RecognizeTextResult> |
recognizeTextAsync(RecognizeTextRequest recognizeTextRequest)
Sends user input to Amazon Lex.
|
Future<RecognizeTextResult> |
recognizeTextAsync(RecognizeTextRequest recognizeTextRequest,
AsyncHandler<RecognizeTextRequest,RecognizeTextResult> asyncHandler)
Sends user input to Amazon Lex.
|
Future<RecognizeUtteranceResult> |
recognizeUtteranceAsync(RecognizeUtteranceRequest recognizeUtteranceRequest)
Sends user input to Amazon Lex.
|
Future<RecognizeUtteranceResult> |
recognizeUtteranceAsync(RecognizeUtteranceRequest recognizeUtteranceRequest,
AsyncHandler<RecognizeUtteranceRequest,RecognizeUtteranceResult> asyncHandler)
Sends user input to Amazon Lex.
|
deleteSession, getCachedResponseMetadata, getSession, putSession, recognizeText, recognizeUtterance, shutdown
Future<DeleteSessionResult> deleteSessionAsync(DeleteSessionRequest deleteSessionRequest)
Removes session information for a specified bot, alias, and user ID.
You can use this operation to restart a conversation with a bot. When you remove a session, the entire history of the session is removed so that you can start again.
You don't need to delete a session. Sessions have a time limit and will expire. Set the session time limit when you create the bot. The default is 5 minutes, but you can specify anything between 1 minute and 24 hours.
If you specify a bot or alias ID that doesn't exist, you receive a BadRequestException.
If the locale doesn't exist in the bot, or if the locale hasn't been enables for the alias, you receive a
BadRequestException
.
deleteSessionRequest
- Future<DeleteSessionResult> deleteSessionAsync(DeleteSessionRequest deleteSessionRequest, AsyncHandler<DeleteSessionRequest,DeleteSessionResult> asyncHandler)
Removes session information for a specified bot, alias, and user ID.
You can use this operation to restart a conversation with a bot. When you remove a session, the entire history of the session is removed so that you can start again.
You don't need to delete a session. Sessions have a time limit and will expire. Set the session time limit when you create the bot. The default is 5 minutes, but you can specify anything between 1 minute and 24 hours.
If you specify a bot or alias ID that doesn't exist, you receive a BadRequestException.
If the locale doesn't exist in the bot, or if the locale hasn't been enables for the alias, you receive a
BadRequestException
.
deleteSessionRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<GetSessionResult> getSessionAsync(GetSessionRequest getSessionRequest)
Returns session information for a specified bot, alias, and user.
For example, you can use this operation to retrieve session information for a user that has left a long-running session in use.
If the bot, alias, or session identifier doesn't exist, Amazon Lex returns a BadRequestException
. If
the locale doesn't exist or is not enabled for the alias, you receive a BadRequestException
.
getSessionRequest
- Future<GetSessionResult> getSessionAsync(GetSessionRequest getSessionRequest, AsyncHandler<GetSessionRequest,GetSessionResult> asyncHandler)
Returns session information for a specified bot, alias, and user.
For example, you can use this operation to retrieve session information for a user that has left a long-running session in use.
If the bot, alias, or session identifier doesn't exist, Amazon Lex returns a BadRequestException
. If
the locale doesn't exist or is not enabled for the alias, you receive a BadRequestException
.
getSessionRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<PutSessionResult> putSessionAsync(PutSessionRequest putSessionRequest)
Creates a new session or modifies an existing session with an Amazon Lex bot. Use this operation to enable your application to set the state of the bot.
putSessionRequest
- Future<PutSessionResult> putSessionAsync(PutSessionRequest putSessionRequest, AsyncHandler<PutSessionRequest,PutSessionResult> asyncHandler)
Creates a new session or modifies an existing session with an Amazon Lex bot. Use this operation to enable your application to set the state of the bot.
putSessionRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<RecognizeTextResult> recognizeTextAsync(RecognizeTextRequest recognizeTextRequest)
Sends user input to Amazon Lex. Client applications use this API to send requests to Amazon Lex at runtime. Amazon Lex then interprets the user input using the machine learning model that it build for the bot.
In response, Amazon Lex returns the next message to convey to the user and an optional response card to display.
recognizeTextRequest
- Future<RecognizeTextResult> recognizeTextAsync(RecognizeTextRequest recognizeTextRequest, AsyncHandler<RecognizeTextRequest,RecognizeTextResult> asyncHandler)
Sends user input to Amazon Lex. Client applications use this API to send requests to Amazon Lex at runtime. Amazon Lex then interprets the user input using the machine learning model that it build for the bot.
In response, Amazon Lex returns the next message to convey to the user and an optional response card to display.
recognizeTextRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<RecognizeUtteranceResult> recognizeUtteranceAsync(RecognizeUtteranceRequest recognizeUtteranceRequest)
Sends user input to Amazon Lex. You can send text or speech. Clients use this API to send text and audio requests to Amazon Lex at runtime. Amazon Lex interprets the user input using the machine learning model built for the bot.
recognizeUtteranceRequest
- Future<RecognizeUtteranceResult> recognizeUtteranceAsync(RecognizeUtteranceRequest recognizeUtteranceRequest, AsyncHandler<RecognizeUtteranceRequest,RecognizeUtteranceResult> asyncHandler)
Sends user input to Amazon Lex. You can send text or speech. Clients use this API to send text and audio requests to Amazon Lex at runtime. Amazon Lex interprets the user input using the machine learning model built for the bot.
recognizeUtteranceRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.