Class OrganizationInvite
-
- All Implemented Interfaces:
public final class OrganizationInvite
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOrganizationInvite.BuilderA builder for OrganizationInvite.
public final classOrganizationInvite.StatusStatus of the Invite.
-
Method Summary
Modifier and Type Method Description final Stringid()ID of the Invite. final Optional<OffsetDateTime>acceptedAt()RFC 3339 datetime string indicating when the Invite was accepted, or null. final Stringemail()Email of the User being invited. final OffsetDateTimeexpiresAt()RFC 3339 datetime string indicating when the Invite expires. final OffsetDateTimeinvitedAt()RFC 3339 datetime string indicating when the Invite was created. final List<String>rbacGroupIds()RBAC group IDs recorded on the Invite (Claude Enterprise organizations), to be assigned to the User when the Invite is accepted. final OrganizationRolerole()Organization role of the User. final OrganizationInvite.Statusstatus()Status of the Invite. final JsonValue_type()Object type. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_acceptedAt()Returns the raw JSON value of acceptedAt. final JsonField<String>_email()Returns the raw JSON value of email. final JsonField<OffsetDateTime>_expiresAt()Returns the raw JSON value of expiresAt. final JsonField<OffsetDateTime>_invitedAt()Returns the raw JSON value of invitedAt. final JsonField<List<String>>_rbacGroupIds()Returns the raw JSON value of rbacGroupIds. final JsonField<OrganizationRole>_role()Returns the raw JSON value of role. final JsonField<OrganizationInvite.Status>_status()Returns the raw JSON value of status. final Map<String, JsonValue>_additionalProperties()final OrganizationInvite.BuildertoBuilder()final OrganizationInvitevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OrganizationInvite.Builderbuilder()Returns a mutable builder for constructing an instance of OrganizationInvite. -
-
Method Detail
-
acceptedAt
final Optional<OffsetDateTime> acceptedAt()
RFC 3339 datetime string indicating when the Invite was accepted, or null.
-
expiresAt
final OffsetDateTime expiresAt()
RFC 3339 datetime string indicating when the Invite expires.
-
invitedAt
final OffsetDateTime invitedAt()
RFC 3339 datetime string indicating when the Invite was created.
-
rbacGroupIds
final 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.
-
role
final OrganizationRole role()
Organization role of the User.
-
status
final OrganizationInvite.Status status()
Status of the Invite.
-
_type
final JsonValue _type()
Object type.
For Invites, this is always
"invite".Expected to always return the following:
JsonValue.from("invite")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_acceptedAt
final JsonField<OffsetDateTime> _acceptedAt()
Returns the raw JSON value of acceptedAt.
Unlike acceptedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_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.
-
_expiresAt
final JsonField<OffsetDateTime> _expiresAt()
Returns the raw JSON value of expiresAt.
Unlike expiresAt, this method doesn't throw if the JSON field has an unexpected type.
-
_invitedAt
final JsonField<OffsetDateTime> _invitedAt()
Returns the raw JSON value of invitedAt.
Unlike invitedAt, 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.
-
_role
final JsonField<OrganizationRole> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<OrganizationInvite.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final OrganizationInvite.Builder toBuilder()
-
validate
final OrganizationInvite 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 OrganizationInvite.Builder builder()
Returns a mutable builder for constructing an instance of OrganizationInvite.
The following fields are required:
.id() .acceptedAt() .email() .expiresAt() .invitedAt() .rbacGroupIds() .role() .status()
-
-
-
-