Class NumericScore.Builder
java.lang.Object
com.ants.platform.client.resources.commons.types.NumericScore.Builder
- All Implemented Interfaces:
NumericScore._FinalStage,NumericScore.CreatedAtStage,NumericScore.IdStage,NumericScore.NameStage,NumericScore.SourceStage,NumericScore.TimestampStage,NumericScore.UpdatedAtStage,NumericScore.ValueStage
- Enclosing class:
NumericScore
public static final class NumericScore.Builder
extends Object
implements NumericScore.ValueStage, NumericScore.IdStage, NumericScore.NameStage, NumericScore.SourceStage, NumericScore.TimestampStage, NumericScore.CreatedAtStage, NumericScore.UpdatedAtStage, NumericScore._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionauthorUserId(String authorUserId) authorUserId(Optional<String> authorUserId) build()Reference a score config on a score.createdAt(OffsetDateTime createdAt) datasetRunId(String datasetRunId) datasetRunId(Optional<String> datasetRunId) environment(String environment) The environment from which this score originated.environment(Optional<String> environment) from(NumericScore 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 interfaceNumericScore.ValueStage
-
value
The numeric value of the score
- Specified by:
valuein interfaceNumericScore.ValueStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
- Specified by:
idin interfaceNumericScore.IdStage
-
name
- Specified by:
namein interfaceNumericScore.NameStage
-
source
- Specified by:
sourcein interfaceNumericScore.SourceStage
-
timestamp
- Specified by:
timestampin interfaceNumericScore.TimestampStage
-
createdAt
- Specified by:
createdAtin interfaceNumericScore.CreatedAtStage
-
updatedAt
- Specified by:
updatedAtin interfaceNumericScore.UpdatedAtStage
-
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 interfaceNumericScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
environment
- Specified by:
environmentin interfaceNumericScore._FinalStage
-
queueId
Reference an annotation queue on a score. Populated if the score was initially created in an annotation queue.
- Specified by:
queueIdin interfaceNumericScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
queueId
- Specified by:
queueIdin interfaceNumericScore._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 interfaceNumericScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
configId
- Specified by:
configIdin interfaceNumericScore._FinalStage
-
metadata
- Specified by:
metadatain interfaceNumericScore._FinalStage
-
metadata
- Specified by:
metadatain interfaceNumericScore._FinalStage
-
comment
- Specified by:
commentin interfaceNumericScore._FinalStage
-
comment
- Specified by:
commentin interfaceNumericScore._FinalStage
-
authorUserId
- Specified by:
authorUserIdin interfaceNumericScore._FinalStage
-
authorUserId
- Specified by:
authorUserIdin interfaceNumericScore._FinalStage
-
datasetRunId
- Specified by:
datasetRunIdin interfaceNumericScore._FinalStage
-
datasetRunId
- Specified by:
datasetRunIdin interfaceNumericScore._FinalStage
-
observationId
- Specified by:
observationIdin interfaceNumericScore._FinalStage
-
observationId
- Specified by:
observationIdin interfaceNumericScore._FinalStage
-
sessionId
- Specified by:
sessionIdin interfaceNumericScore._FinalStage
-
sessionId
- Specified by:
sessionIdin interfaceNumericScore._FinalStage
-
traceId
- Specified by:
traceIdin interfaceNumericScore._FinalStage
-
traceId
- Specified by:
traceIdin interfaceNumericScore._FinalStage
-
build
- Specified by:
buildin interfaceNumericScore._FinalStage
-