Class UserInfoResult.Builder

    • Field Detail

      • familyName

        protected java.lang.String familyName
      • givenName

        protected java.lang.String givenName
      • email

        protected java.lang.String email
      • emailVerified

        protected java.lang.Boolean emailVerified
      • iss

        protected java.lang.String iss
      • sub

        protected java.lang.String sub
    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • withFamilyName

        public UserInfoResult.Builder withFamilyName​(java.lang.String familyName)
        Set value for optional field.
        Parameters:
        familyName - Last name of user.
        Returns:
        this builder
      • withGivenName

        public UserInfoResult.Builder withGivenName​(java.lang.String givenName)
        Set value for optional field.
        Parameters:
        givenName - First name of user.
        Returns:
        this builder
      • withEmail

        public UserInfoResult.Builder withEmail​(java.lang.String email)
        Set value for optional field.
        Parameters:
        email - Email address of user.
        Returns:
        this builder
      • withEmailVerified

        public UserInfoResult.Builder withEmailVerified​(java.lang.Boolean emailVerified)
        Set value for optional field.
        Parameters:
        emailVerified - If user is email verified.
        Returns:
        this builder
      • withIss

        public 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.
      • withSub

        public 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.