@Generated(value="software.amazon.awssdk:codegen") public final class PutSessionResponse extends LexRuntimeResponse implements ToCopyableBuilder<PutSessionResponse.Builder,PutSessionResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
PutSessionResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
activeContexts()
A list of active contexts for the session.
|
static PutSessionResponse.Builder |
builder() |
String |
contentType()
Content type as specified in the
Accept HTTP header in the request. |
DialogState |
dialogState()
|
String |
dialogStateAsString()
|
String |
encodedMessage()
The next message that should be presented to the user.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
intentName()
The name of the current intent.
|
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.
|
MessageFormatType |
messageFormat()
The format of the response message.
|
String |
messageFormatAsString()
The format of the response message.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PutSessionResponse.Builder> |
serializableBuilderClass() |
String |
sessionAttributes()
Map of key/value pairs representing session-specific context information.
|
String |
sessionId()
A unique identifier for the session.
|
String |
slots()
Map of zero or more intent slots Amazon Lex detected from the user input during the conversation.
|
String |
slotToElicit()
If the
dialogState is ElicitSlot, returns the name of the slot for which Amazon Lex is
eliciting a value. |
PutSessionResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String contentType()
Content type as specified in the Accept HTTP header in the request.
Accept HTTP header in the request.public final String intentName()
The name of the current intent.
public final 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.
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.
public final String sessionAttributes()
Map of key/value pairs representing session-specific context information.
@Deprecated public final 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.
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.
public final 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.
The encodedMessage field is base-64 encoded. You must decode the field before you can use
the value.
public final 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.
If the service returns an enum value that is not available in the current SDK version, messageFormat
will return MessageFormatType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from messageFormatAsString().
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.
MessageFormatTypepublic final String messageFormatAsString()
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.
If the service returns an enum value that is not available in the current SDK version, messageFormat
will return MessageFormatType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from messageFormatAsString().
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.
MessageFormatTypepublic final 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.
If the service returns an enum value that is not available in the current SDK version, dialogState will
return DialogState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
dialogStateAsString().
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.
DialogStatepublic final String dialogStateAsString()
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.
If the service returns an enum value that is not available in the current SDK version, dialogState will
return DialogState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
dialogStateAsString().
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.
DialogStatepublic final String slotToElicit()
If the dialogState is ElicitSlot, returns the name of the slot for which Amazon Lex is
eliciting a value.
dialogState is ElicitSlot, returns the name of the slot for which Amazon
Lex is eliciting a value.public final String sessionId()
A unique identifier for the session.
public final String activeContexts()
A list of active contexts for the session.
public PutSessionResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PutSessionResponse.Builder,PutSessionResponse>toBuilder in class AwsResponsepublic static PutSessionResponse.Builder builder()
public static Class<? extends PutSessionResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2023. All rights reserved.