Class UserTurnResult
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<UserTurnResult.Builder,
UserTurnResult>
Contains the results for the user turn by the test execution.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionContains information about the actual output for the user turn.static UserTurnResult.Builder
builder()
Contains information about the results related to the conversation associated with the user turn.final TestResultMatchStatus
Specifies whether the expected and actual outputs match or not, or if there is an error in execution.final String
Specifies whether the expected and actual outputs match or not, or if there is an error in execution.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final ExecutionErrorDetails
Returns the value of the ErrorDetails property for this object.Contains information about the expected output for the user turn.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
input()
Contains information about the user messages in the turn in the input.final TestResultMatchStatus
Specifies whether the expected and actual intents match or not.final String
Specifies whether the expected and actual intents match or not.static Class
<? extends UserTurnResult.Builder> final TestResultMatchStatus
Specifies whether the expected and actual slots match or not.final String
Specifies whether the expected and actual slots match or not.final TestResultMatchStatus
Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.final String
Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
input
Contains information about the user messages in the turn in the input.
- Returns:
- Contains information about the user messages in the turn in the input.
-
expectedOutput
Contains information about the expected output for the user turn.
- Returns:
- Contains information about the expected output for the user turn.
-
actualOutput
Contains information about the actual output for the user turn.
- Returns:
- Contains information about the actual output for the user turn.
-
errorDetails
Returns the value of the ErrorDetails property for this object.- Returns:
- The value of the ErrorDetails property for this object.
-
endToEndResult
Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
If the service returns an enum value that is not available in the current SDK version,
endToEndResult
will returnTestResultMatchStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromendToEndResultAsString()
.- Returns:
- Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
- See Also:
-
endToEndResultAsString
Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
If the service returns an enum value that is not available in the current SDK version,
endToEndResult
will returnTestResultMatchStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromendToEndResultAsString()
.- Returns:
- Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
- See Also:
-
intentMatchResult
Specifies whether the expected and actual intents match or not.
If the service returns an enum value that is not available in the current SDK version,
intentMatchResult
will returnTestResultMatchStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromintentMatchResultAsString()
.- Returns:
- Specifies whether the expected and actual intents match or not.
- See Also:
-
intentMatchResultAsString
Specifies whether the expected and actual intents match or not.
If the service returns an enum value that is not available in the current SDK version,
intentMatchResult
will returnTestResultMatchStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromintentMatchResultAsString()
.- Returns:
- Specifies whether the expected and actual intents match or not.
- See Also:
-
slotMatchResult
Specifies whether the expected and actual slots match or not.
If the service returns an enum value that is not available in the current SDK version,
slotMatchResult
will returnTestResultMatchStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromslotMatchResultAsString()
.- Returns:
- Specifies whether the expected and actual slots match or not.
- See Also:
-
slotMatchResultAsString
Specifies whether the expected and actual slots match or not.
If the service returns an enum value that is not available in the current SDK version,
slotMatchResult
will returnTestResultMatchStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromslotMatchResultAsString()
.- Returns:
- Specifies whether the expected and actual slots match or not.
- See Also:
-
speechTranscriptionResult
Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.
If the service returns an enum value that is not available in the current SDK version,
speechTranscriptionResult
will returnTestResultMatchStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromspeechTranscriptionResultAsString()
.- Returns:
- Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.
- See Also:
-
speechTranscriptionResultAsString
Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.
If the service returns an enum value that is not available in the current SDK version,
speechTranscriptionResult
will returnTestResultMatchStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromspeechTranscriptionResultAsString()
.- Returns:
- Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.
- See Also:
-
conversationLevelResult
Contains information about the results related to the conversation associated with the user turn.
- Returns:
- Contains information about the results related to the conversation associated with the user turn.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<UserTurnResult.Builder,
UserTurnResult> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-