Shakespeare’s Hamlet

What is the meaning of Hamlet soliloquy “ To be or not to be “?