Interface UserTurnResult.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<UserTurnResult.Builder,
,UserTurnResult> SdkBuilder<UserTurnResult.Builder,
,UserTurnResult> SdkPojo
- Enclosing class:
UserTurnResult
-
Method Summary
Modifier and TypeMethodDescriptiondefault UserTurnResult.Builder
actualOutput
(Consumer<UserTurnOutputSpecification.Builder> actualOutput) Contains information about the actual output for the user turn.actualOutput
(UserTurnOutputSpecification actualOutput) Contains information about the actual output for the user turn.default UserTurnResult.Builder
conversationLevelResult
(Consumer<ConversationLevelResultDetail.Builder> conversationLevelResult) Contains information about the results related to the conversation associated with the user turn.conversationLevelResult
(ConversationLevelResultDetail conversationLevelResult) Contains information about the results related to the conversation associated with the user turn.endToEndResult
(String endToEndResult) Specifies whether the expected and actual outputs match or not, or if there is an error in execution.endToEndResult
(TestResultMatchStatus endToEndResult) Specifies whether the expected and actual outputs match or not, or if there is an error in execution.default UserTurnResult.Builder
errorDetails
(Consumer<ExecutionErrorDetails.Builder> errorDetails) Sets the value of the ErrorDetails property for this object.errorDetails
(ExecutionErrorDetails errorDetails) Sets the value of the ErrorDetails property for this object.default UserTurnResult.Builder
expectedOutput
(Consumer<UserTurnOutputSpecification.Builder> expectedOutput) Contains information about the expected output for the user turn.expectedOutput
(UserTurnOutputSpecification expectedOutput) Contains information about the expected output for the user turn.default UserTurnResult.Builder
Contains information about the user messages in the turn in the input.input
(UserTurnInputSpecification input) Contains information about the user messages in the turn in the input.intentMatchResult
(String intentMatchResult) Specifies whether the expected and actual intents match or not.intentMatchResult
(TestResultMatchStatus intentMatchResult) Specifies whether the expected and actual intents match or not.slotMatchResult
(String slotMatchResult) Specifies whether the expected and actual slots match or not.slotMatchResult
(TestResultMatchStatus slotMatchResult) Specifies whether the expected and actual slots match or not.speechTranscriptionResult
(String speechTranscriptionResult) Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.speechTranscriptionResult
(TestResultMatchStatus speechTranscriptionResult) Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.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 Details
-
input
Contains information about the user messages in the turn in the input.
- Parameters:
input
- Contains information about the user messages in the turn in the input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
input
Contains information about the user messages in the turn in the input.
This is a convenience method that creates an instance of theUserTurnInputSpecification.Builder
avoiding the need to create one manually viaUserTurnInputSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinput(UserTurnInputSpecification)
.- Parameters:
input
- a consumer that will call methods onUserTurnInputSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
expectedOutput
Contains information about the expected output for the user turn.
- Parameters:
expectedOutput
- Contains information about the expected output for the user turn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedOutput
default UserTurnResult.Builder expectedOutput(Consumer<UserTurnOutputSpecification.Builder> expectedOutput) Contains information about the expected output for the user turn.
This is a convenience method that creates an instance of theUserTurnOutputSpecification.Builder
avoiding the need to create one manually viaUserTurnOutputSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexpectedOutput(UserTurnOutputSpecification)
.- Parameters:
expectedOutput
- a consumer that will call methods onUserTurnOutputSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actualOutput
Contains information about the actual output for the user turn.
- Parameters:
actualOutput
- Contains information about the actual output for the user turn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actualOutput
default UserTurnResult.Builder actualOutput(Consumer<UserTurnOutputSpecification.Builder> actualOutput) Contains information about the actual output for the user turn.
This is a convenience method that creates an instance of theUserTurnOutputSpecification.Builder
avoiding the need to create one manually viaUserTurnOutputSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactualOutput(UserTurnOutputSpecification)
.- Parameters:
actualOutput
- a consumer that will call methods onUserTurnOutputSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errorDetails
Sets the value of the ErrorDetails property for this object.- Parameters:
errorDetails
- The new value for the ErrorDetails property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorDetails
Sets the value of the ErrorDetails property for this object. This is a convenience method that creates an instance of theExecutionErrorDetails.Builder
avoiding the need to create one manually viaExecutionErrorDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrorDetails(ExecutionErrorDetails)
.- Parameters:
errorDetails
- a consumer that will call methods onExecutionErrorDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
endToEndResult
Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
- Parameters:
endToEndResult
- Specifies whether the expected and actual outputs match or not, or if there is an error in execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
endToEndResult
Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
- Parameters:
endToEndResult
- Specifies whether the expected and actual outputs match or not, or if there is an error in execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
intentMatchResult
Specifies whether the expected and actual intents match or not.
- Parameters:
intentMatchResult
- Specifies whether the expected and actual intents match or not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
intentMatchResult
Specifies whether the expected and actual intents match or not.
- Parameters:
intentMatchResult
- Specifies whether the expected and actual intents match or not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
slotMatchResult
Specifies whether the expected and actual slots match or not.
- Parameters:
slotMatchResult
- Specifies whether the expected and actual slots match or not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
slotMatchResult
Specifies whether the expected and actual slots match or not.
- Parameters:
slotMatchResult
- Specifies whether the expected and actual slots match or not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
speechTranscriptionResult
Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.
- Parameters:
speechTranscriptionResult
- Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
speechTranscriptionResult
Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.
- Parameters:
speechTranscriptionResult
- Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
conversationLevelResult
UserTurnResult.Builder conversationLevelResult(ConversationLevelResultDetail conversationLevelResult) Contains information about the results related to the conversation associated with the user turn.
- Parameters:
conversationLevelResult
- Contains information about the results related to the conversation associated with the user turn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conversationLevelResult
default UserTurnResult.Builder conversationLevelResult(Consumer<ConversationLevelResultDetail.Builder> conversationLevelResult) Contains information about the results related to the conversation associated with the user turn.
This is a convenience method that creates an instance of theConversationLevelResultDetail.Builder
avoiding the need to create one manually viaConversationLevelResultDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconversationLevelResult(ConversationLevelResultDetail)
.- Parameters:
conversationLevelResult
- a consumer that will call methods onConversationLevelResultDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-