Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.36 KB

File metadata and controls

37 lines (28 loc) · 1.36 KB

CreateCtwaAd201Response

oneOf schemas

Example

// Import classes:
import dev.zernio.model.CreateCtwaAd201Response;
import dev.zernio.model.CtwaMultiResponse;
import dev.zernio.model.CtwaSingleResponse;

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

        // create a new CtwaMultiResponse
        CtwaMultiResponse exampleCtwaMultiResponse = new CtwaMultiResponse();
        // set CreateCtwaAd201Response to CtwaMultiResponse
        exampleCreateCtwaAd201Response.setActualInstance(exampleCtwaMultiResponse);
        // to get back the CtwaMultiResponse set earlier
        CtwaMultiResponse testCtwaMultiResponse = (CtwaMultiResponse) exampleCreateCtwaAd201Response.getActualInstance();

        // create a new CtwaSingleResponse
        CtwaSingleResponse exampleCtwaSingleResponse = new CtwaSingleResponse();
        // set CreateCtwaAd201Response to CtwaSingleResponse
        exampleCreateCtwaAd201Response.setActualInstance(exampleCtwaSingleResponse);
        // to get back the CtwaSingleResponse set earlier
        CtwaSingleResponse testCtwaSingleResponse = (CtwaSingleResponse) exampleCreateCtwaAd201Response.getActualInstance();
    }
}