Class ScoreConfig.Builder
java.lang.Object
com.ants.platform.client.resources.commons.types.ScoreConfig.Builder
- All Implemented Interfaces:
ScoreConfig._FinalStage, ScoreConfig.CreatedAtStage, ScoreConfig.DataTypeStage, ScoreConfig.IdStage, ScoreConfig.IsArchivedStage, ScoreConfig.NameStage, ScoreConfig.ProjectIdStage, ScoreConfig.UpdatedAtStage
- Enclosing class:
ScoreConfig
public static final class ScoreConfig.Builder
extends Object
implements ScoreConfig.IdStage, ScoreConfig.NameStage, ScoreConfig.CreatedAtStage, ScoreConfig.UpdatedAtStage, ScoreConfig.ProjectIdStage, ScoreConfig.DataTypeStage, ScoreConfig.IsArchivedStage, ScoreConfig._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionbuild()categories(List<ConfigCategory> categories) Configures custom categories for categorical scorescategories(Optional<List<ConfigCategory>> categories) createdAt(OffsetDateTime createdAt) dataType(ScoreDataType dataType) description(String description) description(Optional<String> description) from(ScoreConfig other) isArchived(boolean isArchived) Whether the score config is archived.Sets maximum value for numerical scores.Sets minimum value for numerical scores.updatedAt(OffsetDateTime updatedAt)
-
Method Details
-
from
- Specified by:
fromin interfaceScoreConfig.IdStage
-
id
- Specified by:
idin interfaceScoreConfig.IdStage
-
name
- Specified by:
namein interfaceScoreConfig.NameStage
-
createdAt
- Specified by:
createdAtin interfaceScoreConfig.CreatedAtStage
-
updatedAt
- Specified by:
updatedAtin interfaceScoreConfig.UpdatedAtStage
-
projectId
- Specified by:
projectIdin interfaceScoreConfig.ProjectIdStage
-
dataType
- Specified by:
dataTypein interfaceScoreConfig.DataTypeStage
-
isArchived
Whether the score config is archived. Defaults to false
- Specified by:
isArchivedin interfaceScoreConfig.IsArchivedStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
- Specified by:
descriptionin interfaceScoreConfig._FinalStage
-
description
- Specified by:
descriptionin interfaceScoreConfig._FinalStage
-
categories
Configures custom categories for categorical scores
- Specified by:
categoriesin interfaceScoreConfig._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
categories
- Specified by:
categoriesin interfaceScoreConfig._FinalStage
-
maxValue
Sets maximum value for numerical scores. If not set, the maximum value defaults to +∞
- Specified by:
maxValuein interfaceScoreConfig._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
maxValue
- Specified by:
maxValuein interfaceScoreConfig._FinalStage
-
minValue
Sets minimum value for numerical scores. If not set, the minimum value defaults to -∞
- Specified by:
minValuein interfaceScoreConfig._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
minValue
- Specified by:
minValuein interfaceScoreConfig._FinalStage
-
build
- Specified by:
buildin interfaceScoreConfig._FinalStage
-