While Ben’s answer is basically correct, is_page also checks to make sure that the query is indeed a Page and not something else with the same post_name.
So to be 100% accurate, you could do something like this:
if ( is_page() ) { // only do this for actual pages
$page_obj = get_queried_object();
switch ( $page_obj->post_name ) {
// same switch as Ben's answer
}
} else {
// not a page
}