@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonLexRuntime extends Object implements AmazonLexRuntime
AmazonLexRuntime. 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 |
|---|---|
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.
|
PostTextResult |
postText(PostTextRequest request)
Sends user input text to Amazon Lex at runtime.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
public PostTextResult postText(PostTextRequest request)
AmazonLexRuntimeSends user input text to Amazon Lex at runtime. Amazon Lex uses the machine learning model that the service built for the application to interpret user input.
In response, Amazon Lex returns the next message to convey to the user (based on the context of the user
interaction) and whether to expect a user response to the message (dialogState). For example,
consider the following response messages:
"What pizza toppings would you like?" – In this case, the dialogState would be
ElicitSlot (that is, a user response is expected).
"Your order has been placed." – In this case, Amazon Lex returns one of the following dialogState
values depending on how the intent fulfillment is configured (see fulfillmentActivity in
CreateIntent):
FulFilled – The intent fulfillment is configured through a Lambda function.
ReadyForFulfilment – The intent's fulfillmentActivity is to simply return the intent
data back to the client application.
postText in interface AmazonLexRuntimepublic void shutdown()
AmazonLexRuntimeshutdown in interface AmazonLexRuntimepublic ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AmazonLexRuntimeResponse 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 AmazonLexRuntimerequest - The originally executed request.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.