Fetching details from the dictionary...
immunity; immunization; immunisation
being hardened (to); being unaffected (by); being accustomed (to)
その病気には免疫がない。
There is no immunity to that disease.
予防接種で麻疹に対する免疫を得る。
Vaccination provides immunity against measles.
長年の経験を通じてストレスへの免疫が自然とついた。
Years of experience built up a natural resistance to stress.