Class OrganizationInvite.Builder
-
- All Implemented Interfaces:
public final class OrganizationInvite.BuilderA builder for OrganizationInvite.
-
-
Method Summary
-
-
Method Detail
-
id
final OrganizationInvite.Builder id(String id)
ID of the Invite.
-
id
final OrganizationInvite.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
acceptedAt
final OrganizationInvite.Builder acceptedAt(OffsetDateTime acceptedAt)
RFC 3339 datetime string indicating when the Invite was accepted, or null.
-
acceptedAt
final OrganizationInvite.Builder acceptedAt(Optional<OffsetDateTime> acceptedAt)
Alias for calling Builder.acceptedAt with
acceptedAt.orElse(null).
-
acceptedAt
final OrganizationInvite.Builder acceptedAt(JsonField<OffsetDateTime> acceptedAt)
Sets Builder.acceptedAt to an arbitrary JSON value.
You should usually call Builder.acceptedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
email
final OrganizationInvite.Builder email(String email)
Email of the User being invited.
-
email
final OrganizationInvite.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.
-
expiresAt
final OrganizationInvite.Builder expiresAt(OffsetDateTime expiresAt)
RFC 3339 datetime string indicating when the Invite expires.
-
expiresAt
final OrganizationInvite.Builder expiresAt(JsonField<OffsetDateTime> expiresAt)
Sets Builder.expiresAt to an arbitrary JSON value.
You should usually call Builder.expiresAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
invitedAt
final OrganizationInvite.Builder invitedAt(OffsetDateTime invitedAt)
RFC 3339 datetime string indicating when the Invite was created.
-
invitedAt
final OrganizationInvite.Builder invitedAt(JsonField<OffsetDateTime> invitedAt)
Sets Builder.invitedAt to an arbitrary JSON value.
You should usually call Builder.invitedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
rbacGroupIds
final OrganizationInvite.Builder rbacGroupIds(List<String> rbacGroupIds)
RBAC group IDs recorded on the Invite (Claude Enterprise organizations), to be assigned to the User when the Invite is accepted.
[]when none.
-
rbacGroupIds
final OrganizationInvite.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.
-
role
final OrganizationInvite.Builder role(OrganizationRole role)
Organization role of the User.
-
role
final OrganizationInvite.Builder role(JsonField<OrganizationRole> role)
Sets Builder.role to an arbitrary JSON value.
You should usually call Builder.role with a well-typed OrganizationRole value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final OrganizationInvite.Builder status(OrganizationInvite.Status status)
Status of the Invite.
-
status
final OrganizationInvite.Builder status(JsonField<OrganizationInvite.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final OrganizationInvite.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("invite")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final OrganizationInvite.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addRbacGroupId
final OrganizationInvite.Builder addRbacGroupId(String rbacGroupId)
Adds a single String to rbacGroupIds.
-
putAdditionalProperty
final OrganizationInvite.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final OrganizationInvite.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final OrganizationInvite.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final OrganizationInvite.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final OrganizationInvite build()
Returns an immutable instance of OrganizationInvite.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .acceptedAt() .email() .expiresAt() .invitedAt() .rbacGroupIds() .role() .status()
-
-
-
-