Class ProjectModelPermissions.Builder
-
- All Implemented Interfaces:
public final class ProjectModelPermissions.BuilderA builder for ProjectModelPermissions.
-
-
Method Summary
-
-
Method Detail
-
mode
final ProjectModelPermissions.Builder mode(ProjectModelPermissions.Mode mode)
Whether the project uses an allowlist or a denylist.
-
mode
final ProjectModelPermissions.Builder mode(JsonField<ProjectModelPermissions.Mode> mode)
Sets Builder.mode to an arbitrary JSON value.
You should usually call Builder.mode with a well-typed Mode value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
modelIds
final ProjectModelPermissions.Builder modelIds(List<String> modelIds)
The model IDs included in the model permissions policy.
-
modelIds
final ProjectModelPermissions.Builder modelIds(JsonField<List<String>> modelIds)
Sets Builder.modelIds to an arbitrary JSON value.
You should usually call Builder.modelIds with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addModelId
final ProjectModelPermissions.Builder addModelId(String modelId)
-
object_
final ProjectModelPermissions.Builder object_(JsonValue object_)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("project.model_permissions")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ProjectModelPermissions.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ProjectModelPermissions.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ProjectModelPermissions.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ProjectModelPermissions.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ProjectModelPermissions.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ProjectModelPermissions build()
Returns an immutable instance of ProjectModelPermissions.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.mode() .modelIds()
-
-
-
-