Package com.braintrustdata.api.models
Class ProjectScoreCategory.Builder
-
- All Implemented Interfaces:
public final class ProjectScoreCategory.BuilderA builder for ProjectScoreCategory.
-
-
Method Summary
Modifier and Type Method Description final ProjectScoreCategory.Buildername(String name)Name of the category final ProjectScoreCategory.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final ProjectScoreCategory.Buildervalue(Double value)Numerical value of the category. final ProjectScoreCategory.Buildervalue(JsonField<Double> value)Sets Builder.value to an arbitrary JSON value. final ProjectScoreCategory.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ProjectScoreCategory.BuilderputAdditionalProperty(String key, JsonValue value)final ProjectScoreCategory.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ProjectScoreCategory.BuilderremoveAdditionalProperty(String key)final ProjectScoreCategory.BuilderremoveAllAdditionalProperties(Set<String> keys)final ProjectScoreCategorybuild()Returns an immutable instance of ProjectScoreCategory. -
-
Method Detail
-
name
final ProjectScoreCategory.Builder name(String name)
Name of the category
-
name
final ProjectScoreCategory.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.
-
value
final ProjectScoreCategory.Builder value(Double value)
Numerical value of the category. Must be between 0 and 1, inclusive
-
value
final ProjectScoreCategory.Builder value(JsonField<Double> value)
Sets Builder.value to an arbitrary JSON value.
You should usually call Builder.value with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ProjectScoreCategory.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ProjectScoreCategory.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ProjectScoreCategory.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ProjectScoreCategory.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ProjectScoreCategory.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ProjectScoreCategory build()
Returns an immutable instance of ProjectScoreCategory.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.name() .value()
-
-
-
-