Class ProjectScore.Builder
-
- All Implemented Interfaces:
public final class ProjectScore.BuilderA builder for ProjectScore.
-
-
Method Summary
Modifier and Type Method Description final ProjectScore.Builderid(String id)Unique identifier for the project score final ProjectScore.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final ProjectScore.Buildername(String name)Name of the project score final ProjectScore.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final ProjectScore.BuilderprojectId(String projectId)Unique identifier for the project that the project score belongs under final ProjectScore.BuilderprojectId(JsonField<String> projectId)Sets Builder.projectId to an arbitrary JSON value. final ProjectScore.BuilderscoreType(ProjectScoreType scoreType)The type of the configured score final ProjectScore.BuilderscoreType(JsonField<ProjectScoreType> scoreType)Sets Builder.scoreType to an arbitrary JSON value. final ProjectScore.BuilderuserId(String userId)final ProjectScore.BuilderuserId(JsonField<String> userId)Sets Builder.userId to an arbitrary JSON value. final ProjectScore.Buildercategories(ProjectScore.Categories categories)For categorical-type project scores, the list of all categories final ProjectScore.Buildercategories(Optional<ProjectScore.Categories> categories)Alias for calling Builder.categories with categories.orElse(null).final ProjectScore.Buildercategories(JsonField<ProjectScore.Categories> categories)Sets Builder.categories to an arbitrary JSON value. final ProjectScore.Buildercategories(ProjectScore.Categories.Weighted weighted)Alias for calling categories with Categories.ofWeighted(weighted).final ProjectScore.BuildercategoriesOfCategorical(List<ProjectScoreCategory> categorical)Alias for calling categories with Categories.ofCategorical(categorical).final ProjectScore.BuildercategoriesOfMinimum(List<String> minimum)Alias for calling categories with Categories.ofMinimum(minimum).final ProjectScore.Builderconfig(ProjectScoreConfig config)final ProjectScore.Builderconfig(Optional<ProjectScoreConfig> config)Alias for calling Builder.config with config.orElse(null).final ProjectScore.Builderconfig(JsonField<ProjectScoreConfig> config)Sets Builder.config to an arbitrary JSON value. final ProjectScore.Buildercreated(OffsetDateTime created)Date of project score creation final ProjectScore.Buildercreated(Optional<OffsetDateTime> created)Alias for calling Builder.created with created.orElse(null).final ProjectScore.Buildercreated(JsonField<OffsetDateTime> created)Sets Builder.created to an arbitrary JSON value. final ProjectScore.Builderdescription(String description)Textual description of the project score final ProjectScore.Builderdescription(Optional<String> description)Alias for calling Builder.description with description.orElse(null).final ProjectScore.Builderdescription(JsonField<String> description)Sets Builder.description to an arbitrary JSON value. final ProjectScore.Builderposition(String position)An optional LexoRank-based string that sets the sort position for the score in the UI final ProjectScore.Builderposition(Optional<String> position)Alias for calling Builder.position with position.orElse(null).final ProjectScore.Builderposition(JsonField<String> position)Sets Builder.position to an arbitrary JSON value. final ProjectScore.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ProjectScore.BuilderputAdditionalProperty(String key, JsonValue value)final ProjectScore.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ProjectScore.BuilderremoveAdditionalProperty(String key)final ProjectScore.BuilderremoveAllAdditionalProperties(Set<String> keys)final ProjectScorebuild()Returns an immutable instance of ProjectScore. -
-
Method Detail
-
id
final ProjectScore.Builder id(String id)
Unique identifier for the project score
-
id
final ProjectScore.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final ProjectScore.Builder name(String name)
Name of the project score
-
name
final ProjectScore.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
projectId
final ProjectScore.Builder projectId(String projectId)
Unique identifier for the project that the project score belongs under
-
projectId
final ProjectScore.Builder projectId(JsonField<String> projectId)
Sets Builder.projectId to an arbitrary JSON value.
You should usually call Builder.projectId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
scoreType
final ProjectScore.Builder scoreType(ProjectScoreType scoreType)
The type of the configured score
-
scoreType
final ProjectScore.Builder scoreType(JsonField<ProjectScoreType> scoreType)
Sets Builder.scoreType to an arbitrary JSON value.
You should usually call Builder.scoreType with a well-typed ProjectScoreType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userId
final ProjectScore.Builder userId(String userId)
-
userId
final ProjectScore.Builder userId(JsonField<String> userId)
Sets Builder.userId to an arbitrary JSON value.
You should usually call Builder.userId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
categories
final ProjectScore.Builder categories(ProjectScore.Categories categories)
For categorical-type project scores, the list of all categories
-
categories
final ProjectScore.Builder categories(Optional<ProjectScore.Categories> categories)
Alias for calling Builder.categories with
categories.orElse(null).
-
categories
final ProjectScore.Builder categories(JsonField<ProjectScore.Categories> categories)
Sets Builder.categories to an arbitrary JSON value.
You should usually call Builder.categories with a well-typed Categories value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
categories
final ProjectScore.Builder categories(ProjectScore.Categories.Weighted weighted)
Alias for calling categories with
Categories.ofWeighted(weighted).
-
categoriesOfCategorical
final ProjectScore.Builder categoriesOfCategorical(List<ProjectScoreCategory> categorical)
Alias for calling categories with
Categories.ofCategorical(categorical).
-
categoriesOfMinimum
final ProjectScore.Builder categoriesOfMinimum(List<String> minimum)
Alias for calling categories with
Categories.ofMinimum(minimum).
-
config
final ProjectScore.Builder config(ProjectScoreConfig config)
-
config
final ProjectScore.Builder config(Optional<ProjectScoreConfig> config)
Alias for calling Builder.config with
config.orElse(null).
-
config
final ProjectScore.Builder config(JsonField<ProjectScoreConfig> config)
Sets Builder.config to an arbitrary JSON value.
You should usually call Builder.config with a well-typed ProjectScoreConfig value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
created
final ProjectScore.Builder created(OffsetDateTime created)
Date of project score creation
-
created
final ProjectScore.Builder created(Optional<OffsetDateTime> created)
Alias for calling Builder.created with
created.orElse(null).
-
created
final ProjectScore.Builder created(JsonField<OffsetDateTime> created)
Sets Builder.created to an arbitrary JSON value.
You should usually call Builder.created with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final ProjectScore.Builder description(String description)
Textual description of the project score
-
description
final ProjectScore.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final ProjectScore.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
position
final ProjectScore.Builder position(String position)
An optional LexoRank-based string that sets the sort position for the score in the UI
-
position
final ProjectScore.Builder position(Optional<String> position)
Alias for calling Builder.position with
position.orElse(null).
-
position
final ProjectScore.Builder position(JsonField<String> position)
Sets Builder.position to an arbitrary JSON value.
You should usually call Builder.position with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ProjectScore.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ProjectScore.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ProjectScore.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ProjectScore.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ProjectScore.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ProjectScore build()
Returns an immutable instance of ProjectScore.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .name() .projectId() .scoreType() .userId()
-
-
-
-