Class InviteCreateParams.Body
-
- All Implemented Interfaces:
public final class InviteCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classInviteCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Stringemail()Email of the User. final InviteCreateParams.Rolerole()Role for the invited User. final Optional<List<String>>rbacGroupIds()RBAC group IDs to assign to the User when the Invite is accepted. final JsonField<String>_email()Returns the raw JSON value of email. final JsonField<InviteCreateParams.Role>_role()Returns the raw JSON value of role. final JsonField<List<String>>_rbacGroupIds()Returns the raw JSON value of rbacGroupIds. final Map<String, JsonValue>_additionalProperties()final InviteCreateParams.Body.BuildertoBuilder()final InviteCreateParams.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 InviteCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
role
final InviteCreateParams.Role role()
Role for the invited 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; inviting with themanagedrole requires thewrite:rbac_groupsscope in addition towrite:members.
-
rbacGroupIds
final Optional<List<String>> rbacGroupIds()
RBAC group IDs to assign to the User when the Invite is accepted. A non-empty array is accepted only for a Claude Enterprise organization with RBAC groups, and requires the key to carry the
write:rbac_groupsscope.
-
_email
final JsonField<String> _email()
Returns the raw JSON value of email.
Unlike email, this method doesn't throw if the JSON field has an unexpected type.
-
_role
final JsonField<InviteCreateParams.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_rbacGroupIds
final JsonField<List<String>> _rbacGroupIds()
Returns the raw JSON value of rbacGroupIds.
Unlike rbacGroupIds, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final InviteCreateParams.Body.Builder toBuilder()
-
validate
final InviteCreateParams.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 InviteCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.email() .role()
-
-
-
-