Create a primitive in the code

How can I quickly create a primitive in the code? Like that of the Unity3D.
I read the migration guide, but still don’t fully understand how it works in the UE4.