‘You heard me—OUT!’ Uncle Vernon bellowed, and even Aunt Petunia and Dudley jumped. ‘OUT! OUT! I should've done this years ago! Owls treating the place like a rest home, puddings exploding, half the lounge destroyed, Dudley's tail, Marge bobbing around on the ceiling and that flying Ford Anglia—OUT! OUT! You've had it! You're history! You're not staying here if some loony's after you, you're not endangering my wife and son, you're not bringing trouble down on us, if you're going the same way as your useless parents, I've had it! OUT!’
Harry Potter and the Order of the Phoenix
It seems to me that the two "X've had it"s mean differently in this context. I looked up the phrase "have had it". It has many meanings. I'm not quite sure which ones fit for the context. My best try would be: the first one means you have had enough of those stuff like puddings exploding and etc. and the second one probably means I couldn't tolerate any more. But I'm unsure if my understanding is correct?