Immunity following natural infection and vaccination