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