Interface RunGate.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RunGate.Builder,,RunGate> SdkBuilder<RunGate.Builder,,RunGate> SdkPojo
- Enclosing class:
RunGate
-
Method Summary
Modifier and TypeMethodDescriptiondefault RunGate.Builderbound(Consumer<GateBound.Builder> bound) The bound the metric must meet for the gate to hold.The bound the metric must meet for the gate to hold.default RunGate.Buildermetric(Consumer<RunMetric.Builder> metric) The metric the gate measures over the run's cases.The metric the gate measures over the run's cases.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
-
metric
The metric the gate measures over the run's cases.
- Parameters:
metric- The metric the gate measures over the run's cases.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metric
The metric the gate measures over the run's cases.
This is a convenience method that creates an instance of theRunMetric.Builderavoiding the need to create one manually viaRunMetric.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometric(RunMetric).- Parameters:
metric- a consumer that will call methods onRunMetric.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bound
The bound the metric must meet for the gate to hold. Required for every metric except regressedScores, which takes no bound (RULE_BOUND_INVALID if it has one, FIELD_REQUIRED if another metric has none).
- Parameters:
bound- The bound the metric must meet for the gate to hold. Required for every metric except regressedScores, which takes no bound (RULE_BOUND_INVALID if it has one, FIELD_REQUIRED if another metric has none).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bound
The bound the metric must meet for the gate to hold. Required for every metric except regressedScores, which takes no bound (RULE_BOUND_INVALID if it has one, FIELD_REQUIRED if another metric has none).
This is a convenience method that creates an instance of theGateBound.Builderavoiding the need to create one manually viaGateBound.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobound(GateBound).- Parameters:
bound- a consumer that will call methods onGateBound.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-