Class RoleCreateParams.Body
-
- All Implemented Interfaces:
public final class RoleCreateParams.BodyRequest payload for creating a custom role.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRoleCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final List<String>permissions()Permissions to grant to the role. final StringroleName()Unique name for the role. final Optional<String>description()Optional description of the role. final JsonField<List<String>>_permissions()Returns the raw JSON value of permissions. final JsonField<String>_roleName()Returns the raw JSON value of roleName. final JsonField<String>_description()Returns the raw JSON value of description. final Map<String, JsonValue>_additionalProperties()final RoleCreateParams.Body.BuildertoBuilder()final RoleCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RoleCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
permissions
final List<String> permissions()
Permissions to grant to the role.
-
description
final Optional<String> description()
Optional description of the role.
-
_permissions
final JsonField<List<String>> _permissions()
Returns the raw JSON value of permissions.
Unlike permissions, this method doesn't throw if the JSON field has an unexpected type.
-
_roleName
final JsonField<String> _roleName()
Returns the raw JSON value of roleName.
Unlike roleName, 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RoleCreateParams.Body.Builder toBuilder()
-
validate
final RoleCreateParams.Body 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 RoleCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.permissions() .roleName()
-
-
-
-