Interface Interpretation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Interpretation.Builder,Interpretation>,SdkBuilder<Interpretation.Builder,Interpretation>,SdkPojo
- Enclosing class:
- Interpretation
public static interface Interpretation.Builder extends SdkPojo, CopyableBuilder<Interpretation.Builder,Interpretation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Interpretation.Builderintent(Consumer<Intent.Builder> intent)A list of intents that might satisfy the user's utterance.Interpretation.Builderintent(Intent intent)A list of intents that might satisfy the user's utterance.Interpretation.BuilderinterpretationSource(String interpretationSource)Specifies the service that interpreted the input.Interpretation.BuilderinterpretationSource(InterpretationSource interpretationSource)Specifies the service that interpreted the input.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.Interpretation.BuildernluConfidence(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.Interpretation.BuildersentimentResponse(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
nluConfidence
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.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
default Interpretation.Builder nluConfidence(Consumer<ConfidenceScore.Builder> 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:
nluConfidence(ConfidenceScore)
-
sentimentResponse
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.
- 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:
sentimentResponse(SentimentResponse)
-
intent
Interpretation.Builder intent(Intent 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
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.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:
intent(Intent)
-
interpretationSource
Interpretation.Builder interpretationSource(String interpretationSource)
Specifies the service that interpreted the input.
- Parameters:
interpretationSource- Specifies the service that interpreted the input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InterpretationSource,InterpretationSource
-
interpretationSource
Interpretation.Builder interpretationSource(InterpretationSource interpretationSource)
Specifies the service that interpreted the input.
- Parameters:
interpretationSource- Specifies the service that interpreted the input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InterpretationSource,InterpretationSource
-
-