Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 923 Bytes

File metadata and controls

37 lines (28 loc) · 923 Bytes

PostUserId

oneOf schemas

Example

// Import classes:
import dev.getlate.model.PostUserId;
import dev.getlate.model.String;
import dev.getlate.model.User;

public class Example {
    public static void main(String[] args) {
        PostUserId examplePostUserId = new PostUserId();

        // create a new String
        String exampleString = new String();
        // set PostUserId to String
        examplePostUserId.setActualInstance(exampleString);
        // to get back the String set earlier
        String testString = (String) examplePostUserId.getActualInstance();

        // create a new User
        User exampleUser = new User();
        // set PostUserId to User
        examplePostUserId.setActualInstance(exampleUser);
        // to get back the User set earlier
        User testUser = (User) examplePostUserId.getActualInstance();
    }
}