# Example ## oneOf schemas * [List](List.md) * [List](List.md) ## Example ```java // Import classes: import org.openapitools.client.model.Example; import org.openapitools.client.model.List; import org.openapitools.client.model.List; public class Example { public static void main(String[] args) { Example exampleExample = new Example(); // create a new List List exampleList = new List(); // set Example to List exampleExample.setActualInstance(exampleList); // to get back the List set earlier List testList = (List) exampleExample.getActualInstance(); // create a new List List exampleList = new List(); // set Example to List exampleExample.setActualInstance(exampleList); // to get back the List set earlier List testList = (List) exampleExample.getActualInstance(); } } ```