Class ExperimentCaseResult
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ExperimentCaseResult.Builder,ExperimentCaseResult>
The result of running and scoring one dataset case in a run, as reported with PutExperimentRunResults.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ExperimentCaseResult.Builderbuilder()final StringcaseId()The ID of the dataset case.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final List<CaseEvaluatorResult> The evaluator results for the case, up to 20.final CaseExecutionStatusThe outcome of running the case against the target, before scoring.final StringThe outcome of running the case against the target, before scoring.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the Evaluators property.final inthashCode()final booleanhasTurns()For responses, this returns true if the service returned a value for the Turns property.static Class<? extends ExperimentCaseResult.Builder> final StringThe ID of the session in which the target ran the case.final CaseStatusReasonThe reason for the execution status.final StringThe reason for the execution status.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.turns()The turns of the case, up to 50, in the order they ran.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
caseId
The ID of the dataset case. Each case can appear at most once in a request.
- Returns:
- The ID of the dataset case. Each case can appear at most once in a request.
-
sessionId
The ID of the session in which the target ran the case.
- Returns:
- The ID of the session in which the target ran the case.
-
executionStatus
The outcome of running the case against the target, before scoring.
If the service returns an enum value that is not available in the current SDK version,
executionStatuswill returnCaseExecutionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromexecutionStatusAsString().- Returns:
- The outcome of running the case against the target, before scoring.
- See Also:
-
executionStatusAsString
The outcome of running the case against the target, before scoring.
If the service returns an enum value that is not available in the current SDK version,
executionStatuswill returnCaseExecutionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromexecutionStatusAsString().- Returns:
- The outcome of running the case against the target, before scoring.
- See Also:
-
statusReason
The reason for the execution status. Required when executionStatus is TARGET_ERROR or TIMED_OUT, optional for NOT_RUN, and absent for COMPLETED.
If the service returns an enum value that is not available in the current SDK version,
statusReasonwill returnCaseStatusReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusReasonAsString().- Returns:
- The reason for the execution status. Required when executionStatus is TARGET_ERROR or TIMED_OUT, optional for NOT_RUN, and absent for COMPLETED.
- See Also:
-
statusReasonAsString
The reason for the execution status. Required when executionStatus is TARGET_ERROR or TIMED_OUT, optional for NOT_RUN, and absent for COMPLETED.
If the service returns an enum value that is not available in the current SDK version,
statusReasonwill returnCaseStatusReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusReasonAsString().- Returns:
- The reason for the execution status. Required when executionStatus is TARGET_ERROR or TIMED_OUT, optional for NOT_RUN, and absent for COMPLETED.
- See Also:
-
hasTurns
public final boolean hasTurns()For responses, this returns true if the service returned a value for the Turns property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
turns
The turns of the case, up to 50, in the order they ran.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTurns()method.- Returns:
- The turns of the case, up to 50, in the order they ran.
-
hasEvaluators
public final boolean hasEvaluators()For responses, this returns true if the service returned a value for the Evaluators property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
evaluators
The evaluator results for the case, up to 20. Each entry refers to one of the run's evaluators.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasEvaluators()method.- Returns:
- The evaluator results for the case, up to 20. Each entry refers to one of the run's evaluators.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ExperimentCaseResult.Builder,ExperimentCaseResult> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-