Class GateBound
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<GateBound.Builder,GateBound>
The bound a gate's metric must meet. Specify exactly one.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic GateBound.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static GateBoundCreate an instance of this class withmax()initialized to the given value.static GateBoundCreate an instance of this class withmin()initialized to the given value.static GateBoundfromVsControl(Consumer<ControlBound.Builder> vsControl) Create an instance of this class withvsControl()initialized to the given value.static GateBoundfromVsControl(ControlBound vsControl) Create an instance of this class withvsControl()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Doublemax()The maximum value of the metric.final Doublemin()The minimum value of the metric.static Class<? extends GateBound.Builder> 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.type()Retrieve an enum value representing which member of this object is populated.final ControlBoundA bound relative to the control's value of the same metric, both over the cases both runs have: passRate and notScoredRate judged by the rule's criteria on the evaluators both runs have, evaluatorAverage over the cases both runs scored on it.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
min
The minimum value of the metric. A finite number from 0 to 1 for a rate, or from -1e9 to 1e9 for an evaluator average.
- Returns:
- The minimum value of the metric. A finite number from 0 to 1 for a rate, or from -1e9 to 1e9 for an evaluator average.
-
max
The maximum value of the metric. A finite number from 0 to 1.
- Returns:
- The maximum value of the metric. A finite number from 0 to 1.
-
vsControl
A bound relative to the control's value of the same metric, both over the cases both runs have: passRate and notScoredRate judged by the rule's criteria on the evaluators both runs have, evaluatorAverage over the cases both runs scored on it. A check with nothing to compare (an evaluator the control doesn't have, or no such cases) is skipped and left out of the checks. Not valid on regressedCases, fixedCases, regressedScores or unpairedCaseRate, which already compare with the control (RULE_BOUND_INVALID). Requires a control (RULE_CONTROL_REQUIRED).
- Returns:
- A bound relative to the control's value of the same metric, both over the cases both runs have: passRate and notScoredRate judged by the rule's criteria on the evaluators both runs have, evaluatorAverage over the cases both runs scored on it. A check with nothing to compare (an evaluator the control doesn't have, or no such cases) is skipped and left out of the checks. Not valid on regressedCases, fixedCases, regressedScores or unpairedCaseRate, which already compare with the control (RULE_BOUND_INVALID). Requires a control (RULE_CONTROL_REQUIRED).
-
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<GateBound.Builder,GateBound> - 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
-
fromMin
Create an instance of this class withmin()initialized to the given value.The minimum value of the metric. A finite number from 0 to 1 for a rate, or from -1e9 to 1e9 for an evaluator average.
- Parameters:
min- The minimum value of the metric. A finite number from 0 to 1 for a rate, or from -1e9 to 1e9 for an evaluator average.
-
fromMax
-
fromVsControl
Create an instance of this class withvsControl()initialized to the given value.A bound relative to the control's value of the same metric, both over the cases both runs have: passRate and notScoredRate judged by the rule's criteria on the evaluators both runs have, evaluatorAverage over the cases both runs scored on it. A check with nothing to compare (an evaluator the control doesn't have, or no such cases) is skipped and left out of the checks. Not valid on regressedCases, fixedCases, regressedScores or unpairedCaseRate, which already compare with the control (RULE_BOUND_INVALID). Requires a control (RULE_CONTROL_REQUIRED).
- Parameters:
vsControl- A bound relative to the control's value of the same metric, both over the cases both runs have: passRate and notScoredRate judged by the rule's criteria on the evaluators both runs have, evaluatorAverage over the cases both runs scored on it. A check with nothing to compare (an evaluator the control doesn't have, or no such cases) is skipped and left out of the checks. Not valid on regressedCases, fixedCases, regressedScores or unpairedCaseRate, which already compare with the control (RULE_BOUND_INVALID). Requires a control (RULE_CONTROL_REQUIRED).
-
fromVsControl
Create an instance of this class withvsControl()initialized to the given value.A bound relative to the control's value of the same metric, both over the cases both runs have: passRate and notScoredRate judged by the rule's criteria on the evaluators both runs have, evaluatorAverage over the cases both runs scored on it. A check with nothing to compare (an evaluator the control doesn't have, or no such cases) is skipped and left out of the checks. Not valid on regressedCases, fixedCases, regressedScores or unpairedCaseRate, which already compare with the control (RULE_BOUND_INVALID). Requires a control (RULE_CONTROL_REQUIRED).
- Parameters:
vsControl- A bound relative to the control's value of the same metric, both over the cases both runs have: passRate and notScoredRate judged by the rule's criteria on the evaluators both runs have, evaluatorAverage over the cases both runs scored on it. A check with nothing to compare (an evaluator the control doesn't have, or no such cases) is skipped and left out of the checks. Not valid on regressedCases, fixedCases, regressedScores or unpairedCaseRate, which already compare with the control (RULE_BOUND_INVALID). Requires a control (RULE_CONTROL_REQUIRED).
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beGateBound.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beGateBound.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-