Class ProjectUser
-
- All Implemented Interfaces:
public final class ProjectUserRepresents an individual user in a project.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classProjectUser.BuilderA builder for ProjectUser.
-
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 project was added. final JsonValue_object_()The object type, which is always organization.project.userExpected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("organization.project.user")final Stringrole()ownerormemberfinal Optional<String>email()The email address of the user final Optional<String>name()The name of the user final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<Long>_addedAt()Returns the raw JSON value of addedAt. final JsonField<String>_role()Returns the raw JSON value of role. final JsonField<String>_email()Returns the raw JSON value of email. final JsonField<String>_name()Returns the raw JSON value of name. final Map<String, JsonValue>_additionalProperties()final ProjectUser.BuildertoBuilder()final ProjectUservalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ProjectUser.Builderbuilder()Returns a mutable builder for constructing an instance of ProjectUser. -
-
Method Detail
-
_object_
final JsonValue _object_()
The object type, which is always
organization.project.userExpected to always return the following:
JsonValue.from("organization.project.user")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.
-
_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.
-
_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.
-
_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.
-
_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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ProjectUser.Builder toBuilder()
-
validate
final ProjectUser 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 ProjectUser.Builder builder()
Returns a mutable builder for constructing an instance of ProjectUser.
The following fields are required:
.id() .addedAt() .role()
-
-
-
-