Interface Interpretation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Interpretation.Builder,
,Interpretation> SdkBuilder<Interpretation.Builder,
,Interpretation> SdkPojo
- Enclosing class:
Interpretation
-
Method Summary
Modifier and TypeMethodDescriptiondefault Interpretation.Builder
intent
(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.Builder
nluConfidence
(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.Builder
sentimentResponse
(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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods 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.FallbackIntent
andAMAZON.KendraSearchIntent
are 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.FallbackIntent
andAMAZON.KendraSearchIntent
are 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.FallbackIntent
andAMAZON.KendraSearchIntent
are only inserted if they are configured for the bot.ConfidenceScore.Builder
avoiding the need to create one manually viaConfidenceScore.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaSentimentResponse.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaIntent.builder()
.When the
Consumer
completes,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:
-