Class ViewCreateParams
-
- All Implemented Interfaces:
-
com.braintrustdata.api.core.Params
public final class ViewCreateParams implements Params
Create a new view. If there is an existing view with the same name as the one specified in the request, will return the existing view unmodified
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classViewCreateParams.BuilderA builder for ViewCreateParams.
public final classViewCreateParams.Bodypublic final classViewCreateParams.ViewTypeType of table that the view corresponds to.
-
Method Summary
Modifier and Type Method Description final Stringname()Name of the view final StringobjectId()The id of the object the view applies to final AclObjectTypeobjectType()The object type that the ACL applies to final Optional<ViewCreateParams.ViewType>viewType()Type of table that the view corresponds to. final Optional<OffsetDateTime>deletedAt()Date of role deletion, or null if the role is still active final Optional<ViewOptions>options()Options for the view in the app final Optional<String>userId()Identifies the user who created the view final Optional<ViewData>viewData()The view definition final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_objectId()Returns the raw JSON value of objectId. final JsonField<AclObjectType>_objectType()Returns the raw JSON value of objectType. final JsonField<ViewCreateParams.ViewType>_viewType()Returns the raw JSON value of viewType. final JsonField<OffsetDateTime>_deletedAt()Returns the raw JSON value of deletedAt. final JsonField<ViewOptions>_options()Returns the raw JSON value of options. final JsonField<String>_userId()Returns the raw JSON value of userId. final JsonField<ViewData>_viewData()Returns the raw JSON value of viewData. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()final QueryParams_additionalQueryParams()final ViewCreateParams.BuildertoBuilder()final ViewCreateParams.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 ViewCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of ViewCreateParams. -
-
Method Detail
-
objectType
final AclObjectType objectType()
The object type that the ACL applies to
-
viewType
final Optional<ViewCreateParams.ViewType> viewType()
Type of table that the view corresponds to.
-
deletedAt
final Optional<OffsetDateTime> deletedAt()
Date of role deletion, or null if the role is still active
-
options
final Optional<ViewOptions> options()
Options for the view in the app
-
_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.
-
_objectId
final JsonField<String> _objectId()
Returns the raw JSON value of objectId.
Unlike objectId, this method doesn't throw if the JSON field has an unexpected type.
-
_objectType
final JsonField<AclObjectType> _objectType()
Returns the raw JSON value of objectType.
Unlike objectType, this method doesn't throw if the JSON field has an unexpected type.
-
_viewType
final JsonField<ViewCreateParams.ViewType> _viewType()
Returns the raw JSON value of viewType.
Unlike viewType, this method doesn't throw if the JSON field has an unexpected type.
-
_deletedAt
final JsonField<OffsetDateTime> _deletedAt()
Returns the raw JSON value of deletedAt.
Unlike deletedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_options
final JsonField<ViewOptions> _options()
Returns the raw JSON value of options.
Unlike options, this method doesn't throw if the JSON field has an unexpected type.
-
_userId
final JsonField<String> _userId()
Returns the raw JSON value of userId.
Unlike userId, this method doesn't throw if the JSON field has an unexpected type.
-
_viewData
final JsonField<ViewData> _viewData()
Returns the raw JSON value of viewData.
Unlike viewData, 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 ViewCreateParams.Builder toBuilder()
-
_body
final ViewCreateParams.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 ViewCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of ViewCreateParams.
The following fields are required:
.name() .objectId() .objectType() .viewType()
-
-
-
-