Class ProjectScoreReplaceParams
-
- All Implemented Interfaces:
-
com.braintrustdata.api.core.Params
public final class ProjectScoreReplaceParams implements Params
Create or replace project_score. If there is an existing project_score in the project with the same name as the one specified in the request, will replace the existing project_score with the provided fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classProjectScoreReplaceParams.BuilderA builder for ProjectScoreReplaceParams.
public final classProjectScoreReplaceParams.BodyA project score is a user-configured score, which can be manually-labeled through the UI
public final classProjectScoreReplaceParams.CategoriesFor categorical-type project scores, the list of all categories
-
Method Summary
Modifier and Type Method Description final Stringname()Name of the project score final StringprojectId()Unique identifier for the project that the project score belongs under final ProjectScoreTypescoreType()The type of the configured score final Optional<ProjectScoreReplaceParams.Categories>categories()For categorical-type project scores, the list of all categories final Optional<ProjectScoreConfig>config()final Optional<String>description()Textual description of the project score final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_projectId()Returns the raw JSON value of projectId. final JsonField<ProjectScoreType>_scoreType()Returns the raw JSON value of scoreType. final JsonField<ProjectScoreReplaceParams.Categories>_categories()Returns the raw JSON value of categories. final JsonField<ProjectScoreConfig>_config()Returns the raw JSON value of config. final JsonField<String>_description()Returns the raw JSON value of description. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()final QueryParams_additionalQueryParams()final ProjectScoreReplaceParams.BuildertoBuilder()final ProjectScoreReplaceParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static ProjectScoreReplaceParams.Builderbuilder()Returns a mutable builder for constructing an instance of ProjectScoreReplaceParams. -
-
Method Detail
-
projectId
final String projectId()
Unique identifier for the project that the project score belongs under
-
scoreType
final ProjectScoreType scoreType()
The type of the configured score
-
categories
final Optional<ProjectScoreReplaceParams.Categories> categories()
For categorical-type project scores, the list of all categories
-
config
final Optional<ProjectScoreConfig> config()
-
description
final Optional<String> description()
Textual description of the project score
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_projectId
final JsonField<String> _projectId()
Returns the raw JSON value of projectId.
Unlike projectId, this method doesn't throw if the JSON field has an unexpected type.
-
_scoreType
final JsonField<ProjectScoreType> _scoreType()
Returns the raw JSON value of scoreType.
Unlike scoreType, this method doesn't throw if the JSON field has an unexpected type.
-
_categories
final JsonField<ProjectScoreReplaceParams.Categories> _categories()
Returns the raw JSON value of categories.
Unlike categories, this method doesn't throw if the JSON field has an unexpected type.
-
_config
final JsonField<ProjectScoreConfig> _config()
Returns the raw JSON value of config.
Unlike config, this method doesn't throw if the JSON field has an unexpected type.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
-
toBuilder
final ProjectScoreReplaceParams.Builder toBuilder()
-
_body
final ProjectScoreReplaceParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static ProjectScoreReplaceParams.Builder builder()
Returns a mutable builder for constructing an instance of ProjectScoreReplaceParams.
The following fields are required:
.name() .projectId() .scoreType()
-
-
-
-