All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.logmein.gotowebinar.api.model.CreateWebhookRequest Maven / Gradle / Ivy

There is a newer version: 2.9.0
Show newest version
/*
 * © 2017 LogMeIn, Inc. All Rights Reserved.
 * All rights reserved.
 * 
 * This software is distributed under the terms and conditions of the
 * LogMeIn SDK License Agreement. Please see file LICENSE for details.
 * 
 * Auto-generated file.
 */


package com.logmein.gotowebinar.api.model;

import com.logmein.gotowebinar.api.common.JsonUtil;

/**
 * Representation of a single webhook
 */
public class CreateWebhookRequest {

    /* A HTTPs url that can accept posted events. It should return 200 OK for GET requests. */
    private String callbackUrl = null;

    /* Type of event for the webhook. Supported eventNames are registrant.added, registrant.joined, webinar.created, webinar.changed */
    private String eventName = null;

    /* Version of event being subscribed for. Supported eventVersion is 1.0.0 */
    private String eventVersion = null;

    /*  */
    private Product product = null;

    /**
     * @return A HTTPs url that can accept posted events. It should return 200 OK for GET requests.
     */
    public String getCallbackUrl() {
        return callbackUrl;
    }

    /**
     * @param callbackUrl A HTTPs url that can accept posted events. It should return 200 OK for GET requests.
     */
    public void setCallbackUrl(String callbackUrl) {
        this.callbackUrl = callbackUrl;
    }

    /**
     * @return Type of event for the webhook. Supported eventNames are registrant.added, registrant.joined, webinar.created, webinar.changed
     */
    public String getEventName() {
        return eventName;
    }

    /**
     * @param eventName Type of event for the webhook. Supported eventNames are registrant.added, registrant.joined, webinar.created, webinar.changed
     */
    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    /**
     * @return Version of event being subscribed for. Supported eventVersion is 1.0.0
     */
    public String getEventVersion() {
        return eventVersion;
    }

    /**
     * @param eventVersion Version of event being subscribed for. Supported eventVersion is 1.0.0
     */
    public void setEventVersion(String eventVersion) {
        this.eventVersion = eventVersion;
    }

    /**
     * @return 
     */
    public Product getProduct() {
        return product;
    }

    /**
     * @param product 
     */
    public void setProduct(Product product) {
        this.product = product;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class CreateWebhookRequest {\n");
        String callbackUrlString = JsonUtil.Stringify(callbackUrl);
        if (callbackUrlString != null && !callbackUrlString.isEmpty())
            sb.append(String.format("  callbackUrl: %s\n", callbackUrlString));
        String eventNameString = JsonUtil.Stringify(eventName);
        if (eventNameString != null && !eventNameString.isEmpty())
            sb.append(String.format("  eventName: %s\n", eventNameString));
        String eventVersionString = JsonUtil.Stringify(eventVersion);
        if (eventVersionString != null && !eventVersionString.isEmpty())
            sb.append(String.format("  eventVersion: %s\n", eventVersionString));
        String productString = JsonUtil.Stringify(product);
        if (productString != null && !productString.isEmpty())
            sb.append(String.format("  product: %s\n", productString));
        sb.append("}\n");
        return sb.toString();
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy