You can add structures to your class and generate code for them.
To do so, add a new class to your model and use the stereotype struct on this class.
If the structure is part of another class, the code for the structure will be written with the code for the file. If the structure is not part of a class, a new file will be generated for the structure.
Then define the members of the structure as attributes: