Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.69 KB

ResponseCreateNewPhoneNumberCampaignPublicPhonenumbercampaignPost.md

File metadata and controls

37 lines (28 loc) · 1.69 KB

ResponseCreateNewPhoneNumberCampaignPublicPhonenumbercampaignPost

anyOf schemas

Example

// Import classes:
import com.telnyx.sdk.model.ResponseCreateNewPhoneNumberCampaignPublicPhonenumbercampaignPost;
import com.telnyx.sdk.model.Object;
import com.telnyx.sdk.model.PhoneNumberCampaign;

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

        // create a new Object
        Object exampleObject = new Object();
        // set ResponseCreateNewPhoneNumberCampaignPublicPhonenumbercampaignPost to Object
        exampleResponseCreateNewPhoneNumberCampaignPublicPhonenumbercampaignPost.setActualInstance(exampleObject);
        // to get back the Object set earlier
        Object testObject = (Object) exampleResponseCreateNewPhoneNumberCampaignPublicPhonenumbercampaignPost.getActualInstance();

        // create a new PhoneNumberCampaign
        PhoneNumberCampaign examplePhoneNumberCampaign = new PhoneNumberCampaign();
        // set ResponseCreateNewPhoneNumberCampaignPublicPhonenumbercampaignPost to PhoneNumberCampaign
        exampleResponseCreateNewPhoneNumberCampaignPublicPhonenumbercampaignPost.setActualInstance(examplePhoneNumberCampaign);
        // to get back the PhoneNumberCampaign set earlier
        PhoneNumberCampaign testPhoneNumberCampaign = (PhoneNumberCampaign) exampleResponseCreateNewPhoneNumberCampaignPublicPhonenumbercampaignPost.getActualInstance();
    }
}