Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.11 KB

File metadata and controls

37 lines (28 loc) · 1.11 KB

PostLogPostId

oneOf schemas

Example

// Import classes:
import dev.getlate.model.PostLogPostId;
import dev.getlate.model.PostLogPostIdOneOf;
import dev.getlate.model.String;

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

        // create a new PostLogPostIdOneOf
        PostLogPostIdOneOf examplePostLogPostIdOneOf = new PostLogPostIdOneOf();
        // set PostLogPostId to PostLogPostIdOneOf
        examplePostLogPostId.setActualInstance(examplePostLogPostIdOneOf);
        // to get back the PostLogPostIdOneOf set earlier
        PostLogPostIdOneOf testPostLogPostIdOneOf = (PostLogPostIdOneOf) examplePostLogPostId.getActualInstance();

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