Class UserUpdateParams.Body
-
- All Implemented Interfaces:
public final class UserUpdateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUserUpdateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final UserUpdateParams.Rolerole()New role for the User. final JsonField<UserUpdateParams.Role>_role()Returns the raw JSON value of role. final Map<String, JsonValue>_additionalProperties()final UserUpdateParams.Body.BuildertoBuilder()final UserUpdateParams.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 UserUpdateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. final static UserUpdateParams.Bodyof(UserUpdateParams.Role role)Returns an immutable instance of Body with the required role set to the given value. -
-
Method Detail
-
role
final UserUpdateParams.Role role()
New role for the User.
The accepted values depend on the organization type. Console and API organizations accept
user,developer,billing, andclaude_code_user;admincannot be assigned through the API. Claude Enterprise organizations acceptuserandmanaged; changing a User's role tomanagedrequires thewrite:rbac_groupsscope in addition towrite:members.
-
_role
final JsonField<UserUpdateParams.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UserUpdateParams.Body.Builder toBuilder()
-
validate
final UserUpdateParams.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 UserUpdateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.role()
-
of
final static UserUpdateParams.Body of(UserUpdateParams.Role role)
-
-
-
-