code: def user(self, user):
          
          if user is None:
              raise ValueError("Invalid value for `user`, must not be `None`")
          if user is not None and len(user) > 1024:
              raise ValueError("Invalid value for `user`, length must be less than or equal to `1024`")
  
          self._user = user
docs: Sets the user of this WebCredentials.
          The name of the account to login to.
  
          :param user: The user of this WebCredentials.
          :type: str