Class BooleanScore.Builder
java.lang.Object
com.ants.platform.client.resources.commons.types.BooleanScore.Builder
- All Implemented Interfaces:
BooleanScore._FinalStage,BooleanScore.CreatedAtStage,BooleanScore.IdStage,BooleanScore.NameStage,BooleanScore.SourceStage,BooleanScore.StringValueStage,BooleanScore.TimestampStage,BooleanScore.UpdatedAtStage,BooleanScore.ValueStage
- Enclosing class:
- BooleanScore
public static final class BooleanScore.Builder
extends Object
implements BooleanScore.ValueStage, BooleanScore.StringValueStage, BooleanScore.IdStage, BooleanScore.NameStage, BooleanScore.SourceStage, BooleanScore.TimestampStage, BooleanScore.CreatedAtStage, BooleanScore.UpdatedAtStage, BooleanScore._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(BooleanScore 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) value(double value) The numeric value of the score.
-
Method Details
-
from
- Specified by:
fromin interfaceBooleanScore.ValueStage
-
value
The numeric value of the score. Equals 1 for "True" and 0 for "False"
- Specified by:
valuein interfaceBooleanScore.ValueStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
stringValue
The string representation of the score value. Is inferred from the numeric value and equals "True" or "False"
- Specified by:
stringValuein interfaceBooleanScore.StringValueStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
- Specified by:
idin interfaceBooleanScore.IdStage
-
name
- Specified by:
namein interfaceBooleanScore.NameStage
-
source
- Specified by:
sourcein interfaceBooleanScore.SourceStage
-
timestamp
- Specified by:
timestampin interfaceBooleanScore.TimestampStage
-
createdAt
- Specified by:
createdAtin interfaceBooleanScore.CreatedAtStage
-
updatedAt
- Specified by:
updatedAtin interfaceBooleanScore.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 interfaceBooleanScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
environment
- Specified by:
environmentin interfaceBooleanScore._FinalStage
-
queueId
Reference an annotation queue on a score. Populated if the score was initially created in an annotation queue.
- Specified by:
queueIdin interfaceBooleanScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
queueId
- Specified by:
queueIdin interfaceBooleanScore._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 interfaceBooleanScore._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
configId
- Specified by:
configIdin interfaceBooleanScore._FinalStage
-
metadata
- Specified by:
metadatain interfaceBooleanScore._FinalStage
-
metadata
- Specified by:
metadatain interfaceBooleanScore._FinalStage
-
comment
- Specified by:
commentin interfaceBooleanScore._FinalStage
-
comment
- Specified by:
commentin interfaceBooleanScore._FinalStage
-
authorUserId
- Specified by:
authorUserIdin interfaceBooleanScore._FinalStage
-
authorUserId
- Specified by:
authorUserIdin interfaceBooleanScore._FinalStage
-
datasetRunId
- Specified by:
datasetRunIdin interfaceBooleanScore._FinalStage
-
datasetRunId
- Specified by:
datasetRunIdin interfaceBooleanScore._FinalStage
-
observationId
- Specified by:
observationIdin interfaceBooleanScore._FinalStage
-
observationId
- Specified by:
observationIdin interfaceBooleanScore._FinalStage
-
sessionId
- Specified by:
sessionIdin interfaceBooleanScore._FinalStage
-
sessionId
- Specified by:
sessionIdin interfaceBooleanScore._FinalStage
-
traceId
- Specified by:
traceIdin interfaceBooleanScore._FinalStage
-
traceId
- Specified by:
traceIdin interfaceBooleanScore._FinalStage
-
build
- Specified by:
buildin interfaceBooleanScore._FinalStage
-