@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonLexRuntimeV2 extends Object implements AmazonLexRuntimeV2
AmazonLexRuntimeV2. Convenient method forms pass through to the corresponding
 overload that takes a request object, which throws an UnsupportedOperationException.ENDPOINT_PREFIX| Modifier and Type | Method and Description | 
|---|---|
| DeleteSessionResult | deleteSession(DeleteSessionRequest request)
 Removes session information for a specified bot, alias, and user ID. | 
| ResponseMetadata | getCachedResponseMetadata(AmazonWebServiceRequest request)Returns additional metadata for a previously executed successful request, typically used for debugging issues
 where a service isn't acting as expected. | 
| GetSessionResult | getSession(GetSessionRequest request)
 Returns session information for a specified bot, alias, and user. | 
| PutSessionResult | putSession(PutSessionRequest request)
 Creates a new session or modifies an existing session with an Amazon Lex bot. | 
| RecognizeTextResult | recognizeText(RecognizeTextRequest request)
 Sends user input to Amazon Lex. | 
| RecognizeUtteranceResult | recognizeUtterance(RecognizeUtteranceRequest request)
 Sends user input to Amazon Lex. | 
| void | shutdown()Shuts down this client object, releasing any resources that might be held open. | 
public DeleteSessionResult deleteSession(DeleteSessionRequest request)
AmazonLexRuntimeV2Removes 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.
 
deleteSession in interface AmazonLexRuntimeV2public GetSessionResult getSession(GetSessionRequest request)
AmazonLexRuntimeV2Returns 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.
 
getSession in interface AmazonLexRuntimeV2public PutSessionResult putSession(PutSessionRequest request)
AmazonLexRuntimeV2Creates 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.
putSession in interface AmazonLexRuntimeV2public RecognizeTextResult recognizeText(RecognizeTextRequest request)
AmazonLexRuntimeV2Sends 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.
recognizeText in interface AmazonLexRuntimeV2public RecognizeUtteranceResult recognizeUtterance(RecognizeUtteranceRequest request)
AmazonLexRuntimeV2Sends 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.
recognizeUtterance in interface AmazonLexRuntimeV2public void shutdown()
AmazonLexRuntimeV2shutdown in interface AmazonLexRuntimeV2public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AmazonLexRuntimeV2Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
getCachedResponseMetadata in interface AmazonLexRuntimeV2request - The originally executed request.