The answer is PARALLELISM.
The repetition of phrases or sentences with similar STRUCTURE is called parallelism. In the definition provided the key word is structure since in literature, to recognize parallelism we pay attention to structure in different lines.
Note: If parallelism is in the same line, it is antithesis.