Class UserRetrieveResponse
-
- All Implemented Interfaces:
public final class UserRetrieveResponseDetails about a user returned from an organization group membership lookup.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUserRetrieveResponse.BuilderA builder for UserRetrieveResponse.
public final classUserRetrieveResponse.UserTypeThe type of user.
-
Method Summary
Modifier and Type Method Description final Stringid()Identifier for the user. final Optional<String>email()Email address of the user, or nullfor users without an email.final Optional<Boolean>isServiceAccount()Whether the user is a service account. final Stringname()Display name of the user. final Optional<String>picture()URL of the user's profile picture, if available. final UserRetrieveResponse.UserTypeuserType()The type of user. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_email()Returns the raw JSON value of email. final JsonField<Boolean>_isServiceAccount()Returns the raw JSON value of isServiceAccount. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_picture()Returns the raw JSON value of picture. final JsonField<UserRetrieveResponse.UserType>_userType()Returns the raw JSON value of userType. final Map<String, JsonValue>_additionalProperties()final UserRetrieveResponse.BuildertoBuilder()final UserRetrieveResponsevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UserRetrieveResponse.Builderbuilder()Returns a mutable builder for constructing an instance of UserRetrieveResponse. -
-
Method Detail
-
isServiceAccount
final Optional<Boolean> isServiceAccount()
Whether the user is a service account.
-
userType
final UserRetrieveResponse.UserType userType()
The type of 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.
-
_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.
-
_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.
-
_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.
-
_userType
final JsonField<UserRetrieveResponse.UserType> _userType()
Returns the raw JSON value of userType.
Unlike userType, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UserRetrieveResponse.Builder toBuilder()
-
validate
final UserRetrieveResponse 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 UserRetrieveResponse.Builder builder()
Returns a mutable builder for constructing an instance of UserRetrieveResponse.
The following fields are required:
.id() .email() .isServiceAccount() .name() .picture() .userType()
-
-
-
-