Class CategoricalScoreV1.Builder
java.lang.Object
com.ants.platform.client.resources.commons.types.CategoricalScoreV1.Builder
- All Implemented Interfaces:
CategoricalScoreV1._FinalStage, CategoricalScoreV1.CreatedAtStage, CategoricalScoreV1.IdStage, CategoricalScoreV1.NameStage, CategoricalScoreV1.SourceStage, CategoricalScoreV1.StringValueStage, CategoricalScoreV1.TimestampStage, CategoricalScoreV1.TraceIdStage, CategoricalScoreV1.UpdatedAtStage
- Enclosing class:
CategoricalScoreV1
public static final class CategoricalScoreV1.Builder
extends Object
implements CategoricalScoreV1.IdStage, CategoricalScoreV1.TraceIdStage, CategoricalScoreV1.NameStage, CategoricalScoreV1.SourceStage, CategoricalScoreV1.TimestampStage, CategoricalScoreV1.CreatedAtStage, CategoricalScoreV1.UpdatedAtStage, CategoricalScoreV1.StringValueStage, CategoricalScoreV1._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(CategoricalScoreV1 other) observationId(String observationId) observationId(Optional<String> observationId) Reference an annotation queue on a score.source(ScoreSource source) stringValue(String stringValue) The string representation of the score value.timestamp(OffsetDateTime timestamp) updatedAt(OffsetDateTime updatedAt) Only defined if a config is linked.
-
Method Details
-
from
- Specified by:
fromin interfaceCategoricalScoreV1.IdStage
-
id
- Specified by:
idin interfaceCategoricalScoreV1.IdStage
-
traceId
- Specified by:
traceIdin interfaceCategoricalScoreV1.TraceIdStage
-
name
- Specified by:
namein interfaceCategoricalScoreV1.NameStage
-
source
- Specified by:
sourcein interfaceCategoricalScoreV1.SourceStage
-
timestamp
- Specified by:
timestampin interfaceCategoricalScoreV1.TimestampStage
-
createdAt
- Specified by:
createdAtin interfaceCategoricalScoreV1.CreatedAtStage
-
updatedAt
- Specified by:
updatedAtin interfaceCategoricalScoreV1.UpdatedAtStage
-
stringValue
The string representation of the score value. If no config is linked, can be any string. Otherwise, must map to a config category
- Specified by:
stringValuein interfaceCategoricalScoreV1.StringValueStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
value
Only defined if a config is linked. Represents the numeric category mapping of the stringValue
- Specified by:
valuein interfaceCategoricalScoreV1._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
value
- Specified by:
valuein interfaceCategoricalScoreV1._FinalStage
-
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 interfaceCategoricalScoreV1._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
environment
- Specified by:
environmentin interfaceCategoricalScoreV1._FinalStage
-
queueId
Reference an annotation queue on a score. Populated if the score was initially created in an annotation queue.
- Specified by:
queueIdin interfaceCategoricalScoreV1._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
queueId
- Specified by:
queueIdin interfaceCategoricalScoreV1._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 interfaceCategoricalScoreV1._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
configId
- Specified by:
configIdin interfaceCategoricalScoreV1._FinalStage
-
metadata
- Specified by:
metadatain interfaceCategoricalScoreV1._FinalStage
-
metadata
- Specified by:
metadatain interfaceCategoricalScoreV1._FinalStage
-
comment
- Specified by:
commentin interfaceCategoricalScoreV1._FinalStage
-
comment
- Specified by:
commentin interfaceCategoricalScoreV1._FinalStage
-
authorUserId
- Specified by:
authorUserIdin interfaceCategoricalScoreV1._FinalStage
-
authorUserId
- Specified by:
authorUserIdin interfaceCategoricalScoreV1._FinalStage
-
observationId
- Specified by:
observationIdin interfaceCategoricalScoreV1._FinalStage
-
observationId
- Specified by:
observationIdin interfaceCategoricalScoreV1._FinalStage
-
build
- Specified by:
buildin interfaceCategoricalScoreV1._FinalStage
-