Interface ExperimentCaseResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ExperimentCaseResult.Builder,,ExperimentCaseResult> SdkBuilder<ExperimentCaseResult.Builder,,ExperimentCaseResult> SdkPojo
- Enclosing class:
ExperimentCaseResult
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the dataset case.evaluators(Collection<CaseEvaluatorResult> evaluators) The evaluator results for the case, up to 20.evaluators(Consumer<CaseEvaluatorResult.Builder>... evaluators) The evaluator results for the case, up to 20.evaluators(CaseEvaluatorResult... evaluators) The evaluator results for the case, up to 20.executionStatus(String executionStatus) The outcome of running the case against the target, before scoring.executionStatus(CaseExecutionStatus executionStatus) The outcome of running the case against the target, before scoring.The ID of the session in which the target ran the case.statusReason(String statusReason) The reason for the execution status.statusReason(CaseStatusReason statusReason) The reason for the execution status.turns(Collection<CaseTurn> turns) The turns of the case, up to 50, in the order they ran.turns(Consumer<CaseTurn.Builder>... turns) The turns of the case, up to 50, in the order they ran.The turns of the case, up to 50, in the order they ran.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
caseId
The ID of the dataset case. Each case can appear at most once in a request.
- Parameters:
caseId- The ID of the dataset case. Each case can appear at most once in a request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The ID of the session in which the target ran the case.
- Parameters:
sessionId- The ID of the session in which the target ran the case.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionStatus
The outcome of running the case against the target, before scoring.
- Parameters:
executionStatus- The outcome of running the case against the target, before scoring.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
executionStatus
The outcome of running the case against the target, before scoring.
- Parameters:
executionStatus- The outcome of running the case against the target, before scoring.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- 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.
- Parameters:
statusReason- The reason for the execution status. Required when executionStatus is TARGET_ERROR or TIMED_OUT, optional for NOT_RUN, and absent for COMPLETED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- 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.
- Parameters:
statusReason- The reason for the execution status. Required when executionStatus is TARGET_ERROR or TIMED_OUT, optional for NOT_RUN, and absent for COMPLETED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
turns
The turns of the case, up to 50, in the order they ran.
- Parameters:
turns- The turns of the case, up to 50, in the order they ran.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
turns
The turns of the case, up to 50, in the order they ran.
- Parameters:
turns- The turns of the case, up to 50, in the order they ran.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
turns
The turns of the case, up to 50, in the order they ran.
This is a convenience method that creates an instance of theCaseTurn.Builderavoiding the need to create one manually viaCaseTurn.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toturns(List<CaseTurn>).- Parameters:
turns- a consumer that will call methods onCaseTurn.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluators
The evaluator results for the case, up to 20. Each entry refers to one of the run's evaluators.
- Parameters:
evaluators- The evaluator results for the case, up to 20. Each entry refers to one of the run's evaluators.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluators
The evaluator results for the case, up to 20. Each entry refers to one of the run's evaluators.
- Parameters:
evaluators- The evaluator results for the case, up to 20. Each entry refers to one of the run's evaluators.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluators
The evaluator results for the case, up to 20. Each entry refers to one of the run's evaluators.
This is a convenience method that creates an instance of theCaseEvaluatorResult.Builderavoiding the need to create one manually viaCaseEvaluatorResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluators(List<CaseEvaluatorResult>).- Parameters:
evaluators- a consumer that will call methods onCaseEvaluatorResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-