Baby rejecting boobs

What do I do if my baby just started rejecting breast feeding. He’s just not settling anymore while feeding. He just won’t take either side anymore.

Can I just start pumping and bottle feed? How do I how much to feed him?

I’m disappointed, but we have it our best shot at breastfeeding, I just don’t know where to go from here