Class User
-
- All Implemented Interfaces:
public final class User
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUser.BuilderA builder for User.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for the user final Optional<String>avatarUrl()URL of the user's Avatar image final Optional<OffsetDateTime>created()Date of user creation final Optional<String>email()The user's email final Optional<String>familyName()Family name of the user final Optional<String>givenName()Given name of the user final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_avatarUrl()Returns the raw JSON value of avatarUrl. final JsonField<OffsetDateTime>_created()Returns the raw JSON value of created. final JsonField<String>_email()Returns the raw JSON value of email. final JsonField<String>_familyName()Returns the raw JSON value of familyName. final JsonField<String>_givenName()Returns the raw JSON value of givenName. final Map<String, JsonValue>_additionalProperties()final Uservalidate()final User.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static User.Builderbuilder()Returns a mutable builder for constructing an instance of User. -
-
Method Detail
-
created
final Optional<OffsetDateTime> created()
Date of user creation
-
familyName
final Optional<String> familyName()
Family name of the user
-
_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.
-
_avatarUrl
final JsonField<String> _avatarUrl()
Returns the raw JSON value of avatarUrl.
Unlike avatarUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_created
final JsonField<OffsetDateTime> _created()
Returns the raw JSON value of created.
Unlike created, 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.
-
_familyName
final JsonField<String> _familyName()
Returns the raw JSON value of familyName.
Unlike familyName, this method doesn't throw if the JSON field has an unexpected type.
-
_givenName
final JsonField<String> _givenName()
Returns the raw JSON value of givenName.
Unlike givenName, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final User.Builder toBuilder()
-
builder
final static User.Builder builder()
Returns a mutable builder for constructing an instance of User.
The following fields are required:
.id()
-
-
-
-