¿Cuánto tiempo me protege del covid haberme infectado antes con él?

¿Cuánto tiempo me protege del covi haberme infectado antes con él?