Interface ControlSource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ControlSource.Builder,,ControlSource> SdkBuilder<ControlSource.Builder,,ControlSource> SdkPojo
- Enclosing class:
ControlSource
-
Method Summary
Modifier and TypeMethodDescriptiondefault ControlSource.BuilderlatestPassed(Consumer<LatestPassedFilter.Builder> latestPassed) Uses the newest earlier run of this experiment with verdict PASSED that matches this run: the same dataset at the same dataset version (a run with no version matches only a run with no version), and the same set of evaluator IDs, in any order.latestPassed(LatestPassedFilter latestPassed) Uses the newest earlier run of this experiment with verdict PASSED that matches this run: the same dataset at the same dataset version (a run with no version matches only a run with no version), and the same set of evaluator IDs, in any order.The ID of an earlier run of this experiment.default ControlSource.Buildertarget(Consumer<TargetConfig.Builder> target) A version of the experiment's target to run alongside the run as a live control.target(TargetConfig target) A version of the experiment's target to run alongside the run as a live control.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
-
target
A version of the experiment's target to run alongside the run as a live control. Hosted runs only. Must be the same kind as the experiment's target (TARGET_MISMATCH); not supported on reported runs (CONTROL_TARGET_UNSUPPORTED).
- Parameters:
target- A version of the experiment's target to run alongside the run as a live control. Hosted runs only. Must be the same kind as the experiment's target (TARGET_MISMATCH); not supported on reported runs (CONTROL_TARGET_UNSUPPORTED).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
A version of the experiment's target to run alongside the run as a live control. Hosted runs only. Must be the same kind as the experiment's target (TARGET_MISMATCH); not supported on reported runs (CONTROL_TARGET_UNSUPPORTED).
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:
-
runId
The ID of an earlier run of this experiment. The run must be COMPLETED, must not be a CONTROL run, and must match this run: the same dataset at the same dataset version (a run with no version matches only a run with no version), and the same set of evaluator IDs, in any order. Fails with CONTROL_RUN_INVALID otherwise, naming what differs: the dataset version expected and found, or the evaluators the control is missing or has in extra.
- Parameters:
runId- The ID of an earlier run of this experiment. The run must be COMPLETED, must not be a CONTROL run, and must match this run: the same dataset at the same dataset version (a run with no version matches only a run with no version), and the same set of evaluator IDs, in any order. Fails with CONTROL_RUN_INVALID otherwise, naming what differs: the dataset version expected and found, or the evaluators the control is missing or has in extra.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestPassed
Uses the newest earlier run of this experiment with verdict PASSED that matches this run: the same dataset at the same dataset version (a run with no version matches only a run with no version), and the same set of evaluator IDs, in any order. Resolved when the run starts, with the endpointArn filter when given. Fails with CONTROL_RUN_NOT_FOUND if there is none.
- Parameters:
latestPassed- Uses the newest earlier run of this experiment with verdict PASSED that matches this run: the same dataset at the same dataset version (a run with no version matches only a run with no version), and the same set of evaluator IDs, in any order. Resolved when the run starts, with the endpointArn filter when given. Fails with CONTROL_RUN_NOT_FOUND if there is none.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestPassed
Uses the newest earlier run of this experiment with verdict PASSED that matches this run: the same dataset at the same dataset version (a run with no version matches only a run with no version), and the same set of evaluator IDs, in any order. Resolved when the run starts, with the endpointArn filter when given. Fails with CONTROL_RUN_NOT_FOUND if there is none.
This is a convenience method that creates an instance of theLatestPassedFilter.Builderavoiding the need to create one manually viaLatestPassedFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolatestPassed(LatestPassedFilter).- Parameters:
latestPassed- a consumer that will call methods onLatestPassedFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-