Interface ReportedRunInfo.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ReportedRunInfo.Builder,,ReportedRunInfo> SdkBuilder<ReportedRunInfo.Builder,,ReportedRunInfo> SdkPojo
- Enclosing class:
ReportedRunInfo
-
Method Summary
Modifier and TypeMethodDescriptiondefault ReportedRunInfo.Buildercontrol(Consumer<ControlSource.Builder> control) An earlier run to compare this run with.control(ControlSource control) An earlier run to compare this run with.default ReportedRunInfo.Builderdataset(Consumer<ExperimentRunDataset.Builder> dataset) The dataset the run tested.dataset(ExperimentRunDataset dataset) The dataset the run tested.description(String description) A description of what the run is for, up to 1024 characters with no control characters.evaluators(Collection<ExperimentEvaluator> evaluators) The evaluators the run is scored with, from 1 to 20.evaluators(Consumer<ExperimentEvaluator.Builder>... evaluators) The evaluators the run is scored with, from 1 to 20.evaluators(ExperimentEvaluator... evaluators) The evaluators the run is scored with, from 1 to 20.Key-value facts about what the run tested, beyond the target and dataset versions.default ReportedRunInfo.Builderproducer(Consumer<ExperimentProducer.Builder> producer) The tool or system that runs the cases and reports their results.producer(ExperimentProducer producer) The tool or system that runs the cases and reports their results.default ReportedRunInfo.Builderrule(Consumer<ExperimentRule.Builder> rule) The rule to check the run against.rule(ExperimentRule rule) The rule to check the run against.The time when the producer started the run, if it began before the first PutExperimentRunResults call.default ReportedRunInfo.Buildertarget(Consumer<TargetConfig.Builder> target) The version of the experiment's target that the run tested.target(TargetConfig target) The version of the experiment's target that the run tested.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
-
producer
The tool or system that runs the cases and reports their results.
- Parameters:
producer- The tool or system that runs the cases and reports their results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
producer
The tool or system that runs the cases and reports their results.
This is a convenience method that creates an instance of theExperimentProducer.Builderavoiding the need to create one manually viaExperimentProducer.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toproducer(ExperimentProducer).- Parameters:
producer- a consumer that will call methods onExperimentProducer.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rule
The rule to check the run against. Optional; with a rule, the run gets a verdict when it completes.
- Parameters:
rule- The rule to check the run against. Optional; with a rule, the run gets a verdict when it completes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
The rule to check the run against. Optional; with a rule, the run gets a verdict when it completes.
This is a convenience method that creates an instance of theExperimentRule.Builderavoiding the need to create one manually viaExperimentRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torule(ExperimentRule).- Parameters:
rule- a consumer that will call methods onExperimentRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
control
An earlier run to compare this run with. Only runId or latestPassed is supported (CONTROL_TARGET_UNSUPPORTED for target). Required by rules that use vsControl bounds or paired metrics.
- Parameters:
control- An earlier run to compare this run with. Only runId or latestPassed is supported (CONTROL_TARGET_UNSUPPORTED for target). Required by rules that use vsControl bounds or paired metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
control
An earlier run to compare this run with. Only runId or latestPassed is supported (CONTROL_TARGET_UNSUPPORTED for target). Required by rules that use vsControl bounds or paired metrics.
This is a convenience method that creates an instance of theControlSource.Builderavoiding the need to create one manually viaControlSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontrol(ControlSource).- Parameters:
control- a consumer that will call methods onControlSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluators
The evaluators the run is scored with, from 1 to 20. Required on the creating call. The rule and every reported case can name only these evaluators. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).
- Parameters:
evaluators- The evaluators the run is scored with, from 1 to 20. Required on the creating call. The rule and every reported case can name only these evaluators. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluators
The evaluators the run is scored with, from 1 to 20. Required on the creating call. The rule and every reported case can name only these evaluators. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).
- Parameters:
evaluators- The evaluators the run is scored with, from 1 to 20. Required on the creating call. The rule and every reported case can name only these evaluators. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluators
The evaluators the run is scored with, from 1 to 20. Required on the creating call. The rule and every reported case can name only these evaluators. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).
This is a convenience method that creates an instance of theExperimentEvaluator.Builderavoiding the need to create one manually viaExperimentEvaluator.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluators(List<ExperimentEvaluator>).- Parameters:
evaluators- a consumer that will call methods onExperimentEvaluator.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
target
The version of the experiment's target that the run tested. Must be the same kind as the experiment's target.
- Parameters:
target- The version of the experiment's target that the run tested. Must be the same kind as the experiment's target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
The version of the experiment's target that the run tested. Must be the same kind as the experiment's target.
This is a convenience method that creates an instance of theTargetConfig.Builderavoiding the need to create one manually viaTargetConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totarget(TargetConfig).- Parameters:
target- a consumer that will call methods onTargetConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataset
The dataset the run tested. Required on the creating call, with its identity and caseCount. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).
- Parameters:
dataset- The dataset the run tested. Required on the creating call, with its identity and caseCount. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataset
The dataset the run tested. Required on the creating call, with its identity and caseCount. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).
This is a convenience method that creates an instance of theExperimentRunDataset.Builderavoiding the need to create one manually viaExperimentRunDataset.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todataset(ExperimentRunDataset).- Parameters:
dataset- a consumer that will call methods onExperimentRunDataset.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
Key-value facts about what the run tested, beyond the target and dataset versions.
- Parameters:
metadata- Key-value facts about what the run tested, beyond the target and dataset versions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of what the run is for, up to 1024 characters with no control characters. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).
- Parameters:
description- A description of what the run is for, up to 1024 characters with no control characters. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startedAt
The time when the producer started the run, if it began before the first PutExperimentRunResults call.
- Parameters:
startedAt- The time when the producer started the run, if it began before the first PutExperimentRunResults call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-