"To be or not to be..." Is the beginning of a monologue by which Shakesperean character?

Romeo

Lady Macbeth

Hamlet

King Lear