used to show that you will not accept sth any longer
That does it, I'm off. I'm not having you swear at me like that.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition