Class DatasetCreateParams
-
- All Implemented Interfaces:
-
com.braintrustdata.api.core.Params
public final class DatasetCreateParams implements Params
Create a new dataset. If there is an existing dataset in the project with the same name as the one specified in the request, will return the existing dataset unmodified
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classDatasetCreateParams.BuilderA builder for DatasetCreateParams.
public final classDatasetCreateParams.Bodypublic final classDatasetCreateParams.MetadataUser-controlled metadata about the dataset
-
Method Summary
Modifier and Type Method Description final Stringname()Name of the dataset. final StringprojectId()Unique identifier for the project that the dataset belongs under final Optional<String>description()Textual description of the dataset final Optional<DatasetCreateParams.Metadata>metadata()User-controlled metadata about the dataset final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_projectId()Returns the raw JSON value of projectId. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<DatasetCreateParams.Metadata>_metadata()Returns the raw JSON value of metadata. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()final QueryParams_additionalQueryParams()final DatasetCreateParams.BuildertoBuilder()final DatasetCreateParams.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 DatasetCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of DatasetCreateParams. -
-
Method Detail
-
description
final Optional<String> description()
Textual description of the dataset
-
metadata
final Optional<DatasetCreateParams.Metadata> metadata()
User-controlled metadata about the dataset
-
_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.
-
_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.
-
_metadata
final JsonField<DatasetCreateParams.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, 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 DatasetCreateParams.Builder toBuilder()
-
_body
final DatasetCreateParams.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 DatasetCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of DatasetCreateParams.
The following fields are required:
.name() .projectId()
-
-
-
-