Interface RecognizeTextResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<RecognizeTextResponse.Builder,
,RecognizeTextResponse> LexRuntimeV2Response.Builder
,SdkBuilder<RecognizeTextResponse.Builder,
,RecognizeTextResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
RecognizeTextResponse
-
Method Summary
Modifier and TypeMethodDescriptioninterpretations
(Collection<Interpretation> interpretations) A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.interpretations
(Consumer<Interpretation.Builder>... interpretations) A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.interpretations
(Interpretation... interpretations) A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.messages
(Collection<Message> messages) A list of messages last sent to the user.messages
(Consumer<Message.Builder>... messages) A list of messages last sent to the user.A list of messages last sent to the user.default RecognizeTextResponse.Builder
recognizedBotMember
(Consumer<RecognizedBotMember.Builder> recognizedBotMember) The bot member that recognized the text.recognizedBotMember
(RecognizedBotMember recognizedBotMember) The bot member that recognized the text.requestAttributes
(Map<String, String> requestAttributes) The attributes sent in the request.The identifier of the session in use.default RecognizeTextResponse.Builder
sessionState
(Consumer<SessionState.Builder> sessionState) Represents the current state of the dialog between the user and the bot.sessionState
(SessionState sessionState) Represents the current state of the dialog between the user and the bot.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.lexruntimev2.model.LexRuntimeV2Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
messages
A list of messages 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.
- Parameters:
messages
- A list of messages 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
A list of messages 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.
- Parameters:
messages
- A list of messages 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
A list of messages 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.
This is a convenience method that creates an instance of theMessage.Builder
avoiding the need to create one manually viaMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomessages(List<Message>)
.- Parameters:
messages
- a consumer that will call methods onMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 may be.
- Parameters:
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 may be.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 may be.
This is a convenience method that creates an instance of theSessionState.Builder
avoiding the need to create one manually viaSessionState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosessionState(SessionState)
.- Parameters:
sessionState
- a consumer that will call methods onSessionState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 now 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.
- Parameters:
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 now 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 now 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.
- Parameters:
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 now 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 now 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.
This is a convenience method that creates an instance of theInterpretation.Builder
avoiding the need to create one manually viaInterpretation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tointerpretations(List<Interpretation>)
.- Parameters:
interpretations
- a consumer that will call methods onInterpretation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
requestAttributes
The attributes sent in the request.
- Parameters:
requestAttributes
- The attributes sent in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The identifier of the session in use.
- Parameters:
sessionId
- The identifier of the session in use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recognizedBotMember
The bot member that recognized the text.
- Parameters:
recognizedBotMember
- The bot member that recognized the text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recognizedBotMember
default RecognizeTextResponse.Builder recognizedBotMember(Consumer<RecognizedBotMember.Builder> recognizedBotMember) The bot member that recognized the text.
This is a convenience method that creates an instance of theRecognizedBotMember.Builder
avoiding the need to create one manually viaRecognizedBotMember.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecognizedBotMember(RecognizedBotMember)
.- Parameters:
recognizedBotMember
- a consumer that will call methods onRecognizedBotMember.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-