public static interface PutSessionResponse.Builder extends LexRuntimeResponse.Builder, SdkPojo, CopyableBuilder<PutSessionResponse.Builder,PutSessionResponse>
| Modifier and Type | Method and Description |
|---|---|
PutSessionResponse.Builder |
activeContexts(String activeContexts)
A list of active contexts for the session.
|
PutSessionResponse.Builder |
contentType(String contentType)
Content type as specified in the
Accept HTTP header in the request. |
PutSessionResponse.Builder |
dialogState(DialogState dialogState)
|
PutSessionResponse.Builder |
dialogState(String dialogState)
|
PutSessionResponse.Builder |
encodedMessage(String encodedMessage)
The next message that should be presented to the user.
|
PutSessionResponse.Builder |
intentName(String intentName)
The name of the current intent.
|
PutSessionResponse.Builder |
message(String message)
Deprecated.
The message field is deprecated, use the encodedMessage field instead. The message field is
available only in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR and it-IT
locales.
|
PutSessionResponse.Builder |
messageFormat(MessageFormatType messageFormat)
The format of the response message.
|
PutSessionResponse.Builder |
messageFormat(String messageFormat)
The format of the response message.
|
PutSessionResponse.Builder |
sessionAttributes(String sessionAttributes)
Map of key/value pairs representing session-specific context information.
|
PutSessionResponse.Builder |
sessionId(String sessionId)
A unique identifier for the session.
|
PutSessionResponse.Builder |
slots(String slots)
Map of zero or more intent slots Amazon Lex detected from the user input during the conversation.
|
PutSessionResponse.Builder |
slotToElicit(String slotToElicit)
If the
dialogState is ElicitSlot, returns the name of the slot for which Amazon Lex
is eliciting a value. |
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildPutSessionResponse.Builder contentType(String contentType)
Content type as specified in the Accept HTTP header in the request.
contentType - Content type as specified in the Accept HTTP header in the request.PutSessionResponse.Builder intentName(String intentName)
The name of the current intent.
intentName - The name of the current intent.PutSessionResponse.Builder slots(String slots)
Map of zero or more intent slots Amazon Lex detected from the user input during 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.
slots - Map of zero or more intent slots Amazon Lex detected from the user input during 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.
PutSessionResponse.Builder sessionAttributes(String sessionAttributes)
Map of key/value pairs representing session-specific context information.
sessionAttributes - Map of key/value pairs representing session-specific context information.@Deprecated PutSessionResponse.Builder message(String message)
The next message that should be presented to the user.
You can only use this field in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR, and it-IT
locales. In all other locales, the message field is null. You should use the
encodedMessage field instead.
message - The next message that should be presented to the user.
You can only use this field in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR, and
it-IT locales. In all other locales, the message field is null. You should use the
encodedMessage field instead.
PutSessionResponse.Builder encodedMessage(String encodedMessage)
The next message that should be presented to the user.
The encodedMessage field is base-64 encoded. You must decode the field before you can use the
value.
encodedMessage - The next message that should be presented to the user.
The encodedMessage field is base-64 encoded. You must decode the field before you can use
the value.
PutSessionResponse.Builder messageFormat(String messageFormat)
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 for the client.
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.
messageFormat - 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 for the client.
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.
MessageFormatType,
MessageFormatTypePutSessionResponse.Builder messageFormat(MessageFormatType messageFormat)
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 for the client.
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.
messageFormat - 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 for the client.
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.
MessageFormatType,
MessageFormatTypePutSessionResponse.Builder dialogState(String dialogState)
ConfirmIntent - Amazon Lex is expecting a "yes" or "no" response to confirm the intent before
fulfilling an intent.
ElicitIntent - Amazon Lex wants to elicit the user's intent.
ElicitSlot - Amazon Lex is expecting the value of a slot for the current intent.
Failed - Conveys that the conversation with the user has failed. This can happen for various
reasons, including the user does not provide an appropriate response to prompts from the service, or if the
Lambda function fails to fulfill the intent.
Fulfilled - Conveys that the Lambda function has sucessfully fulfilled the intent.
ReadyForFulfillment - Conveys that the client has to fulfill the intent.
dialogState -
ConfirmIntent - Amazon Lex is expecting a "yes" or "no" response to confirm the intent
before fulfilling an intent.
ElicitIntent - Amazon Lex wants to elicit the user's intent.
ElicitSlot - Amazon Lex is expecting the value of a slot for the current intent.
Failed - Conveys that the conversation with the user has failed. This can happen for
various reasons, including the user does not provide an appropriate response to prompts from the
service, or if the Lambda function fails to fulfill the intent.
Fulfilled - Conveys that the Lambda function has sucessfully fulfilled the intent.
ReadyForFulfillment - Conveys that the client has to fulfill the intent.
DialogState,
DialogStatePutSessionResponse.Builder dialogState(DialogState dialogState)
ConfirmIntent - Amazon Lex is expecting a "yes" or "no" response to confirm the intent before
fulfilling an intent.
ElicitIntent - Amazon Lex wants to elicit the user's intent.
ElicitSlot - Amazon Lex is expecting the value of a slot for the current intent.
Failed - Conveys that the conversation with the user has failed. This can happen for various
reasons, including the user does not provide an appropriate response to prompts from the service, or if the
Lambda function fails to fulfill the intent.
Fulfilled - Conveys that the Lambda function has sucessfully fulfilled the intent.
ReadyForFulfillment - Conveys that the client has to fulfill the intent.
dialogState -
ConfirmIntent - Amazon Lex is expecting a "yes" or "no" response to confirm the intent
before fulfilling an intent.
ElicitIntent - Amazon Lex wants to elicit the user's intent.
ElicitSlot - Amazon Lex is expecting the value of a slot for the current intent.
Failed - Conveys that the conversation with the user has failed. This can happen for
various reasons, including the user does not provide an appropriate response to prompts from the
service, or if the Lambda function fails to fulfill the intent.
Fulfilled - Conveys that the Lambda function has sucessfully fulfilled the intent.
ReadyForFulfillment - Conveys that the client has to fulfill the intent.
DialogState,
DialogStatePutSessionResponse.Builder slotToElicit(String slotToElicit)
If the dialogState is ElicitSlot, returns the name of the slot for which Amazon Lex
is eliciting a value.
slotToElicit - If the dialogState is ElicitSlot, returns the name of the slot for which
Amazon Lex is eliciting a value.PutSessionResponse.Builder sessionId(String sessionId)
A unique identifier for the session.
sessionId - A unique identifier for the session.PutSessionResponse.Builder activeContexts(String activeContexts)
A list of active contexts for the session.
activeContexts - A list of active contexts for the session.Copyright © 2023. All rights reserved.