Generalizations of some stochastic epidemic models