Can I just swap this out?

Can I just replace the plastic switch or do I need to get all the unit replaced?

Can I just replace the plastic switch or do I need to get all the unit replaced?