Class OrganizationUser.User
-
- All Implemented Interfaces:
public final class OrganizationUser.UserNested user details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOrganizationUser.User.BuilderA builder for User.
-
Method Summary
Modifier and Type Method Description final Stringid()final JsonValue_object_()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("user")final Optional<Boolean>banned()final Optional<Long>bannedAt()final Optional<String>email()final Optional<Boolean>enabled()final Optional<String>name()final Optional<String>picture()final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<Boolean>_banned()Returns the raw JSON value of banned. final JsonField<Long>_bannedAt()Returns the raw JSON value of bannedAt. final JsonField<String>_email()Returns the raw JSON value of email. final JsonField<Boolean>_enabled()Returns the raw JSON value of enabled. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_picture()Returns the raw JSON value of picture. final Map<String, JsonValue>_additionalProperties()final OrganizationUser.User.BuildertoBuilder()final OrganizationUser.Uservalidate()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.User.Builderbuilder()Returns a mutable builder for constructing an instance of User. -
-
Method Detail
-
_object_
final JsonValue _object_()
Expected to always return the following:
JsonValue.from("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.
-
_banned
final JsonField<Boolean> _banned()
Returns the raw JSON value of banned.
Unlike banned, this method doesn't throw if the JSON field has an unexpected type.
-
_bannedAt
final JsonField<Long> _bannedAt()
Returns the raw JSON value of bannedAt.
Unlike bannedAt, 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.
-
_enabled
final JsonField<Boolean> _enabled()
Returns the raw JSON value of enabled.
Unlike enabled, 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.
-
_picture
final JsonField<String> _picture()
Returns the raw JSON value of picture.
Unlike picture, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final OrganizationUser.User.Builder toBuilder()
-
validate
final OrganizationUser.User 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.User.Builder builder()
Returns a mutable builder for constructing an instance of User.
The following fields are required:
.id()
-
-
-
-