Class PutSessionResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.lexruntime.model.LexRuntimeResponse
-
- software.amazon.awssdk.services.lexruntime.model.PutSessionResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<PutSessionResponse.Builder,PutSessionResponse>
@Generated("software.amazon.awssdk:codegen") public final class PutSessionResponse extends LexRuntimeResponse implements ToCopyableBuilder<PutSessionResponse.Builder,PutSessionResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutSessionResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringactiveContexts()A list of active contexts for the session.static PutSessionResponse.Builderbuilder()StringcontentType()Content type as specified in theAcceptHTTP header in the request.DialogStatedialogState()StringdialogStateAsString()StringencodedMessage()The next message that should be presented to the user.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringintentName()The name of the current intent.Stringmessage()Deprecated.The message field is deprecated, use the encodedMessage field instead.MessageFormatTypemessageFormat()The format of the response message.StringmessageFormatAsString()The format of the response message.List<SdkField<?>>sdkFields()static Class<? extends PutSessionResponse.Builder>serializableBuilderClass()StringsessionAttributes()Map of key/value pairs representing session-specific context information.StringsessionId()A unique identifier for the session.Stringslots()Map of zero or more intent slots Amazon Lex detected from the user input during the conversation.StringslotToElicit()If thedialogStateisElicitSlot, returns the name of the slot for which Amazon Lex is eliciting a value.PutSessionResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.lexruntime.model.LexRuntimeResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
contentType
public final String contentType()
Content type as specified in the
AcceptHTTP header in the request.- Returns:
- Content type as specified in the
AcceptHTTP header in the request.
-
intentName
public final String intentName()
The name of the current intent.
- Returns:
- The name of the current intent.
-
slots
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
valueSelectionStrategyselected when the slot type was created or updated. IfvalueSelectionStrategyis set toORIGINAL_VALUE, the value provided by the user is returned, if the user value is similar to the slot values. IfvalueSelectionStrategyis set toTOP_RESOLUTIONAmazon Lex returns the first value in the resolution list or, if there is no resolution list, null. If you don't specify avalueSelectionStrategythe default isORIGINAL_VALUE.- Returns:
- 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
valueSelectionStrategyselected when the slot type was created or updated. IfvalueSelectionStrategyis set toORIGINAL_VALUE, the value provided by the user is returned, if the user value is similar to the slot values. IfvalueSelectionStrategyis set toTOP_RESOLUTIONAmazon Lex returns the first value in the resolution list or, if there is no resolution list, null. If you don't specify avalueSelectionStrategythe default isORIGINAL_VALUE.
-
sessionAttributes
public final String sessionAttributes()
Map of key/value pairs representing session-specific context information.
- Returns:
- Map of key/value pairs representing session-specific context information.
-
message
@Deprecated public final 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.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
messagefield is null. You should use theencodedMessagefield instead.- Returns:
- 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
messagefield is null. You should use theencodedMessagefield instead.
-
encodedMessage
public final String encodedMessage()
The next message that should be presented to the user.
The
encodedMessagefield is base-64 encoded. You must decode the field before you can use the value.- Returns:
- The next message that should be presented to the user.
The
encodedMessagefield is base-64 encoded. You must decode the field before you can use the value.
-
messageFormat
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,
messageFormatwill returnMessageFormatType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommessageFormatAsString().- Returns:
- 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.
-
- See Also:
MessageFormatType
-
-
messageFormatAsString
public 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,
messageFormatwill returnMessageFormatType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommessageFormatAsString().- Returns:
- 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.
-
- See Also:
MessageFormatType
-
-
dialogState
public 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,
dialogStatewill returnDialogState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdialogStateAsString().- Returns:
-
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.
-
- See Also:
DialogState
-
-
dialogStateAsString
public 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,
dialogStatewill returnDialogState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdialogStateAsString().- Returns:
-
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.
-
- See Also:
DialogState
-
-
slotToElicit
public final String slotToElicit()
If the
dialogStateisElicitSlot, returns the name of the slot for which Amazon Lex is eliciting a value.- Returns:
- If the
dialogStateisElicitSlot, returns the name of the slot for which Amazon Lex is eliciting a value.
-
sessionId
public final String sessionId()
A unique identifier for the session.
- Returns:
- A unique identifier for the session.
-
activeContexts
public final String activeContexts()
A list of active contexts for the session.
- Returns:
- A list of active contexts for the session.
-
toBuilder
public PutSessionResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutSessionResponse.Builder,PutSessionResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static PutSessionResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends PutSessionResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-