Interface PredictedIntent.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PredictedIntent.Builder,
,PredictedIntent> SdkBuilder<PredictedIntent.Builder,
,PredictedIntent> SdkPojo
- Enclosing class:
PredictedIntent
public static interface PredictedIntent.Builder
extends SdkPojo, CopyableBuilder<PredictedIntent.Builder,PredictedIntent>
-
Method Summary
Modifier and TypeMethodDescriptionintentName
(String intentName) The name of the intent that Amazon Lex suggests satisfies the user's intent.default PredictedIntent.Builder
nluIntentConfidence
(Consumer<IntentConfidence.Builder> nluIntentConfidence) Indicates how confident Amazon Lex is that an intent satisfies the user's intent.nluIntentConfidence
(IntentConfidence nluIntentConfidence) Indicates how confident Amazon Lex is that an intent satisfies the user's intent.The slot and slot values associated with the predicted intent.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
-
intentName
The name of the intent that Amazon Lex suggests satisfies the user's intent.
- Parameters:
intentName
- The name of the intent that Amazon Lex suggests satisfies the user's intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nluIntentConfidence
Indicates how confident Amazon Lex is that an intent satisfies the user's intent.
- Parameters:
nluIntentConfidence
- Indicates how confident Amazon Lex is that an intent satisfies the user's intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nluIntentConfidence
default PredictedIntent.Builder nluIntentConfidence(Consumer<IntentConfidence.Builder> nluIntentConfidence) Indicates how confident Amazon Lex is that an intent satisfies the user's intent.
This is a convenience method that creates an instance of theIntentConfidence.Builder
avoiding the need to create one manually viaIntentConfidence.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonluIntentConfidence(IntentConfidence)
.- Parameters:
nluIntentConfidence
- a consumer that will call methods onIntentConfidence.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
slots
The slot and slot values associated with the predicted intent.
- Parameters:
slots
- The slot and slot values associated with the predicted intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-