Class RoleUpdateParams.Body
-
- All Implemented Interfaces:
public final class RoleUpdateParams.BodyRequest payload for updating an existing role.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRoleUpdateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Optional<String>description()New description for the role. final Optional<List<String>>permissions()Updated set of permissions for the role. final Optional<String>roleName()New name for the role. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<List<String>>_permissions()Returns the raw JSON value of permissions. final JsonField<String>_roleName()Returns the raw JSON value of roleName. final Map<String, JsonValue>_additionalProperties()final RoleUpdateParams.Body.BuildertoBuilder()final RoleUpdateParams.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 RoleUpdateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
description
final Optional<String> description()
New description for the role.
-
permissions
final Optional<List<String>> permissions()
Updated set of permissions for the role.
-
_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.
-
_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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RoleUpdateParams.Body.Builder toBuilder()
-
validate
final RoleUpdateParams.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 RoleUpdateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
-
-
-
-