Class InviteCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class InviteCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
email
final InviteCreateParams.Body.Builder email(String email)
Email of the User.
-
email
final InviteCreateParams.Body.Builder email(JsonField<String> email)
Sets Builder.email to an arbitrary JSON value.
You should usually call Builder.email with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
role
final InviteCreateParams.Body.Builder role(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.
-
role
final InviteCreateParams.Body.Builder role(JsonField<InviteCreateParams.Role> role)
Sets Builder.role to an arbitrary JSON value.
You should usually call Builder.role with a well-typed Role value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
rbacGroupIds
final InviteCreateParams.Body.Builder rbacGroupIds(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.
-
rbacGroupIds
final InviteCreateParams.Body.Builder rbacGroupIds(JsonField<List<String>> rbacGroupIds)
Sets Builder.rbacGroupIds to an arbitrary JSON value.
You should usually call Builder.rbacGroupIds with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final InviteCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addRbacGroupId
final InviteCreateParams.Body.Builder addRbacGroupId(String rbacGroupId)
Adds a single String to rbacGroupIds.
-
putAdditionalProperty
final InviteCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final InviteCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final InviteCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final InviteCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final InviteCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.email() .role()
-
-
-
-