Class UserTurnResult
- java.lang.Object
-
- software.amazon.awssdk.services.lexmodelsv2.model.UserTurnResult
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<UserTurnResult.Builder,UserTurnResult>
@Generated("software.amazon.awssdk:codegen") public final class UserTurnResult extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UserTurnResult.Builder,UserTurnResult>
Contains the results for the user turn by the test execution.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUserTurnResult.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UserTurnOutputSpecificationactualOutput()Contains information about the actual output for the user turn.static UserTurnResult.Builderbuilder()ConversationLevelResultDetailconversationLevelResult()Contains information about the results related to the conversation associated with the user turn.TestResultMatchStatusendToEndResult()Specifies whether the expected and actual outputs match or not, or if there is an error in execution.StringendToEndResultAsString()Specifies whether the expected and actual outputs match or not, or if there is an error in execution.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)ExecutionErrorDetailserrorDetails()Returns the value of the ErrorDetails property for this object.UserTurnOutputSpecificationexpectedOutput()Contains information about the expected output for the user turn.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()UserTurnInputSpecificationinput()Contains information about the user messages in the turn in the input.TestResultMatchStatusintentMatchResult()Specifies whether the expected and actual intents match or not.StringintentMatchResultAsString()Specifies whether the expected and actual intents match or not.List<SdkField<?>>sdkFields()static Class<? extends UserTurnResult.Builder>serializableBuilderClass()TestResultMatchStatusslotMatchResult()Specifies whether the expected and actual slots match or not.StringslotMatchResultAsString()Specifies whether the expected and actual slots match or not.TestResultMatchStatusspeechTranscriptionResult()Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.StringspeechTranscriptionResultAsString()Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.UserTurnResult.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
input
public final UserTurnInputSpecification 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
public final UserTurnOutputSpecification expectedOutput()
Contains information about the expected output for the user turn.
- Returns:
- Contains information about the expected output for the user turn.
-
actualOutput
public final UserTurnOutputSpecification actualOutput()
Contains information about the actual output for the user turn.
- Returns:
- Contains information about the actual output for the user turn.
-
errorDetails
public final ExecutionErrorDetails errorDetails()
Returns the value of the ErrorDetails property for this object.- Returns:
- The value of the ErrorDetails property for this object.
-
endToEndResult
public final TestResultMatchStatus 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,
endToEndResultwill 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:
TestResultMatchStatus
-
endToEndResultAsString
public final String 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,
endToEndResultwill 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:
TestResultMatchStatus
-
intentMatchResult
public final TestResultMatchStatus 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,
intentMatchResultwill 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:
TestResultMatchStatus
-
intentMatchResultAsString
public final String 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,
intentMatchResultwill 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:
TestResultMatchStatus
-
slotMatchResult
public final TestResultMatchStatus 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,
slotMatchResultwill 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:
TestResultMatchStatus
-
slotMatchResultAsString
public final String 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,
slotMatchResultwill 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:
TestResultMatchStatus
-
speechTranscriptionResult
public final TestResultMatchStatus 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,
speechTranscriptionResultwill 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:
TestResultMatchStatus
-
speechTranscriptionResultAsString
public final String 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,
speechTranscriptionResultwill 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:
TestResultMatchStatus
-
conversationLevelResult
public final ConversationLevelResultDetail 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
public UserTurnResult.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UserTurnResult.Builder,UserTurnResult>
-
builder
public static UserTurnResult.Builder builder()
-
serializableBuilderClass
public static Class<? extends UserTurnResult.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
-