code: def SetUsername(self, username):
      
      self._username = username
      logger.debug('Elasticsearch username: {0!s}'.format(username))
docs: Sets the username.
  
      Args:
        username (str): username to authenticate with.