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

com.logmein.gotowebinar.api.model.UpdateWebhooksRequest 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;

/**
 * Describes a single webhook update request
 */
public class UpdateWebhooksRequest {

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

    /* The unique identifier for the webhook */
    private String webhookKey = null;

    /*  */
    private WebhookState state = 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 The unique identifier for the webhook
     */
    public String getWebhookKey() {
        return webhookKey;
    }

    /**
     * @param webhookKey The unique identifier for the webhook
     */
    public void setWebhookKey(String webhookKey) {
        this.webhookKey = webhookKey;
    }

    /**
     * @return 
     */
    public WebhookState getState() {
        return state;
    }

    /**
     * @param state 
     */
    public void setState(WebhookState state) {
        this.state = state;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class UpdateWebhooksRequest {\n");
        String callbackUrlString = JsonUtil.Stringify(callbackUrl);
        if (callbackUrlString != null && !callbackUrlString.isEmpty())
            sb.append(String.format("  callbackUrl: %s\n", callbackUrlString));
        String webhookKeyString = JsonUtil.Stringify(webhookKey);
        if (webhookKeyString != null && !webhookKeyString.isEmpty())
            sb.append(String.format("  webhookKey: %s\n", webhookKeyString));
        String stateString = JsonUtil.Stringify(state);
        if (stateString != null && !stateString.isEmpty())
            sb.append(String.format("  state: %s\n", stateString));
        sb.append("}\n");
        return sb.toString();
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy