public static interface RecognizeTextResponse.Builder extends LexRuntimeV2Response.Builder, SdkPojo, CopyableBuilder<RecognizeTextResponse.Builder,RecognizeTextResponse>
| Modifier and Type | Method and Description |
|---|---|
RecognizeTextResponse.Builder |
interpretations(Collection<Interpretation> interpretations)
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
|
RecognizeTextResponse.Builder |
interpretations(Consumer<Interpretation.Builder>... interpretations)
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
|
RecognizeTextResponse.Builder |
interpretations(Interpretation... interpretations)
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
|
RecognizeTextResponse.Builder |
messages(Collection<Message> messages)
A list of messages last sent to the user.
|
RecognizeTextResponse.Builder |
messages(Consumer<Message.Builder>... messages)
A list of messages last sent to the user.
|
RecognizeTextResponse.Builder |
messages(Message... messages)
A list of messages last sent to the user.
|
RecognizeTextResponse.Builder |
requestAttributes(Map<String,String> requestAttributes)
The attributes sent in the request.
|
RecognizeTextResponse.Builder |
sessionId(String sessionId)
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.
|
RecognizeTextResponse.Builder |
sessionState(SessionState sessionState)
Represents the current state of the dialog between the user and the bot.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildRecognizeTextResponse.Builder messages(Collection<Message> 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.
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.RecognizeTextResponse.Builder messages(Message... 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.
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.RecognizeTextResponse.Builder messages(Consumer<Message.Builder>... 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 via Message.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #messages(List.
messages - a consumer that will call methods on
Message.Builder#messages(java.util.Collection) RecognizeTextResponse.Builder sessionState(SessionState 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.
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.
default RecognizeTextResponse.Builder sessionState(Consumer<SessionState.Builder> 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 via SessionState.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to sessionState(SessionState).
sessionState - a consumer that will call methods on SessionState.BuildersessionState(SessionState)RecognizeTextResponse.Builder interpretations(Collection<Interpretation> 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.
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.
RecognizeTextResponse.Builder interpretations(Interpretation... 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.
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.
RecognizeTextResponse.Builder interpretations(Consumer<Interpretation.Builder>... 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 via Interpretation.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #interpretations(List.
interpretations - a consumer that will call methods on
Interpretation.Builder#interpretations(java.util.Collection) RecognizeTextResponse.Builder requestAttributes(Map<String,String> requestAttributes)
The attributes sent in the request.
requestAttributes - The attributes sent in the request.RecognizeTextResponse.Builder sessionId(String sessionId)
The identifier of the session in use.
sessionId - The identifier of the session in use.Copyright © 2022. All rights reserved.