Interface Interpretation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Interpretation.Builder,,Interpretation> SdkBuilder<Interpretation.Builder,,Interpretation> SdkPojo
- Enclosing class:
Interpretation
-
Method Summary
Modifier and TypeMethodDescriptiondefault Interpretation.Builderintent(Consumer<Intent.Builder> intent) A list of intents that might satisfy the user's utterance.A list of intents that might satisfy the user's utterance.default Interpretation.BuildernluConfidence(Consumer<ConfidenceScore.Builder> nluConfidence) Determines the threshold where Amazon Lex V2 will insert theAMAZON.FallbackIntent,AMAZON.KendraSearchIntent, or both when returning alternative intents in a response.nluConfidence(ConfidenceScore nluConfidence) Determines the threshold where Amazon Lex V2 will insert theAMAZON.FallbackIntent,AMAZON.KendraSearchIntent, or both when returning alternative intents in a response.default Interpretation.BuildersentimentResponse(Consumer<SentimentResponse.Builder> sentimentResponse) The sentiment expressed in an utterance.sentimentResponse(SentimentResponse sentimentResponse) The sentiment expressed in an utterance.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.FallbackIntentandAMAZON.KendraSearchIntentare only inserted if they are configured for the bot.- Parameters:
nluConfidence- Determines the threshold where Amazon Lex V2 will insert theAMAZON.FallbackIntent,AMAZON.KendraSearchIntent, or both when returning alternative intents in a response.AMAZON.FallbackIntentandAMAZON.KendraSearchIntentare only inserted if they are configured for the bot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nluConfidence
Determines the threshold where Amazon Lex V2 will insert the
This is a convenience method that creates an instance of theAMAZON.FallbackIntent,AMAZON.KendraSearchIntent, or both when returning alternative intents in a response.AMAZON.FallbackIntentandAMAZON.KendraSearchIntentare only inserted if they are configured for the bot.ConfidenceScore.Builderavoiding the need to create one manually viaConfidenceScore.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonluConfidence(ConfidenceScore).- Parameters:
nluConfidence- a consumer that will call methods onConfidenceScore.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sentimentResponse
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.Builderavoiding the need to create one manually viaSentimentResponse.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosentimentResponse(SentimentResponse).- Parameters:
sentimentResponse- a consumer that will call methods onSentimentResponse.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
intent
A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.
- Parameters:
intent- A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.Builderavoiding the need to create one manually viaIntent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tointent(Intent).- Parameters:
intent- a consumer that will call methods onIntent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-