Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.16 KB

File metadata and controls

37 lines (28 loc) · 1.16 KB

PlatformTargetAccountId

oneOf schemas

Example

// Import classes:
import dev.getlate.model.PlatformTargetAccountId;
import dev.getlate.model.SocialAccount;
import dev.getlate.model.String;

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

        // create a new SocialAccount
        SocialAccount exampleSocialAccount = new SocialAccount();
        // set PlatformTargetAccountId to SocialAccount
        examplePlatformTargetAccountId.setActualInstance(exampleSocialAccount);
        // to get back the SocialAccount set earlier
        SocialAccount testSocialAccount = (SocialAccount) examplePlatformTargetAccountId.getActualInstance();

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