Class ViewReplaceParams
-
- All Implemented Interfaces:
-
com.braintrustdata.api.core.Params
public final class ViewReplaceParams implements Params
Create or replace view. If there is an existing view with the same name as the one specified in the request, will replace the existing view with the provided fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classViewReplaceParams.Bodypublic final classViewReplaceParams.BuilderA builder for ViewReplaceParams.
public final classViewReplaceParams.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<ViewReplaceParams.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<ViewReplaceParams.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()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. final ViewReplaceParams.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ViewReplaceParams.Builderbuilder()Returns a mutable builder for constructing an instance of ViewReplaceParams. -
-
Method Detail
-
objectType
final AclObjectType objectType()
The object type that the ACL applies to
-
viewType
final Optional<ViewReplaceParams.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<ViewReplaceParams.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()
-
_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.
-
toBuilder
final ViewReplaceParams.Builder toBuilder()
-
builder
final static ViewReplaceParams.Builder builder()
Returns a mutable builder for constructing an instance of ViewReplaceParams.
The following fields are required:
.name() .objectId() .objectType() .viewType()
-
-
-
-