Camera with different angel between axis

How to set up a camera so that the view is between the X and Y axes at a 90-degree angle, and the Z-axis has a different angle than 90 degrees relative to the X and Y axes? It is possibile?

In the result i want to see each 3d element like this:
cube