Is no visitors after birth rude?

I’m not a first time mom.

Last time I had swarms of family and friends coming up to the hospital unannounced. I was so tired and didn’t want to see anyone.

This time I don’t want ANYONE at the hospital the day i give birth. Do you think that is rude to say to people?

The second day I’m there I will allow people to come up for a half hour tops. Has anyone done this?