public static interface Interpretation.Builder extends SdkPojo, CopyableBuilder<Interpretation.Builder,Interpretation>
| Modifier and Type | Method and Description |
|---|---|
default Interpretation.Builder |
intent(Consumer<Intent.Builder> intent)
A list of intents that might satisfy the user's utterance.
|
Interpretation.Builder |
intent(Intent intent)
A list of intents that might satisfy the user's utterance.
|
Interpretation.Builder |
nluConfidence(ConfidenceScore nluConfidence)
Determines the threshold where Amazon Lex V2 will insert the
AMAZON.FallbackIntent,
AMAZON.KendraSearchIntent, or both when returning alternative intents in a response. |
default Interpretation.Builder |
nluConfidence(Consumer<ConfidenceScore.Builder> nluConfidence)
Determines the threshold where Amazon Lex V2 will insert the
AMAZON.FallbackIntent,
AMAZON.KendraSearchIntent, or both when returning alternative intents in a response. |
default Interpretation.Builder |
sentimentResponse(Consumer<SentimentResponse.Builder> sentimentResponse)
The sentiment expressed in an utterance.
|
Interpretation.Builder |
sentimentResponse(SentimentResponse sentimentResponse)
The sentiment expressed in an utterance.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildInterpretation.Builder nluConfidence(ConfidenceScore nluConfidence)
Determines the threshold where Amazon Lex V2 will insert the AMAZON.FallbackIntent,
AMAZON.KendraSearchIntent, or both when returning alternative intents in a response.
AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are
configured for the bot.
nluConfidence - Determines the threshold where Amazon Lex V2 will insert the AMAZON.FallbackIntent,
AMAZON.KendraSearchIntent, or both when returning alternative intents in a response.
AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if
they are configured for the bot.default Interpretation.Builder nluConfidence(Consumer<ConfidenceScore.Builder> nluConfidence)
Determines the threshold where Amazon Lex V2 will insert the AMAZON.FallbackIntent,
AMAZON.KendraSearchIntent, or both when returning alternative intents in a response.
AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are
configured for the bot.
ConfidenceScore.Builder avoiding the
need to create one manually via ConfidenceScore.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to nluConfidence(ConfidenceScore).
nluConfidence - a consumer that will call methods on ConfidenceScore.BuildernluConfidence(ConfidenceScore)Interpretation.Builder sentimentResponse(SentimentResponse sentimentResponse)
The sentiment expressed in an utterance.
When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field contains the result of the analysis.
sentimentResponse - The sentiment expressed in an utterance.
When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field contains the result of the analysis.
default Interpretation.Builder sentimentResponse(Consumer<SentimentResponse.Builder> sentimentResponse)
The sentiment expressed in an utterance.
When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field contains the result of the analysis.
This is a convenience method that creates an instance of theSentimentResponse.Builder avoiding the
need to create one manually via SentimentResponse.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to sentimentResponse(SentimentResponse).
sentimentResponse - a consumer that will call methods on SentimentResponse.BuildersentimentResponse(SentimentResponse)Interpretation.Builder intent(Intent intent)
A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.
intent - A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence
score.default Interpretation.Builder intent(Consumer<Intent.Builder> intent)
A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.
This is a convenience method that creates an instance of theIntent.Builder avoiding the need to
create one manually via Intent.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to intent(Intent).
intent - a consumer that will call methods on Intent.Builderintent(Intent)Copyright © 2023. All rights reserved.