Class NumericScoreV1.Builder
java.lang.Object
com.ants.platform.client.resources.commons.types.NumericScoreV1.Builder
- All Implemented Interfaces:
NumericScoreV1._FinalStage,NumericScoreV1.CreatedAtStage,NumericScoreV1.IdStage,NumericScoreV1.NameStage,NumericScoreV1.SourceStage,NumericScoreV1.TimestampStage,NumericScoreV1.TraceIdStage,NumericScoreV1.UpdatedAtStage,NumericScoreV1.ValueStage
- Enclosing class:
NumericScoreV1
public static final class NumericScoreV1.Builder
extends Object
implements NumericScoreV1.IdStage, NumericScoreV1.TraceIdStage, NumericScoreV1.NameStage, NumericScoreV1.SourceStage, NumericScoreV1.TimestampStage, NumericScoreV1.CreatedAtStage, NumericScoreV1.UpdatedAtStage, NumericScoreV1.ValueStage, NumericScoreV1._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionauthorUserId(String authorUserId) authorUserId(Optional<String> authorUserId) build()Reference a score config on a score.createdAt(OffsetDateTime createdAt) environment(String environment) The environment from which this score originated.environment(Optional<String> environment) from(NumericScoreV1 other) observationId(String observationId) observationId(Optional<String> observationId) Reference an annotation queue on a score.source(ScoreSource source) timestamp(OffsetDateTime timestamp) updatedAt(OffsetDateTime updatedAt) value(double value) The numeric value of the score
-
Method Details
-
from
- Specified by:
fromin interfaceNumericScoreV1.IdStage
-
id
- Specified by:
idin interfaceNumericScoreV1.IdStage
-
traceId
- Specified by:
traceIdin interfaceNumericScoreV1.TraceIdStage
-
name
- Specified by:
namein interfaceNumericScoreV1.NameStage
-
source
- Specified by:
sourcein interfaceNumericScoreV1.SourceStage
-
timestamp
- Specified by:
timestampin interfaceNumericScoreV1.TimestampStage
-
createdAt
- Specified by:
createdAtin interfaceNumericScoreV1.CreatedAtStage
-
updatedAt
- Specified by:
updatedAtin interfaceNumericScoreV1.UpdatedAtStage
-
value
The numeric value of the score
- Specified by:
valuein interfaceNumericScoreV1.ValueStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
environment
The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'ants-platform'.
- Specified by:
environmentin interfaceNumericScoreV1._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
environment
- Specified by:
environmentin interfaceNumericScoreV1._FinalStage
-
queueId
Reference an annotation queue on a score. Populated if the score was initially created in an annotation queue.
- Specified by:
queueIdin interfaceNumericScoreV1._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
queueId
- Specified by:
queueIdin interfaceNumericScoreV1._FinalStage
-
configId
Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range
- Specified by:
configIdin interfaceNumericScoreV1._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
configId
- Specified by:
configIdin interfaceNumericScoreV1._FinalStage
-
metadata
- Specified by:
metadatain interfaceNumericScoreV1._FinalStage
-
metadata
- Specified by:
metadatain interfaceNumericScoreV1._FinalStage
-
comment
- Specified by:
commentin interfaceNumericScoreV1._FinalStage
-
comment
- Specified by:
commentin interfaceNumericScoreV1._FinalStage
-
authorUserId
- Specified by:
authorUserIdin interfaceNumericScoreV1._FinalStage
-
authorUserId
- Specified by:
authorUserIdin interfaceNumericScoreV1._FinalStage
-
observationId
- Specified by:
observationIdin interfaceNumericScoreV1._FinalStage
-
observationId
- Specified by:
observationIdin interfaceNumericScoreV1._FinalStage
-
build
- Specified by:
buildin interfaceNumericScoreV1._FinalStage
-