Interface IntentClassificationTestResultItem.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<IntentClassificationTestResultItem.Builder,
,IntentClassificationTestResultItem> SdkBuilder<IntentClassificationTestResultItem.Builder,
,IntentClassificationTestResultItem> SdkPojo
- Enclosing class:
IntentClassificationTestResultItem
public static interface IntentClassificationTestResultItem.Builder
extends SdkPojo, CopyableBuilder<IntentClassificationTestResultItem.Builder,IntentClassificationTestResultItem>
-
Method Summary
Modifier and TypeMethodDescriptionintentName
(String intentName) The name of the intent.multiTurnConversation
(Boolean multiTurnConversation) Indicates whether the conversation involves multiple turns or not.resultCounts
(Consumer<IntentClassificationTestResultItemCounts.Builder> resultCounts) The result of the intent classification test.resultCounts
(IntentClassificationTestResultItemCounts resultCounts) The result of the intent classification test.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.
- Parameters:
intentName
- The name of the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
multiTurnConversation
Indicates whether the conversation involves multiple turns or not.
- Parameters:
multiTurnConversation
- Indicates whether the conversation involves multiple turns or not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultCounts
IntentClassificationTestResultItem.Builder resultCounts(IntentClassificationTestResultItemCounts resultCounts) The result of the intent classification test.
- Parameters:
resultCounts
- The result of the intent classification test.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultCounts
default IntentClassificationTestResultItem.Builder resultCounts(Consumer<IntentClassificationTestResultItemCounts.Builder> resultCounts) The result of the intent classification test.
This is a convenience method that creates an instance of theIntentClassificationTestResultItemCounts.Builder
avoiding the need to create one manually viaIntentClassificationTestResultItemCounts.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresultCounts(IntentClassificationTestResultItemCounts)
.- Parameters:
resultCounts
- a consumer that will call methods onIntentClassificationTestResultItemCounts.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-