Class OrganizationUser
-
- All Implemented Interfaces:
public final class OrganizationUserRepresents an individual
userwithin an organization.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOrganizationUser.BuilderA builder for OrganizationUser.
public final classOrganizationUser.ProjectsProjects associated with the user, if included.
public final classOrganizationUser.UserNested user details.
-
Method Summary
Modifier and Type Method Description final Stringid()The identifier, which can be referenced in API endpoints final LongaddedAt()The Unix timestamp (in seconds) of when the user was added. final JsonValue_object_()The object type, which is always organization.userExpected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("organization.user")final Optional<Long>apiKeyLastUsedAt()The Unix timestamp (in seconds) of the user's last API key usage. final Optional<Long>created()The Unix timestamp (in seconds) of when the user was created. final Optional<String>developerPersona()The developer persona metadata for the user. final Optional<String>email()The email address of the user final Optional<Boolean>isDefault()Whether this is the organization's default user. final Optional<Boolean>isScaleTierAuthorizedPurchaser()Whether the user is an authorized purchaser for Scale Tier. final Optional<Boolean>isScimManaged()Whether the user is managed through SCIM. final Optional<Boolean>isServiceAccount()Whether the user is a service account. final Optional<String>name()The name of the user final Optional<OrganizationUser.Projects>projects()Projects associated with the user, if included. final Optional<String>role()ownerorreaderfinal Optional<String>technicalLevel()The technical level metadata for the user. final Optional<OrganizationUser.User>user()Nested user details. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<Long>_addedAt()Returns the raw JSON value of addedAt. final JsonField<Long>_apiKeyLastUsedAt()Returns the raw JSON value of apiKeyLastUsedAt. final JsonField<Long>_created()Returns the raw JSON value of created. final JsonField<String>_developerPersona()Returns the raw JSON value of developerPersona. final JsonField<String>_email()Returns the raw JSON value of email. final JsonField<Boolean>_isDefault()Returns the raw JSON value of isDefault. final JsonField<Boolean>_isScaleTierAuthorizedPurchaser()Returns the raw JSON value of isScaleTierAuthorizedPurchaser. final JsonField<Boolean>_isScimManaged()Returns the raw JSON value of isScimManaged. final JsonField<Boolean>_isServiceAccount()Returns the raw JSON value of isServiceAccount. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<OrganizationUser.Projects>_projects()Returns the raw JSON value of projects. final JsonField<String>_role()Returns the raw JSON value of role. final JsonField<String>_technicalLevel()Returns the raw JSON value of technicalLevel. final JsonField<OrganizationUser.User>_user()Returns the raw JSON value of user. final Map<String, JsonValue>_additionalProperties()final OrganizationUser.BuildertoBuilder()final OrganizationUservalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OrganizationUser.Builderbuilder()Returns a mutable builder for constructing an instance of OrganizationUser. -
-
Method Detail
-
_object_
final JsonValue _object_()
The object type, which is always
organization.userExpected to always return the following:
JsonValue.from("organization.user")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
apiKeyLastUsedAt
final Optional<Long> apiKeyLastUsedAt()
The Unix timestamp (in seconds) of the user's last API key usage.
-
created
final Optional<Long> created()
The Unix timestamp (in seconds) of when the user was created.
-
developerPersona
final Optional<String> developerPersona()
The developer persona metadata for the user.
-
isScaleTierAuthorizedPurchaser
final Optional<Boolean> isScaleTierAuthorizedPurchaser()
Whether the user is an authorized purchaser for Scale Tier.
-
isScimManaged
final Optional<Boolean> isScimManaged()
Whether the user is managed through SCIM.
-
isServiceAccount
final Optional<Boolean> isServiceAccount()
Whether the user is a service account.
-
projects
final Optional<OrganizationUser.Projects> projects()
Projects associated with the user, if included.
-
technicalLevel
final Optional<String> technicalLevel()
The technical level metadata for the user.
-
user
final Optional<OrganizationUser.User> user()
Nested user details.
-
_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.
-
_addedAt
final JsonField<Long> _addedAt()
Returns the raw JSON value of addedAt.
Unlike addedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_apiKeyLastUsedAt
final JsonField<Long> _apiKeyLastUsedAt()
Returns the raw JSON value of apiKeyLastUsedAt.
Unlike apiKeyLastUsedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_created
final JsonField<Long> _created()
Returns the raw JSON value of created.
Unlike created, this method doesn't throw if the JSON field has an unexpected type.
-
_developerPersona
final JsonField<String> _developerPersona()
Returns the raw JSON value of developerPersona.
Unlike developerPersona, 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.
-
_isDefault
final JsonField<Boolean> _isDefault()
Returns the raw JSON value of isDefault.
Unlike isDefault, this method doesn't throw if the JSON field has an unexpected type.
-
_isScaleTierAuthorizedPurchaser
final JsonField<Boolean> _isScaleTierAuthorizedPurchaser()
Returns the raw JSON value of isScaleTierAuthorizedPurchaser.
Unlike isScaleTierAuthorizedPurchaser, this method doesn't throw if the JSON field has an unexpected type.
-
_isScimManaged
final JsonField<Boolean> _isScimManaged()
Returns the raw JSON value of isScimManaged.
Unlike isScimManaged, this method doesn't throw if the JSON field has an unexpected type.
-
_isServiceAccount
final JsonField<Boolean> _isServiceAccount()
Returns the raw JSON value of isServiceAccount.
Unlike isServiceAccount, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_projects
final JsonField<OrganizationUser.Projects> _projects()
Returns the raw JSON value of projects.
Unlike projects, this method doesn't throw if the JSON field has an unexpected type.
-
_role
final JsonField<String> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_technicalLevel
final JsonField<String> _technicalLevel()
Returns the raw JSON value of technicalLevel.
Unlike technicalLevel, this method doesn't throw if the JSON field has an unexpected type.
-
_user
final JsonField<OrganizationUser.User> _user()
Returns the raw JSON value of user.
Unlike user, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final OrganizationUser.Builder toBuilder()
-
validate
final OrganizationUser 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 OrganizationUser.Builder builder()
Returns a mutable builder for constructing an instance of OrganizationUser.
The following fields are required:
.id() .addedAt()
-
-
-
-