Rotate around Line Tool

Select the object you want to rotate. Then, click on a line to specify the axis and enter an angle.

See also Rotate command.