Class ProjectModelPermissions
-
- All Implemented Interfaces:
public final class ProjectModelPermissionsRepresents the model allowlist or denylist policy for a project.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classProjectModelPermissions.BuilderA builder for ProjectModelPermissions.
public final classProjectModelPermissions.ModeWhether the project uses an allowlist or a denylist.
-
Method Summary
Modifier and Type Method Description final ProjectModelPermissions.Modemode()Whether the project uses an allowlist or a denylist. final List<String>modelIds()The model IDs included in the model permissions policy. final JsonValue_object_()The object type, which is always project.model_permissions.final JsonField<ProjectModelPermissions.Mode>_mode()Returns the raw JSON value of mode. final JsonField<List<String>>_modelIds()Returns the raw JSON value of modelIds. final Map<String, JsonValue>_additionalProperties()final ProjectModelPermissions.BuildertoBuilder()final ProjectModelPermissionsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ProjectModelPermissions.Builderbuilder()Returns a mutable builder for constructing an instance of ProjectModelPermissions. -
-
Method Detail
-
mode
final ProjectModelPermissions.Mode mode()
Whether the project uses an allowlist or a denylist.
-
_object_
final JsonValue _object_()
The object type, which is always
project.model_permissions.Expected to always return the following:
JsonValue.from("project.model_permissions")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_mode
final JsonField<ProjectModelPermissions.Mode> _mode()
Returns the raw JSON value of mode.
Unlike mode, this method doesn't throw if the JSON field has an unexpected type.
-
_modelIds
final JsonField<List<String>> _modelIds()
Returns the raw JSON value of modelIds.
Unlike modelIds, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ProjectModelPermissions.Builder toBuilder()
-
validate
final ProjectModelPermissions validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ProjectModelPermissions.Builder builder()
Returns a mutable builder for constructing an instance of ProjectModelPermissions.
The following fields are required:
.mode() .modelIds()
-
-
-
-