Animated rotation of plane to solid
Create a vertical plane, the pivot point have to be on the side of it.
Add a screw modifier
Select the first frame what you want on the timeline, type in 0 for angle, stay the mouse above the "Angle" box then hit "I"
Select the final frame on the timeline type in 360 for angle, stay the mouse above the "Angle" box then hit "I" 




Fill the ends:

Duplicate the plane twice, delete the modifier from the new ones and add the same values on the same frames for the Z rotation as the screw modifier has, like you did it in the 3. and 4. steps.