In this situation, I would recommend a Taurus Judge loaded with .410's full of 6 shot.
While it doesn't seem to be the popular opinion around here, I don't believe in using a longarm as my first defense. My first defense weapon is based on the worst case scenario, which I believe is waking up to someone standing over my bed. Yes, I am much more likely to be awakened by an intruder LONG before they get to our room, the consequence if I DON'T wake up is terrible, so I will plan for the worst, then hope for the best.
In the instance where you wake up to someone standing at the foot of your bed, handling a longarm fast enough to neutralize the threat BEFORE they can over-take control of the muzzle and "defend" themselves is very difficult. Try it with a paintball gun or airsoft shotgun sometime, have a friend or spouse stand over the bed and at a beep, both of you go for your gun. You WILL NOT be able to get your first shot off before they get control of your muzzle. So now it's a wrestling match over a loaded gun.
In my practices with an airsoft PISTOL, however, I can hold back an attacker with one hand, and get the shots off with the other hand nearly every time.
So in my experience, a handgun is the superior weapon to have near the bed.
If you want to keep a shotgun in the closet in case you hear someone in the front room, then, yes, I agree in that situation, a shotgun is superior to a handgun, but for a "closer than 10ft" engagement, the handgun gets the nod.
Again, for APARTMENTS, either use a handgun with birdshot or Glazer Frangibles, or a Taurus Judge Revolver with .410 bore 6 shot.
You can NOT count on your walls stopping buckshot, but you CAN count on 6 shot tearing a fist sized hole in someone's chest at 10ft.