code: def SetCredentials(self, password=None, username=None):
      
      if password:
        self._password = password
      if username:
        self._user = username
docs: Sets the database credentials.
  
      Args:
        password (Optional[str]): password to access the database.
        username (Optional[str]): username to access the database.