Class RecognizeUtteranceResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.lexruntimev2.model.LexRuntimeV2Response
-
- software.amazon.awssdk.services.lexruntimev2.model.RecognizeUtteranceResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<RecognizeUtteranceResponse.Builder,RecognizeUtteranceResponse>
@Generated("software.amazon.awssdk:codegen") public final class RecognizeUtteranceResponse extends LexRuntimeV2Response implements ToCopyableBuilder<RecognizeUtteranceResponse.Builder,RecognizeUtteranceResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRecognizeUtteranceResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RecognizeUtteranceResponse.Builderbuilder()StringcontentType()Content type as specified in theresponseContentTypein the request.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinputMode()Indicates whether the input mode to the operation was text, speech, or from a touch-tone keypad.StringinputTranscript()The text used to process the request.Stringinterpretations()A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.Stringmessages()A list of messages that were last sent to the user.StringrecognizedBotMember()The bot member that recognized the utterance.StringrequestAttributes()The attributes sent in the request.List<SdkField<?>>sdkFields()static Class<? extends RecognizeUtteranceResponse.Builder>serializableBuilderClass()StringsessionId()The identifier of the session in use.StringsessionState()Represents the current state of the dialog between the user and the bot.RecognizeUtteranceResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.lexruntimev2.model.LexRuntimeV2Response
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
-
inputMode
public final String inputMode()
Indicates whether the input mode to the operation was text, speech, or from a touch-tone keypad.
- Returns:
- Indicates whether the input mode to the operation was text, speech, or from a touch-tone keypad.
-
contentType
public final String contentType()
Content type as specified in the
responseContentTypein the request.- Returns:
- Content type as specified in the
responseContentTypein the request.
-
messages
public final String messages()
A list of messages that were last sent to the user. The messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.
The
messagesfield is compressed with gzip and then base64 encoded. Before you can use the contents of the field, you must decode and decompress the contents. See the example for a simple function to decode and decompress the contents.- Returns:
- A list of messages that were last sent to the user. The messages are ordered based on the order that you
returned the messages from your Lambda function or the order that the messages are defined in the
bot.
The
messagesfield is compressed with gzip and then base64 encoded. Before you can use the contents of the field, you must decode and decompress the contents. See the example for a simple function to decode and decompress the contents.
-
interpretations
public final String interpretations()
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
The
interpretationsfield is compressed with gzip and then base64 encoded. Before you can use the contents of the field, you must decode and decompress the contents. See the example for a simple function to decode and decompress the contents.- Returns:
- A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
The
interpretationsfield is compressed with gzip and then base64 encoded. Before you can use the contents of the field, you must decode and decompress the contents. See the example for a simple function to decode and decompress the contents.
-
sessionState
public final String sessionState()
Represents the current state of the dialog between the user and the bot.
Use this to determine the progress of the conversation and what the next action might be.
The
sessionStatefield is compressed with gzip and then base64 encoded. Before you can use the contents of the field, you must decode and decompress the contents. See the example for a simple function to decode and decompress the contents.- Returns:
- Represents the current state of the dialog between the user and the bot.
Use this to determine the progress of the conversation and what the next action might be.
The
sessionStatefield is compressed with gzip and then base64 encoded. Before you can use the contents of the field, you must decode and decompress the contents. See the example for a simple function to decode and decompress the contents.
-
requestAttributes
public final String requestAttributes()
The attributes sent in the request.
The
requestAttributesfield is compressed with gzip and then base64 encoded. Before you can use the contents of the field, you must decode and decompress the contents.- Returns:
- The attributes sent in the request.
The
requestAttributesfield is compressed with gzip and then base64 encoded. Before you can use the contents of the field, you must decode and decompress the contents.
-
sessionId
public final String sessionId()
The identifier of the session in use.
- Returns:
- The identifier of the session in use.
-
inputTranscript
public final String inputTranscript()
The text used to process the request.
If the input was an audio stream, the
inputTranscriptfield contains the text extracted from the audio stream. This is the text that is actually processed to recognize intents and slot values. You can use this information to determine if Amazon Lex V2 is correctly processing the audio that you send.The
inputTranscriptfield is compressed with gzip and then base64 encoded. Before you can use the contents of the field, you must decode and decompress the contents. See the example for a simple function to decode and decompress the contents.- Returns:
- The text used to process the request.
If the input was an audio stream, the
inputTranscriptfield contains the text extracted from the audio stream. This is the text that is actually processed to recognize intents and slot values. You can use this information to determine if Amazon Lex V2 is correctly processing the audio that you send.The
inputTranscriptfield is compressed with gzip and then base64 encoded. Before you can use the contents of the field, you must decode and decompress the contents. See the example for a simple function to decode and decompress the contents.
-
recognizedBotMember
public final String recognizedBotMember()
The bot member that recognized the utterance.
- Returns:
- The bot member that recognized the utterance.
-
toBuilder
public RecognizeUtteranceResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RecognizeUtteranceResponse.Builder,RecognizeUtteranceResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static RecognizeUtteranceResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends RecognizeUtteranceResponse.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
-
-