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