Lewis Hamilton was thrilled after winning his first race with Ferrari in the Sprint around Shanghai International Circuit.