Package com.dropbox.core.v2.openid
Class UserInfoResult.Builder
- java.lang.Object
- 
- com.dropbox.core.v2.openid.UserInfoResult.Builder
 
- 
- Enclosing class:
- UserInfoResult
 
 public static class UserInfoResult.Builder extends java.lang.ObjectBuilder forUserInfoResult.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.Stringemailprotected java.lang.BooleanemailVerifiedprotected java.lang.StringfamilyNameprotected java.lang.StringgivenNameprotected java.lang.Stringissprotected java.lang.Stringsub
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description UserInfoResultbuild()Builds an instance ofUserInfoResultconfigured with this builder's valuesUserInfoResult.BuilderwithEmail(java.lang.String email)Set value for optional field.UserInfoResult.BuilderwithEmailVerified(java.lang.Boolean emailVerified)Set value for optional field.UserInfoResult.BuilderwithFamilyName(java.lang.String familyName)Set value for optional field.UserInfoResult.BuilderwithGivenName(java.lang.String givenName)Set value for optional field.UserInfoResult.BuilderwithIss(java.lang.String iss)Set value for optional field.UserInfoResult.BuilderwithSub(java.lang.String sub)Set value for optional field.
 
- 
- 
- 
Method Detail- 
withFamilyNamepublic UserInfoResult.Builder withFamilyName(java.lang.String familyName) Set value for optional field.- Parameters:
- familyName- Last name of user.
- Returns:
- this builder
 
 - 
withGivenNamepublic UserInfoResult.Builder withGivenName(java.lang.String givenName) Set value for optional field.- Parameters:
- givenName- First name of user.
- Returns:
- this builder
 
 - 
withEmailpublic UserInfoResult.Builder withEmail(java.lang.String email) Set value for optional field.- Parameters:
- email- Email address of user.
- Returns:
- this builder
 
 - 
withEmailVerifiedpublic UserInfoResult.Builder withEmailVerified(java.lang.Boolean emailVerified) Set value for optional field.- Parameters:
- emailVerified- If user is email verified.
- Returns:
- this builder
 
 - 
withIsspublic UserInfoResult.Builder withIss(java.lang.String iss) 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 be- null. Defaults to- ""when set to- null.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
withSubpublic UserInfoResult.Builder withSub(java.lang.String sub) 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 be- null. Defaults to- ""when set to- null.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
buildpublic UserInfoResult build() Builds an instance ofUserInfoResultconfigured with this builder's values- Returns:
- new instance of UserInfoResult
 
 
- 
 
-