Class CaseEvaluatorResult
java.lang.Object
software.amazon.awssdk.services.cloudwatchomni.model.CaseEvaluatorResult
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CaseEvaluatorResult.Builder,CaseEvaluatorResult>
@Generated("software.amazon.awssdk:codegen")
public final class CaseEvaluatorResult
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<CaseEvaluatorResult.Builder,CaseEvaluatorResult>
One evaluator's result for a case: a score or label, or an error.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CaseEvaluatorResult.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final ScoringErrorerror()The error, when the evaluator produced no result for the case.final StringThe ID of the evaluator that produced this result.final StringThe evaluator's explanation of the result.final BooleanWhether explanation was truncated.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringlabel()The categorical label the evaluator assigned to the case.final Doublescore()The numeric score, a finite number from -1e9 to 1e9.static Class<? extends CaseEvaluatorResult.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.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
evaluatorId
The ID of the evaluator that produced this result. Must be one of the run's evaluators.
- Returns:
- The ID of the evaluator that produced this result. Must be one of the run's evaluators.
-
score
The numeric score, a finite number from -1e9 to 1e9. The service keeps up to 12 decimal places.
- Returns:
- The numeric score, a finite number from -1e9 to 1e9. The service keeps up to 12 decimal places.
-
label
The categorical label the evaluator assigned to the case.
- Returns:
- The categorical label the evaluator assigned to the case.
-
explanation
The evaluator's explanation of the result. Truncated above 4 KB, in which case explanationTruncated is true.
- Returns:
- The evaluator's explanation of the result. Truncated above 4 KB, in which case explanationTruncated is true.
-
explanationTruncated
Whether explanation was truncated.
- Returns:
- Whether explanation was truncated.
-
error
The error, when the evaluator produced no result for the case. Cannot be set together with score or label.
- Returns:
- The error, when the evaluator produced no result for the case. Cannot be set together with score or label.
-
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<CaseEvaluatorResult.Builder,CaseEvaluatorResult> - 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
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-