Package com.dropbox.core.v2.openid
Class UserInfoResult.Builder
java.lang.Object
com.dropbox.core.v2.openid.UserInfoResult.Builder
- Enclosing class:
UserInfoResult
Builder for
UserInfoResult.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofUserInfoResultconfigured with this builder's valuesSet value for optional field.withEmailVerified(Boolean emailVerified) Set value for optional field.withFamilyName(String familyName) Set value for optional field.withGivenName(String givenName) Set value for optional field.Set value for optional field.Set value for optional field.
-
Field Details
-
familyName
-
givenName
-
email
-
emailVerified
-
iss
-
sub
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
withFamilyName
Set value for optional field.- Parameters:
familyName- Last name of user.- Returns:
- this builder
-
withGivenName
Set value for optional field.- Parameters:
givenName- First name of user.- Returns:
- this builder
-
withEmail
Set value for optional field.- Parameters:
email- Email address of user.- Returns:
- this builder
-
withEmailVerified
Set value for optional field.- Parameters:
emailVerified- If user is email verified.- Returns:
- this builder
-
withIss
Set value for optional field.If left unset or set to
null, defaults to"".- Parameters:
iss- Issuer of token (in this case Dropbox). Must not benull. Defaults to""when set tonull.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
withSub
Set value for optional field.If left unset or set to
null, defaults to"".- Parameters:
sub- An identifier for the user. This is the Dropbox account_id, a string value such as dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc. Must not benull. Defaults to""when set tonull.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
build
Builds an instance ofUserInfoResultconfigured with this builder's values- Returns:
- new instance of
UserInfoResult
-