Class UserInfo.Builder

  • Enclosing class:
    UserInfo

    public static class UserInfo.Builder
    extends java.lang.Object
    Builder for UserInfo.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String email  
      protected java.lang.String id  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Builder()  
    • Field Detail

      • id

        protected java.lang.String id
      • email

        protected java.lang.String email
    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • withId

        public UserInfo.Builder withId​(java.lang.String id)
        Set value for optional field.

        If left unset or set to null, defaults to "\"\"".

        Parameters:
        id - ID associated with the user. 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.
      • withEmail

        public UserInfo.Builder withEmail​(java.lang.String email)
        Set value for optional field.

        If left unset or set to null, defaults to "\"\"".

        Parameters:
        email - Email associated with the user. 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.
      • build

        public UserInfo build()
        Builds an instance of UserInfo configured with this builder's values
        Returns:
        new instance of UserInfo