Warped Product Spacetimes in Relativity