Class CreateScoreRequest.Builder
java.lang.Object
com.ants.platform.client.resources.score.types.CreateScoreRequest.Builder
- All Implemented Interfaces:
CreateScoreRequest._FinalStage, CreateScoreRequest.NameStage, CreateScoreRequest.ValueStage
- Enclosing class:
CreateScoreRequest
public static final class CreateScoreRequest.Builder
extends Object
implements CreateScoreRequest.NameStage, CreateScoreRequest.ValueStage, CreateScoreRequest._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Reference a score config on a score.datasetRunId(String datasetRunId) datasetRunId(Optional<String> datasetRunId) dataType(ScoreDataType dataType) The data type of the score.dataType(Optional<ScoreDataType> dataType) environment(String environment) The environment of the score.environment(Optional<String> environment) from(CreateScoreRequest other) observationId(String observationId) observationId(Optional<String> observationId) value(CreateScoreValue value) The value of the score.
-
Method Details
-
from
- Specified by:
fromin interfaceCreateScoreRequest.NameStage
-
name
- Specified by:
namein interfaceCreateScoreRequest.NameStage
-
value
The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores. Boolean score values must equal either 1 or 0 (true or false)
- Specified by:
valuein interfaceCreateScoreRequest.ValueStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
configId
Reference a score config on a score. The unique ANTS Platform identifier of a score config. When passing this field, the dataType and stringValue fields are automatically populated.
- Specified by:
configIdin interfaceCreateScoreRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
configId
- Specified by:
configIdin interfaceCreateScoreRequest._FinalStage
-
dataType
The data type of the score. When passing a configId this field is inferred. Otherwise, this field must be passed or will default to numeric.
- Specified by:
dataTypein interfaceCreateScoreRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
dataType
- Specified by:
dataTypein interfaceCreateScoreRequest._FinalStage
-
environment
The environment of the score. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'ants-platform'.
- Specified by:
environmentin interfaceCreateScoreRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
environment
- Specified by:
environmentin interfaceCreateScoreRequest._FinalStage
-
metadata
- Specified by:
metadatain interfaceCreateScoreRequest._FinalStage
-
metadata
- Specified by:
metadatain interfaceCreateScoreRequest._FinalStage
-
comment
- Specified by:
commentin interfaceCreateScoreRequest._FinalStage
-
comment
- Specified by:
commentin interfaceCreateScoreRequest._FinalStage
-
datasetRunId
- Specified by:
datasetRunIdin interfaceCreateScoreRequest._FinalStage
-
datasetRunId
- Specified by:
datasetRunIdin interfaceCreateScoreRequest._FinalStage
-
observationId
- Specified by:
observationIdin interfaceCreateScoreRequest._FinalStage
-
observationId
- Specified by:
observationIdin interfaceCreateScoreRequest._FinalStage
-
sessionId
- Specified by:
sessionIdin interfaceCreateScoreRequest._FinalStage
-
sessionId
- Specified by:
sessionIdin interfaceCreateScoreRequest._FinalStage
-
traceId
- Specified by:
traceIdin interfaceCreateScoreRequest._FinalStage
-
traceId
- Specified by:
traceIdin interfaceCreateScoreRequest._FinalStage
-
id
- Specified by:
idin interfaceCreateScoreRequest._FinalStage
-
id
- Specified by:
idin interfaceCreateScoreRequest._FinalStage
-
build
- Specified by:
buildin interfaceCreateScoreRequest._FinalStage
-