Vaccination Question

I'm going to vac my child. I've done EONS worth of research and it is the best choice. Since it is not a law to vaccinate, some children are walking around with preventable diseases. How soon can I protect my child so I know they are safe from diseases like this? I won't let them leave the house until then (backyard is fine so fresh air). I can't risk their health.