/* * Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.lexrts.model; import java.io.Serializable; public class PostTextResult implements Serializable { /** *
* The current user intent that Amazon Lex is aware of. *
*/ private String intentName; /** ** Provides a score that indicates how confident Amazon Lex is that the * returned intent is the one that matches the user's intent. The score is * between 0.0 and 1.0. For more information, see Confidence Scores. *
** The score is a relative score, not an absolute score. The score may * change based on improvements to Amazon Lex. *
*/ private IntentConfidence nluIntentConfidence; /** ** One to four alternative intents that may be applicable to the user's * intent. *
** Each alternative includes a score that indicates how confident Amazon Lex * is that the intent matches the user's intent. The intents are sorted by * the confidence score. *
*/ private java.util.List* The intent slots that Amazon Lex detected from the user input in the * conversation. *
*
* Amazon Lex creates a resolution list containing likely values for a slot.
* The value that it returns is determined by the
* valueSelectionStrategy
selected when the slot type was
* created or updated. If valueSelectionStrategy
is set to
* ORIGINAL_VALUE
, the value provided by the user is returned,
* if the user value is similar to the slot values. If
* valueSelectionStrategy
is set to TOP_RESOLUTION
* Amazon Lex returns the first value in the resolution list or, if there is
* no resolution list, null. If you don't specify a
* valueSelectionStrategy
, the default is
* ORIGINAL_VALUE
.
*
* A map of key-value pairs representing the session-specific context * information. *
*/ private java.util.Map* The message to convey to the user. The message can come from the bot's * configuration or from a Lambda function. *
*
* If the intent is not configured with a Lambda function, or if the Lambda
* function returned Delegate
as the
* dialogAction.type
its response, Amazon Lex decides on the
* next course of action and selects an appropriate message from the bot's
* configuration based on the current interaction context. For example, if
* Amazon Lex isn't able to understand user input, it uses a clarification
* prompt message.
*
* When you create an intent you can assign messages to groups. When * messages are assigned to groups Amazon Lex returns one message from each * group in the response. The message field is an escaped JSON string * containing the messages. For more information about the structure of the * JSON string returned, see msg-prompts-formats. *
** If the Lambda function returns a message, Amazon Lex passes it to the * client in its response. *
*
* Constraints:
* Length: 1 - 1024
*/
private String message;
/**
*
* The sentiment expressed in and utterance. *
** When the bot is configured to send utterances to Amazon Comprehend for * sentiment analysis, this field contains the result of the analysis. *
*/ private SentimentResponse sentimentResponse; /** ** The format of the response message. One of the following values: *
*
* PlainText
- The message contains plain UTF-8 text.
*
* CustomPayload
- The message is a custom format defined by
* the Lambda function.
*
* SSML
- The message contains text formatted for voice output.
*
* Composite
- The message contains an escaped JSON object
* containing one or more messages from the groups that messages were
* assigned to when the intent was created.
*
* Constraints:
* Allowed Values: PlainText, CustomPayload, SSML, Composite
*/
private String messageFormat;
/**
*
* Identifies the current state of the user interaction. Amazon Lex returns
* one of the following values as dialogState
. The client can
* optionally use this information to customize the user interface.
*
* ElicitIntent
- Amazon Lex wants to elicit user intent.
*
* For example, a user might utter an intent ("I want to order a pizza"). If * Amazon Lex cannot infer the user intent from this utterance, it will * return this dialogState. *
*
* ConfirmIntent
- Amazon Lex is expecting a "yes" or "no"
* response.
*
* For example, Amazon Lex wants user confirmation before fulfilling an * intent. *
** Instead of a simple "yes" or "no," a user might respond with additional * information. For example, "yes, but make it thick crust pizza" or * "no, I want to order a drink". Amazon Lex can process such additional * information (in these examples, update the crust type slot value, or * change intent from OrderPizza to OrderDrink). *
*
* ElicitSlot
- Amazon Lex is expecting a slot value for the
* current intent.
*
* For example, suppose that in the response Amazon Lex sends this message: * "What size pizza would you like?". A user might reply with the slot value * (e.g., "medium"). The user might also provide additional information in * the response (e.g., "medium thick crust pizza"). Amazon Lex can process * such additional information appropriately. *
*
* Fulfilled
- Conveys that the Lambda function configured for
* the intent has successfully fulfilled the intent.
*
* ReadyForFulfillment
- Conveys that the client has to fulfill
* the intent.
*
* Failed
- Conveys that the conversation with the user failed.
*
* This can happen for various reasons including that the user did not * provide an appropriate response to prompts from the service (you can * configure how many times Amazon Lex can prompt a user for specific * information), or the Lambda function failed to fulfill the intent. *
*
* Constraints:
* Allowed Values: ElicitIntent, ConfirmIntent, ElicitSlot,
* Fulfilled, ReadyForFulfillment, Failed
*/
private String dialogState;
/**
*
* If the dialogState
value is ElicitSlot
, returns
* the name of the slot for which Amazon Lex is eliciting a value.
*
* Represents the options that the user has to respond to the current * prompt. Response Card can come from the bot configuration (in the Amazon * Lex console, choose the settings button next to a slot) or from a code * hook (Lambda function). *
*/ private ResponseCard responseCard; /** ** A unique identifier for the session. *
*/ private String sessionId; /** ** The version of the bot that responded to the conversation. You can use * this information to help determine if one version of a bot is performing * better than another version. *
*
* Constraints:
* Length: 1 - 64
* Pattern: [0-9]+|\$LATEST
*/
private String botVersion;
/**
*
* A list of active contexts for the session. A context can be set when an
* intent is fulfilled or by calling the PostContent
,
* PostText
, or PutSession
operation.
*
* You can use a context to control the intents that can follow up an * intent, or to modify the operation of your application. *
*/ private java.util.List* The current user intent that Amazon Lex is aware of. *
* * @return* The current user intent that Amazon Lex is aware of. *
*/ public String getIntentName() { return intentName; } /** ** The current user intent that Amazon Lex is aware of. *
* * @param intentName* The current user intent that Amazon Lex is aware of. *
*/ public void setIntentName(String intentName) { this.intentName = intentName; } /** ** The current user intent that Amazon Lex is aware of. *
** Returns a reference to this object so that method calls can be chained * together. * * @param intentName
* The current user intent that Amazon Lex is aware of. *
* @return A reference to this updated object so that method calls can be * chained together. */ public PostTextResult withIntentName(String intentName) { this.intentName = intentName; return this; } /** ** Provides a score that indicates how confident Amazon Lex is that the * returned intent is the one that matches the user's intent. The score is * between 0.0 and 1.0. For more information, see Confidence Scores. *
** The score is a relative score, not an absolute score. The score may * change based on improvements to Amazon Lex. *
* * @return* Provides a score that indicates how confident Amazon Lex is that * the returned intent is the one that matches the user's intent. * The score is between 0.0 and 1.0. For more information, see Confidence Scores. *
** The score is a relative score, not an absolute score. The score * may change based on improvements to Amazon Lex. *
*/ public IntentConfidence getNluIntentConfidence() { return nluIntentConfidence; } /** ** Provides a score that indicates how confident Amazon Lex is that the * returned intent is the one that matches the user's intent. The score is * between 0.0 and 1.0. For more information, see Confidence Scores. *
** The score is a relative score, not an absolute score. The score may * change based on improvements to Amazon Lex. *
* * @param nluIntentConfidence* Provides a score that indicates how confident Amazon Lex is * that the returned intent is the one that matches the user's * intent. The score is between 0.0 and 1.0. For more * information, see Confidence Scores. *
** The score is a relative score, not an absolute score. The * score may change based on improvements to Amazon Lex. *
*/ public void setNluIntentConfidence(IntentConfidence nluIntentConfidence) { this.nluIntentConfidence = nluIntentConfidence; } /** ** Provides a score that indicates how confident Amazon Lex is that the * returned intent is the one that matches the user's intent. The score is * between 0.0 and 1.0. For more information, see Confidence Scores. *
** The score is a relative score, not an absolute score. The score may * change based on improvements to Amazon Lex. *
** Returns a reference to this object so that method calls can be chained * together. * * @param nluIntentConfidence
* Provides a score that indicates how confident Amazon Lex is * that the returned intent is the one that matches the user's * intent. The score is between 0.0 and 1.0. For more * information, see Confidence Scores. *
** The score is a relative score, not an absolute score. The * score may change based on improvements to Amazon Lex. *
* @return A reference to this updated object so that method calls can be * chained together. */ public PostTextResult withNluIntentConfidence(IntentConfidence nluIntentConfidence) { this.nluIntentConfidence = nluIntentConfidence; return this; } /** ** One to four alternative intents that may be applicable to the user's * intent. *
** Each alternative includes a score that indicates how confident Amazon Lex * is that the intent matches the user's intent. The intents are sorted by * the confidence score. *
* * @return* One to four alternative intents that may be applicable to the * user's intent. *
** Each alternative includes a score that indicates how confident * Amazon Lex is that the intent matches the user's intent. The * intents are sorted by the confidence score. *
*/ public java.util.List* One to four alternative intents that may be applicable to the user's * intent. *
** Each alternative includes a score that indicates how confident Amazon Lex * is that the intent matches the user's intent. The intents are sorted by * the confidence score. *
* * @param alternativeIntents* One to four alternative intents that may be applicable to the * user's intent. *
** Each alternative includes a score that indicates how confident * Amazon Lex is that the intent matches the user's intent. The * intents are sorted by the confidence score. *
*/ public void setAlternativeIntents(java.util.Collection* One to four alternative intents that may be applicable to the user's * intent. *
** Each alternative includes a score that indicates how confident Amazon Lex * is that the intent matches the user's intent. The intents are sorted by * the confidence score. *
** Returns a reference to this object so that method calls can be chained * together. * * @param alternativeIntents
* One to four alternative intents that may be applicable to the * user's intent. *
** Each alternative includes a score that indicates how confident * Amazon Lex is that the intent matches the user's intent. The * intents are sorted by the confidence score. *
* @return A reference to this updated object so that method calls can be * chained together. */ public PostTextResult withAlternativeIntents(PredictedIntent... alternativeIntents) { if (getAlternativeIntents() == null) { this.alternativeIntents = new java.util.ArrayList* One to four alternative intents that may be applicable to the user's * intent. *
** Each alternative includes a score that indicates how confident Amazon Lex * is that the intent matches the user's intent. The intents are sorted by * the confidence score. *
** Returns a reference to this object so that method calls can be chained * together. * * @param alternativeIntents
* One to four alternative intents that may be applicable to the * user's intent. *
** Each alternative includes a score that indicates how confident * Amazon Lex is that the intent matches the user's intent. The * intents are sorted by the confidence score. *
* @return A reference to this updated object so that method calls can be * chained together. */ public PostTextResult withAlternativeIntents( java.util.Collection* The intent slots that Amazon Lex detected from the user input in the * conversation. *
*
* Amazon Lex creates a resolution list containing likely values for a slot.
* The value that it returns is determined by the
* valueSelectionStrategy
selected when the slot type was
* created or updated. If valueSelectionStrategy
is set to
* ORIGINAL_VALUE
, the value provided by the user is returned,
* if the user value is similar to the slot values. If
* valueSelectionStrategy
is set to TOP_RESOLUTION
* Amazon Lex returns the first value in the resolution list or, if there is
* no resolution list, null. If you don't specify a
* valueSelectionStrategy
, the default is
* ORIGINAL_VALUE
.
*
* The intent slots that Amazon Lex detected from the user input in * the conversation. *
*
* Amazon Lex creates a resolution list containing likely values for
* a slot. The value that it returns is determined by the
* valueSelectionStrategy
selected when the slot type
* was created or updated. If valueSelectionStrategy
is
* set to ORIGINAL_VALUE
, the value provided by the
* user is returned, if the user value is similar to the slot
* values. If valueSelectionStrategy
is set to
* TOP_RESOLUTION
Amazon Lex returns the first value in
* the resolution list or, if there is no resolution list, null. If
* you don't specify a valueSelectionStrategy
, the
* default is ORIGINAL_VALUE
.
*
* The intent slots that Amazon Lex detected from the user input in the * conversation. *
*
* Amazon Lex creates a resolution list containing likely values for a slot.
* The value that it returns is determined by the
* valueSelectionStrategy
selected when the slot type was
* created or updated. If valueSelectionStrategy
is set to
* ORIGINAL_VALUE
, the value provided by the user is returned,
* if the user value is similar to the slot values. If
* valueSelectionStrategy
is set to TOP_RESOLUTION
* Amazon Lex returns the first value in the resolution list or, if there is
* no resolution list, null. If you don't specify a
* valueSelectionStrategy
, the default is
* ORIGINAL_VALUE
.
*
* The intent slots that Amazon Lex detected from the user input * in the conversation. *
*
* Amazon Lex creates a resolution list containing likely values
* for a slot. The value that it returns is determined by the
* valueSelectionStrategy
selected when the slot
* type was created or updated. If
* valueSelectionStrategy
is set to
* ORIGINAL_VALUE
, the value provided by the user is
* returned, if the user value is similar to the slot values. If
* valueSelectionStrategy
is set to
* TOP_RESOLUTION
Amazon Lex returns the first value
* in the resolution list or, if there is no resolution list,
* null. If you don't specify a
* valueSelectionStrategy
, the default is
* ORIGINAL_VALUE
.
*
* The intent slots that Amazon Lex detected from the user input in the * conversation. *
*
* Amazon Lex creates a resolution list containing likely values for a slot.
* The value that it returns is determined by the
* valueSelectionStrategy
selected when the slot type was
* created or updated. If valueSelectionStrategy
is set to
* ORIGINAL_VALUE
, the value provided by the user is returned,
* if the user value is similar to the slot values. If
* valueSelectionStrategy
is set to TOP_RESOLUTION
* Amazon Lex returns the first value in the resolution list or, if there is
* no resolution list, null. If you don't specify a
* valueSelectionStrategy
, the default is
* ORIGINAL_VALUE
.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param slots
* The intent slots that Amazon Lex detected from the user input * in the conversation. *
*
* Amazon Lex creates a resolution list containing likely values
* for a slot. The value that it returns is determined by the
* valueSelectionStrategy
selected when the slot
* type was created or updated. If
* valueSelectionStrategy
is set to
* ORIGINAL_VALUE
, the value provided by the user is
* returned, if the user value is similar to the slot values. If
* valueSelectionStrategy
is set to
* TOP_RESOLUTION
Amazon Lex returns the first value
* in the resolution list or, if there is no resolution list,
* null. If you don't specify a
* valueSelectionStrategy
, the default is
* ORIGINAL_VALUE
.
*
* The intent slots that Amazon Lex detected from the user input in the * conversation. *
*
* Amazon Lex creates a resolution list containing likely values for a slot.
* The value that it returns is determined by the
* valueSelectionStrategy
selected when the slot type was
* created or updated. If valueSelectionStrategy
is set to
* ORIGINAL_VALUE
, the value provided by the user is returned,
* if the user value is similar to the slot values. If
* valueSelectionStrategy
is set to TOP_RESOLUTION
* Amazon Lex returns the first value in the resolution list or, if there is
* no resolution list, null. If you don't specify a
* valueSelectionStrategy
, the default is
* ORIGINAL_VALUE
.
*
* The method adds a new key-value pair into slots parameter, and returns a
* reference to this object so that method calls can be chained together.
*
* @param key The key of the entry to be added into slots.
* @param value The corresponding value of the entry to be added into slots.
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public PostTextResult addslotsEntry(String key, String value) {
if (null == this.slots) {
this.slots = new java.util.HashMap
* Returns a reference to this object so that method calls can be chained
* together.
*/
public PostTextResult clearslotsEntries() {
this.slots = null;
return this;
}
/**
*
* A map of key-value pairs representing the session-specific context
* information.
*
* A map of key-value pairs representing the session-specific
* context information.
*
* A map of key-value pairs representing the session-specific context
* information.
*
* A map of key-value pairs representing the session-specific
* context information.
*
* A map of key-value pairs representing the session-specific context
* information.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param sessionAttributes
* A map of key-value pairs representing the session-specific
* context information.
*
* A map of key-value pairs representing the session-specific context
* information.
*
* The method adds a new key-value pair into sessionAttributes parameter,
* and returns a reference to this object so that method calls can be
* chained together.
*
* @param key The key of the entry to be added into sessionAttributes.
* @param value The corresponding value of the entry to be added into
* sessionAttributes.
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public PostTextResult addsessionAttributesEntry(String key, String value) {
if (null == this.sessionAttributes) {
this.sessionAttributes = new java.util.HashMap
* Returns a reference to this object so that method calls can be chained
* together.
*/
public PostTextResult clearsessionAttributesEntries() {
this.sessionAttributes = null;
return this;
}
/**
*
* The message to convey to the user. The message can come from the bot's
* configuration or from a Lambda function.
*
* If the intent is not configured with a Lambda function, or if the Lambda
* function returned
* When you create an intent you can assign messages to groups. When
* messages are assigned to groups Amazon Lex returns one message from each
* group in the response. The message field is an escaped JSON string
* containing the messages. For more information about the structure of the
* JSON string returned, see msg-prompts-formats.
*
* If the Lambda function returns a message, Amazon Lex passes it to the
* client in its response.
*
* Constraints:
* The message to convey to the user. The message can come from the
* bot's configuration or from a Lambda function.
*
* If the intent is not configured with a Lambda function, or if the
* Lambda function returned
* When you create an intent you can assign messages to groups. When
* messages are assigned to groups Amazon Lex returns one message
* from each group in the response. The message field is an escaped
* JSON string containing the messages. For more information about
* the structure of the JSON string returned, see
* msg-prompts-formats.
*
* If the Lambda function returns a message, Amazon Lex passes it to
* the client in its response.
*
* The message to convey to the user. The message can come from the bot's
* configuration or from a Lambda function.
*
* If the intent is not configured with a Lambda function, or if the Lambda
* function returned
* When you create an intent you can assign messages to groups. When
* messages are assigned to groups Amazon Lex returns one message from each
* group in the response. The message field is an escaped JSON string
* containing the messages. For more information about the structure of the
* JSON string returned, see msg-prompts-formats.
*
* If the Lambda function returns a message, Amazon Lex passes it to the
* client in its response.
*
* Constraints:
* The message to convey to the user. The message can come from
* the bot's configuration or from a Lambda function.
*
* If the intent is not configured with a Lambda function, or if
* the Lambda function returned
* When you create an intent you can assign messages to groups.
* When messages are assigned to groups Amazon Lex returns one
* message from each group in the response. The message field is
* an escaped JSON string containing the messages. For more
* information about the structure of the JSON string returned,
* see msg-prompts-formats.
*
* If the Lambda function returns a message, Amazon Lex passes it
* to the client in its response.
*
* The message to convey to the user. The message can come from the bot's
* configuration or from a Lambda function.
*
* If the intent is not configured with a Lambda function, or if the Lambda
* function returned
* When you create an intent you can assign messages to groups. When
* messages are assigned to groups Amazon Lex returns one message from each
* group in the response. The message field is an escaped JSON string
* containing the messages. For more information about the structure of the
* JSON string returned, see msg-prompts-formats.
*
* If the Lambda function returns a message, Amazon Lex passes it to the
* client in its response.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* Constraints:
* The message to convey to the user. The message can come from
* the bot's configuration or from a Lambda function.
*
* If the intent is not configured with a Lambda function, or if
* the Lambda function returned
* When you create an intent you can assign messages to groups.
* When messages are assigned to groups Amazon Lex returns one
* message from each group in the response. The message field is
* an escaped JSON string containing the messages. For more
* information about the structure of the JSON string returned,
* see msg-prompts-formats.
*
* If the Lambda function returns a message, Amazon Lex passes it
* to the client in its response.
*
* The sentiment expressed in and utterance.
*
* When the bot is configured to send utterances to Amazon Comprehend for
* sentiment analysis, this field contains the result of the analysis.
*
* The sentiment expressed in and utterance.
*
* When the bot is configured to send utterances to Amazon
* Comprehend for sentiment analysis, this field contains the result
* of the analysis.
*
* The sentiment expressed in and utterance.
*
* When the bot is configured to send utterances to Amazon Comprehend for
* sentiment analysis, this field contains the result of the analysis.
*
* The sentiment expressed in and utterance.
*
* When the bot is configured to send utterances to Amazon
* Comprehend for sentiment analysis, this field contains the
* result of the analysis.
*
* The sentiment expressed in and utterance.
*
* When the bot is configured to send utterances to Amazon Comprehend for
* sentiment analysis, this field contains the result of the analysis.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param sentimentResponse
* The sentiment expressed in and utterance.
*
* When the bot is configured to send utterances to Amazon
* Comprehend for sentiment analysis, this field contains the
* result of the analysis.
*
* The format of the response message. One of the following values:
*
*
*
*
*
* Constraints:
* The format of the response message. One of the following values:
*
*
*
*
*
* The format of the response message. One of the following values:
*
*
*
*
*
* Constraints:
* The format of the response message. One of the following
* values:
*
*
*
*
*
* The format of the response message. One of the following values:
*
*
*
*
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* Constraints:
* The format of the response message. One of the following
* values:
*
*
*
*
*
* The format of the response message. One of the following values:
*
*
*
*
*
* Constraints:
* The format of the response message. One of the following
* values:
*
*
*
*
*
* The format of the response message. One of the following values:
*
*
*
*
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* Constraints:
* The format of the response message. One of the following
* values:
*
*
*
*
*
* Identifies the current state of the user interaction. Amazon Lex returns
* one of the following values as
*
* For example, a user might utter an intent ("I want to order a pizza"). If
* Amazon Lex cannot infer the user intent from this utterance, it will
* return this dialogState.
*
*
* For example, Amazon Lex wants user confirmation before fulfilling an
* intent.
*
* Instead of a simple "yes" or "no," a user might respond with additional
* information. For example, "yes, but make it thick crust pizza" or
* "no, I want to order a drink". Amazon Lex can process such additional
* information (in these examples, update the crust type slot value, or
* change intent from OrderPizza to OrderDrink).
*
*
* For example, suppose that in the response Amazon Lex sends this message:
* "What size pizza would you like?". A user might reply with the slot value
* (e.g., "medium"). The user might also provide additional information in
* the response (e.g., "medium thick crust pizza"). Amazon Lex can process
* such additional information appropriately.
*
*
*
*
* This can happen for various reasons including that the user did not
* provide an appropriate response to prompts from the service (you can
* configure how many times Amazon Lex can prompt a user for specific
* information), or the Lambda function failed to fulfill the intent.
*
* Constraints:
* Identifies the current state of the user interaction. Amazon Lex
* returns one of the following values as
*
* For example, a user might utter an intent
* ("I want to order a pizza"). If Amazon Lex cannot infer the user
* intent from this utterance, it will return this dialogState.
*
*
* For example, Amazon Lex wants user confirmation before fulfilling
* an intent.
*
* Instead of a simple "yes" or "no," a user might respond with
* additional information. For example,
* "yes, but make it thick crust pizza" or
* "no, I want to order a drink". Amazon Lex can process such
* additional information (in these examples, update the crust type
* slot value, or change intent from OrderPizza to OrderDrink).
*
*
* For example, suppose that in the response Amazon Lex sends this
* message: "What size pizza would you like?". A user might reply
* with the slot value (e.g., "medium"). The user might also provide
* additional information in the response (e.g.,
* "medium thick crust pizza"). Amazon Lex can process such
* additional information appropriately.
*
*
*
*
* This can happen for various reasons including that the user did
* not provide an appropriate response to prompts from the service
* (you can configure how many times Amazon Lex can prompt a user
* for specific information), or the Lambda function failed to
* fulfill the intent.
*
* Identifies the current state of the user interaction. Amazon Lex returns
* one of the following values as
*
* For example, a user might utter an intent ("I want to order a pizza"). If
* Amazon Lex cannot infer the user intent from this utterance, it will
* return this dialogState.
*
*
* For example, Amazon Lex wants user confirmation before fulfilling an
* intent.
*
* Instead of a simple "yes" or "no," a user might respond with additional
* information. For example, "yes, but make it thick crust pizza" or
* "no, I want to order a drink". Amazon Lex can process such additional
* information (in these examples, update the crust type slot value, or
* change intent from OrderPizza to OrderDrink).
*
*
* For example, suppose that in the response Amazon Lex sends this message:
* "What size pizza would you like?". A user might reply with the slot value
* (e.g., "medium"). The user might also provide additional information in
* the response (e.g., "medium thick crust pizza"). Amazon Lex can process
* such additional information appropriately.
*
*
*
*
* This can happen for various reasons including that the user did not
* provide an appropriate response to prompts from the service (you can
* configure how many times Amazon Lex can prompt a user for specific
* information), or the Lambda function failed to fulfill the intent.
*
* Constraints:
* Identifies the current state of the user interaction. Amazon
* Lex returns one of the following values as
*
*
* For example, a user might utter an intent
* ("I want to order a pizza"). If Amazon Lex cannot infer the
* user intent from this utterance, it will return this
* dialogState.
*
*
* For example, Amazon Lex wants user confirmation before
* fulfilling an intent.
*
* Instead of a simple "yes" or "no," a user might respond with
* additional information. For example,
* "yes, but make it thick crust pizza" or
* "no, I want to order a drink". Amazon Lex can process such
* additional information (in these examples, update the crust
* type slot value, or change intent from OrderPizza to
* OrderDrink).
*
*
* For example, suppose that in the response Amazon Lex sends
* this message: "What size pizza would you like?". A user might
* reply with the slot value (e.g., "medium"). The user might
* also provide additional information in the response (e.g.,
* "medium thick crust pizza"). Amazon Lex can process such
* additional information appropriately.
*
*
*
*
* This can happen for various reasons including that the user
* did not provide an appropriate response to prompts from the
* service (you can configure how many times Amazon Lex can
* prompt a user for specific information), or the Lambda
* function failed to fulfill the intent.
*
* Identifies the current state of the user interaction. Amazon Lex returns
* one of the following values as
*
* For example, a user might utter an intent ("I want to order a pizza"). If
* Amazon Lex cannot infer the user intent from this utterance, it will
* return this dialogState.
*
*
* For example, Amazon Lex wants user confirmation before fulfilling an
* intent.
*
* Instead of a simple "yes" or "no," a user might respond with additional
* information. For example, "yes, but make it thick crust pizza" or
* "no, I want to order a drink". Amazon Lex can process such additional
* information (in these examples, update the crust type slot value, or
* change intent from OrderPizza to OrderDrink).
*
*
* For example, suppose that in the response Amazon Lex sends this message:
* "What size pizza would you like?". A user might reply with the slot value
* (e.g., "medium"). The user might also provide additional information in
* the response (e.g., "medium thick crust pizza"). Amazon Lex can process
* such additional information appropriately.
*
*
*
*
* This can happen for various reasons including that the user did not
* provide an appropriate response to prompts from the service (you can
* configure how many times Amazon Lex can prompt a user for specific
* information), or the Lambda function failed to fulfill the intent.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* Constraints:
* Identifies the current state of the user interaction. Amazon
* Lex returns one of the following values as
*
*
* For example, a user might utter an intent
* ("I want to order a pizza"). If Amazon Lex cannot infer the
* user intent from this utterance, it will return this
* dialogState.
*
*
* For example, Amazon Lex wants user confirmation before
* fulfilling an intent.
*
* Instead of a simple "yes" or "no," a user might respond with
* additional information. For example,
* "yes, but make it thick crust pizza" or
* "no, I want to order a drink". Amazon Lex can process such
* additional information (in these examples, update the crust
* type slot value, or change intent from OrderPizza to
* OrderDrink).
*
*
* For example, suppose that in the response Amazon Lex sends
* this message: "What size pizza would you like?". A user might
* reply with the slot value (e.g., "medium"). The user might
* also provide additional information in the response (e.g.,
* "medium thick crust pizza"). Amazon Lex can process such
* additional information appropriately.
*
*
*
*
* This can happen for various reasons including that the user
* did not provide an appropriate response to prompts from the
* service (you can configure how many times Amazon Lex can
* prompt a user for specific information), or the Lambda
* function failed to fulfill the intent.
*
* Identifies the current state of the user interaction. Amazon Lex returns
* one of the following values as
*
* For example, a user might utter an intent ("I want to order a pizza"). If
* Amazon Lex cannot infer the user intent from this utterance, it will
* return this dialogState.
*
*
* For example, Amazon Lex wants user confirmation before fulfilling an
* intent.
*
* Instead of a simple "yes" or "no," a user might respond with additional
* information. For example, "yes, but make it thick crust pizza" or
* "no, I want to order a drink". Amazon Lex can process such additional
* information (in these examples, update the crust type slot value, or
* change intent from OrderPizza to OrderDrink).
*
*
* For example, suppose that in the response Amazon Lex sends this message:
* "What size pizza would you like?". A user might reply with the slot value
* (e.g., "medium"). The user might also provide additional information in
* the response (e.g., "medium thick crust pizza"). Amazon Lex can process
* such additional information appropriately.
*
*
*
*
* This can happen for various reasons including that the user did not
* provide an appropriate response to prompts from the service (you can
* configure how many times Amazon Lex can prompt a user for specific
* information), or the Lambda function failed to fulfill the intent.
*
* Constraints:
* Identifies the current state of the user interaction. Amazon
* Lex returns one of the following values as
*
*
* For example, a user might utter an intent
* ("I want to order a pizza"). If Amazon Lex cannot infer the
* user intent from this utterance, it will return this
* dialogState.
*
*
* For example, Amazon Lex wants user confirmation before
* fulfilling an intent.
*
* Instead of a simple "yes" or "no," a user might respond with
* additional information. For example,
* "yes, but make it thick crust pizza" or
* "no, I want to order a drink". Amazon Lex can process such
* additional information (in these examples, update the crust
* type slot value, or change intent from OrderPizza to
* OrderDrink).
*
*
* For example, suppose that in the response Amazon Lex sends
* this message: "What size pizza would you like?". A user might
* reply with the slot value (e.g., "medium"). The user might
* also provide additional information in the response (e.g.,
* "medium thick crust pizza"). Amazon Lex can process such
* additional information appropriately.
*
*
*
*
* This can happen for various reasons including that the user
* did not provide an appropriate response to prompts from the
* service (you can configure how many times Amazon Lex can
* prompt a user for specific information), or the Lambda
* function failed to fulfill the intent.
*
* Identifies the current state of the user interaction. Amazon Lex returns
* one of the following values as
*
* For example, a user might utter an intent ("I want to order a pizza"). If
* Amazon Lex cannot infer the user intent from this utterance, it will
* return this dialogState.
*
*
* For example, Amazon Lex wants user confirmation before fulfilling an
* intent.
*
* Instead of a simple "yes" or "no," a user might respond with additional
* information. For example, "yes, but make it thick crust pizza" or
* "no, I want to order a drink". Amazon Lex can process such additional
* information (in these examples, update the crust type slot value, or
* change intent from OrderPizza to OrderDrink).
*
*
* For example, suppose that in the response Amazon Lex sends this message:
* "What size pizza would you like?". A user might reply with the slot value
* (e.g., "medium"). The user might also provide additional information in
* the response (e.g., "medium thick crust pizza"). Amazon Lex can process
* such additional information appropriately.
*
*
*
*
* This can happen for various reasons including that the user did not
* provide an appropriate response to prompts from the service (you can
* configure how many times Amazon Lex can prompt a user for specific
* information), or the Lambda function failed to fulfill the intent.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* Constraints:
* Identifies the current state of the user interaction. Amazon
* Lex returns one of the following values as
*
*
* For example, a user might utter an intent
* ("I want to order a pizza"). If Amazon Lex cannot infer the
* user intent from this utterance, it will return this
* dialogState.
*
*
* For example, Amazon Lex wants user confirmation before
* fulfilling an intent.
*
* Instead of a simple "yes" or "no," a user might respond with
* additional information. For example,
* "yes, but make it thick crust pizza" or
* "no, I want to order a drink". Amazon Lex can process such
* additional information (in these examples, update the crust
* type slot value, or change intent from OrderPizza to
* OrderDrink).
*
*
* For example, suppose that in the response Amazon Lex sends
* this message: "What size pizza would you like?". A user might
* reply with the slot value (e.g., "medium"). The user might
* also provide additional information in the response (e.g.,
* "medium thick crust pizza"). Amazon Lex can process such
* additional information appropriately.
*
*
*
*
* This can happen for various reasons including that the user
* did not provide an appropriate response to prompts from the
* service (you can configure how many times Amazon Lex can
* prompt a user for specific information), or the Lambda
* function failed to fulfill the intent.
*
* If the
* If the
* If the
* If the
* If the
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param slotToElicit
* If the
* Represents the options that the user has to respond to the current
* prompt. Response Card can come from the bot configuration (in the Amazon
* Lex console, choose the settings button next to a slot) or from a code
* hook (Lambda function).
*
* Represents the options that the user has to respond to the
* current prompt. Response Card can come from the bot configuration
* (in the Amazon Lex console, choose the settings button next to a
* slot) or from a code hook (Lambda function).
*
* Represents the options that the user has to respond to the current
* prompt. Response Card can come from the bot configuration (in the Amazon
* Lex console, choose the settings button next to a slot) or from a code
* hook (Lambda function).
*
* Represents the options that the user has to respond to the
* current prompt. Response Card can come from the bot
* configuration (in the Amazon Lex console, choose the settings
* button next to a slot) or from a code hook (Lambda function).
*
* Represents the options that the user has to respond to the current
* prompt. Response Card can come from the bot configuration (in the Amazon
* Lex console, choose the settings button next to a slot) or from a code
* hook (Lambda function).
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param responseCard
* Represents the options that the user has to respond to the
* current prompt. Response Card can come from the bot
* configuration (in the Amazon Lex console, choose the settings
* button next to a slot) or from a code hook (Lambda function).
*
* A unique identifier for the session.
*
* A unique identifier for the session.
*
* A unique identifier for the session.
*
* A unique identifier for the session.
*
* A unique identifier for the session.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param sessionId
* A unique identifier for the session.
*
* The version of the bot that responded to the conversation. You can use
* this information to help determine if one version of a bot is performing
* better than another version.
*
* Constraints:
* The version of the bot that responded to the conversation. You
* can use this information to help determine if one version of a
* bot is performing better than another version.
*
* The version of the bot that responded to the conversation. You can use
* this information to help determine if one version of a bot is performing
* better than another version.
*
* Constraints:
* The version of the bot that responded to the conversation. You
* can use this information to help determine if one version of a
* bot is performing better than another version.
*
* The version of the bot that responded to the conversation. You can use
* this information to help determine if one version of a bot is performing
* better than another version.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* Constraints:
* The version of the bot that responded to the conversation. You
* can use this information to help determine if one version of a
* bot is performing better than another version.
*
* A list of active contexts for the session. A context can be set when an
* intent is fulfilled or by calling the
* You can use a context to control the intents that can follow up an
* intent, or to modify the operation of your application.
*
* A list of active contexts for the session. A context can be set
* when an intent is fulfilled or by calling the
*
* You can use a context to control the intents that can follow up
* an intent, or to modify the operation of your application.
*
* A list of active contexts for the session. A context can be set when an
* intent is fulfilled or by calling the
* You can use a context to control the intents that can follow up an
* intent, or to modify the operation of your application.
*
* A list of active contexts for the session. A context can be
* set when an intent is fulfilled or by calling the
*
* You can use a context to control the intents that can follow
* up an intent, or to modify the operation of your application.
*
* A list of active contexts for the session. A context can be set when an
* intent is fulfilled or by calling the
* You can use a context to control the intents that can follow up an
* intent, or to modify the operation of your application.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param activeContexts
* A list of active contexts for the session. A context can be
* set when an intent is fulfilled or by calling the
*
* You can use a context to control the intents that can follow
* up an intent, or to modify the operation of your application.
*
* A list of active contexts for the session. A context can be set when an
* intent is fulfilled or by calling the
* You can use a context to control the intents that can follow up an
* intent, or to modify the operation of your application.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param activeContexts
* A list of active contexts for the session. A context can be
* set when an intent is fulfilled or by calling the
*
* You can use a context to control the intents that can follow
* up an intent, or to modify the operation of your application.
* Delegate
as the
* dialogAction.type
its response, Amazon Lex decides on the
* next course of action and selects an appropriate message from the bot's
* configuration based on the current interaction context. For example, if
* Amazon Lex isn't able to understand user input, it uses a clarification
* prompt message.
*
* Length: 1 - 1024
*
* @return Delegate
as the
* dialogAction.type
its response, Amazon Lex decides
* on the next course of action and selects an appropriate message
* from the bot's configuration based on the current interaction
* context. For example, if Amazon Lex isn't able to understand user
* input, it uses a clarification prompt message.
* Delegate
as the
* dialogAction.type
its response, Amazon Lex decides on the
* next course of action and selects an appropriate message from the bot's
* configuration based on the current interaction context. For example, if
* Amazon Lex isn't able to understand user input, it uses a clarification
* prompt message.
*
* Length: 1 - 1024
*
* @param message Delegate
as the
* dialogAction.type
its response, Amazon Lex
* decides on the next course of action and selects an
* appropriate message from the bot's configuration based on the
* current interaction context. For example, if Amazon Lex isn't
* able to understand user input, it uses a clarification prompt
* message.
* Delegate
as the
* dialogAction.type
its response, Amazon Lex decides on the
* next course of action and selects an appropriate message from the bot's
* configuration based on the current interaction context. For example, if
* Amazon Lex isn't able to understand user input, it uses a clarification
* prompt message.
*
* Length: 1 - 1024
*
* @param message Delegate
as the
* dialogAction.type
its response, Amazon Lex
* decides on the next course of action and selects an
* appropriate message from the bot's configuration based on the
* current interaction context. For example, if Amazon Lex isn't
* able to understand user input, it uses a clarification prompt
* message.
*
*
* PlainText
- The message contains plain UTF-8 text.
* CustomPayload
- The message is a custom format defined by
* the Lambda function.
* SSML
- The message contains text formatted for voice output.
* Composite
- The message contains an escaped JSON object
* containing one or more messages from the groups that messages were
* assigned to when the intent was created.
*
* Allowed Values: PlainText, CustomPayload, SSML, Composite
*
* @return
*
* @see MessageFormatType
*/
public String getMessageFormat() {
return messageFormat;
}
/**
* PlainText
- The message contains plain UTF-8 text.
* CustomPayload
- The message is a custom format
* defined by the Lambda function.
* SSML
- The message contains text formatted for voice
* output.
* Composite
- The message contains an escaped JSON
* object containing one or more messages from the groups that
* messages were assigned to when the intent was created.
*
*
* PlainText
- The message contains plain UTF-8 text.
* CustomPayload
- The message is a custom format defined by
* the Lambda function.
* SSML
- The message contains text formatted for voice output.
* Composite
- The message contains an escaped JSON object
* containing one or more messages from the groups that messages were
* assigned to when the intent was created.
*
* Allowed Values: PlainText, CustomPayload, SSML, Composite
*
* @param messageFormat
*
* @see MessageFormatType
*/
public void setMessageFormat(String messageFormat) {
this.messageFormat = messageFormat;
}
/**
* PlainText
- The message contains plain UTF-8
* text.
* CustomPayload
- The message is a custom format
* defined by the Lambda function.
* SSML
- The message contains text formatted for
* voice output.
* Composite
- The message contains an escaped JSON
* object containing one or more messages from the groups that
* messages were assigned to when the intent was created.
*
*
* PlainText
- The message contains plain UTF-8 text.
* CustomPayload
- The message is a custom format defined by
* the Lambda function.
* SSML
- The message contains text formatted for voice output.
* Composite
- The message contains an escaped JSON object
* containing one or more messages from the groups that messages were
* assigned to when the intent was created.
*
* Allowed Values: PlainText, CustomPayload, SSML, Composite
*
* @param messageFormat
*
* @return A reference to this updated object so that method calls can be
* chained together.
* @see MessageFormatType
*/
public PostTextResult withMessageFormat(String messageFormat) {
this.messageFormat = messageFormat;
return this;
}
/**
* PlainText
- The message contains plain UTF-8
* text.
* CustomPayload
- The message is a custom format
* defined by the Lambda function.
* SSML
- The message contains text formatted for
* voice output.
* Composite
- The message contains an escaped JSON
* object containing one or more messages from the groups that
* messages were assigned to when the intent was created.
*
*
* PlainText
- The message contains plain UTF-8 text.
* CustomPayload
- The message is a custom format defined by
* the Lambda function.
* SSML
- The message contains text formatted for voice output.
* Composite
- The message contains an escaped JSON object
* containing one or more messages from the groups that messages were
* assigned to when the intent was created.
*
* Allowed Values: PlainText, CustomPayload, SSML, Composite
*
* @param messageFormat
*
* @see MessageFormatType
*/
public void setMessageFormat(MessageFormatType messageFormat) {
this.messageFormat = messageFormat.toString();
}
/**
* PlainText
- The message contains plain UTF-8
* text.
* CustomPayload
- The message is a custom format
* defined by the Lambda function.
* SSML
- The message contains text formatted for
* voice output.
* Composite
- The message contains an escaped JSON
* object containing one or more messages from the groups that
* messages were assigned to when the intent was created.
*
*
* PlainText
- The message contains plain UTF-8 text.
* CustomPayload
- The message is a custom format defined by
* the Lambda function.
* SSML
- The message contains text formatted for voice output.
* Composite
- The message contains an escaped JSON object
* containing one or more messages from the groups that messages were
* assigned to when the intent was created.
*
* Allowed Values: PlainText, CustomPayload, SSML, Composite
*
* @param messageFormat
*
* @return A reference to this updated object so that method calls can be
* chained together.
* @see MessageFormatType
*/
public PostTextResult withMessageFormat(MessageFormatType messageFormat) {
this.messageFormat = messageFormat.toString();
return this;
}
/**
* PlainText
- The message contains plain UTF-8
* text.
* CustomPayload
- The message is a custom format
* defined by the Lambda function.
* SSML
- The message contains text formatted for
* voice output.
* Composite
- The message contains an escaped JSON
* object containing one or more messages from the groups that
* messages were assigned to when the intent was created.
* dialogState
. The client can
* optionally use this information to customize the user interface.
*
*
* ElicitIntent
- Amazon Lex wants to elicit user intent.
* ConfirmIntent
- Amazon Lex is expecting a "yes" or "no"
* response.
* ElicitSlot
- Amazon Lex is expecting a slot value for the
* current intent.
* Fulfilled
- Conveys that the Lambda function configured for
* the intent has successfully fulfilled the intent.
* ReadyForFulfillment
- Conveys that the client has to fulfill
* the intent.
* Failed
- Conveys that the conversation with the user failed.
*
* Allowed Values: ElicitIntent, ConfirmIntent, ElicitSlot,
* Fulfilled, ReadyForFulfillment, Failed
*
* @return dialogState
.
* The client can optionally use this information to customize the
* user interface.
*
*
* @see DialogState
*/
public String getDialogState() {
return dialogState;
}
/**
* ElicitIntent
- Amazon Lex wants to elicit user
* intent.
* ConfirmIntent
- Amazon Lex is expecting a "yes" or
* "no" response.
* ElicitSlot
- Amazon Lex is expecting a slot value
* for the current intent.
* Fulfilled
- Conveys that the Lambda function
* configured for the intent has successfully fulfilled the intent.
* ReadyForFulfillment
- Conveys that the client has to
* fulfill the intent.
* Failed
- Conveys that the conversation with the user
* failed.
* dialogState
. The client can
* optionally use this information to customize the user interface.
*
*
* ElicitIntent
- Amazon Lex wants to elicit user intent.
* ConfirmIntent
- Amazon Lex is expecting a "yes" or "no"
* response.
* ElicitSlot
- Amazon Lex is expecting a slot value for the
* current intent.
* Fulfilled
- Conveys that the Lambda function configured for
* the intent has successfully fulfilled the intent.
* ReadyForFulfillment
- Conveys that the client has to fulfill
* the intent.
* Failed
- Conveys that the conversation with the user failed.
*
* Allowed Values: ElicitIntent, ConfirmIntent, ElicitSlot,
* Fulfilled, ReadyForFulfillment, Failed
*
* @param dialogState dialogState
. The client can optionally use this
* information to customize the user interface.
*
*
* @see DialogState
*/
public void setDialogState(String dialogState) {
this.dialogState = dialogState;
}
/**
* ElicitIntent
- Amazon Lex wants to elicit user
* intent.
* ConfirmIntent
- Amazon Lex is expecting a "yes"
* or "no" response.
* ElicitSlot
- Amazon Lex is expecting a slot value
* for the current intent.
* Fulfilled
- Conveys that the Lambda function
* configured for the intent has successfully fulfilled the
* intent.
* ReadyForFulfillment
- Conveys that the client has
* to fulfill the intent.
* Failed
- Conveys that the conversation with the
* user failed.
* dialogState
. The client can
* optionally use this information to customize the user interface.
*
*
* ElicitIntent
- Amazon Lex wants to elicit user intent.
* ConfirmIntent
- Amazon Lex is expecting a "yes" or "no"
* response.
* ElicitSlot
- Amazon Lex is expecting a slot value for the
* current intent.
* Fulfilled
- Conveys that the Lambda function configured for
* the intent has successfully fulfilled the intent.
* ReadyForFulfillment
- Conveys that the client has to fulfill
* the intent.
* Failed
- Conveys that the conversation with the user failed.
*
* Allowed Values: ElicitIntent, ConfirmIntent, ElicitSlot,
* Fulfilled, ReadyForFulfillment, Failed
*
* @param dialogState dialogState
. The client can optionally use this
* information to customize the user interface.
*
*
* @return A reference to this updated object so that method calls can be
* chained together.
* @see DialogState
*/
public PostTextResult withDialogState(String dialogState) {
this.dialogState = dialogState;
return this;
}
/**
* ElicitIntent
- Amazon Lex wants to elicit user
* intent.
* ConfirmIntent
- Amazon Lex is expecting a "yes"
* or "no" response.
* ElicitSlot
- Amazon Lex is expecting a slot value
* for the current intent.
* Fulfilled
- Conveys that the Lambda function
* configured for the intent has successfully fulfilled the
* intent.
* ReadyForFulfillment
- Conveys that the client has
* to fulfill the intent.
* Failed
- Conveys that the conversation with the
* user failed.
* dialogState
. The client can
* optionally use this information to customize the user interface.
*
*
* ElicitIntent
- Amazon Lex wants to elicit user intent.
* ConfirmIntent
- Amazon Lex is expecting a "yes" or "no"
* response.
* ElicitSlot
- Amazon Lex is expecting a slot value for the
* current intent.
* Fulfilled
- Conveys that the Lambda function configured for
* the intent has successfully fulfilled the intent.
* ReadyForFulfillment
- Conveys that the client has to fulfill
* the intent.
* Failed
- Conveys that the conversation with the user failed.
*
* Allowed Values: ElicitIntent, ConfirmIntent, ElicitSlot,
* Fulfilled, ReadyForFulfillment, Failed
*
* @param dialogState dialogState
. The client can optionally use this
* information to customize the user interface.
*
*
* @see DialogState
*/
public void setDialogState(DialogState dialogState) {
this.dialogState = dialogState.toString();
}
/**
* ElicitIntent
- Amazon Lex wants to elicit user
* intent.
* ConfirmIntent
- Amazon Lex is expecting a "yes"
* or "no" response.
* ElicitSlot
- Amazon Lex is expecting a slot value
* for the current intent.
* Fulfilled
- Conveys that the Lambda function
* configured for the intent has successfully fulfilled the
* intent.
* ReadyForFulfillment
- Conveys that the client has
* to fulfill the intent.
* Failed
- Conveys that the conversation with the
* user failed.
* dialogState
. The client can
* optionally use this information to customize the user interface.
*
*
* ElicitIntent
- Amazon Lex wants to elicit user intent.
* ConfirmIntent
- Amazon Lex is expecting a "yes" or "no"
* response.
* ElicitSlot
- Amazon Lex is expecting a slot value for the
* current intent.
* Fulfilled
- Conveys that the Lambda function configured for
* the intent has successfully fulfilled the intent.
* ReadyForFulfillment
- Conveys that the client has to fulfill
* the intent.
* Failed
- Conveys that the conversation with the user failed.
*
* Allowed Values: ElicitIntent, ConfirmIntent, ElicitSlot,
* Fulfilled, ReadyForFulfillment, Failed
*
* @param dialogState dialogState
. The client can optionally use this
* information to customize the user interface.
*
*
* @return A reference to this updated object so that method calls can be
* chained together.
* @see DialogState
*/
public PostTextResult withDialogState(DialogState dialogState) {
this.dialogState = dialogState.toString();
return this;
}
/**
* ElicitIntent
- Amazon Lex wants to elicit user
* intent.
* ConfirmIntent
- Amazon Lex is expecting a "yes"
* or "no" response.
* ElicitSlot
- Amazon Lex is expecting a slot value
* for the current intent.
* Fulfilled
- Conveys that the Lambda function
* configured for the intent has successfully fulfilled the
* intent.
* ReadyForFulfillment
- Conveys that the client has
* to fulfill the intent.
* Failed
- Conveys that the conversation with the
* user failed.
* dialogState
value is ElicitSlot
, returns
* the name of the slot for which Amazon Lex is eliciting a value.
* dialogState
value is ElicitSlot
,
* returns the name of the slot for which Amazon Lex is eliciting a
* value.
* dialogState
value is ElicitSlot
, returns
* the name of the slot for which Amazon Lex is eliciting a value.
* dialogState
value is
* ElicitSlot
, returns the name of the slot for
* which Amazon Lex is eliciting a value.
* dialogState
value is ElicitSlot
, returns
* the name of the slot for which Amazon Lex is eliciting a value.
* dialogState
value is
* ElicitSlot
, returns the name of the slot for
* which Amazon Lex is eliciting a value.
*
* Length: 1 - 64
* Pattern: [0-9]+|\$LATEST
*
* @return
* Length: 1 - 64
* Pattern: [0-9]+|\$LATEST
*
* @param botVersion
* Length: 1 - 64
* Pattern: [0-9]+|\$LATEST
*
* @param botVersion PostContent
,
* PostText
, or PutSession
operation.
* PostContent
, PostText
, or
* PutSession
operation.
* PostContent
,
* PostText
, or PutSession
operation.
* PostContent
, PostText
, or
* PutSession
operation.
* PostContent
,
* PostText
, or PutSession
operation.
* PostContent
, PostText
, or
* PutSession
operation.
* PostContent
,
* PostText
, or PutSession
operation.
* PostContent
, PostText
, or
* PutSession
operation.
*