// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.ai.metricsadvisor.implementation.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.List;

/** The WebhookHookInfoPatch model. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "hookType")
@JsonTypeName("Webhook")
@Fluent
public final class WebhookHookInfoPatch extends HookInfoPatch {
    /*
     * The hookParameter property.
     */
    @JsonProperty(value = "hookParameter")
    private WebhookHookParameterPatch hookParameter;

    /** Creates an instance of WebhookHookInfoPatch class. */
    public WebhookHookInfoPatch() {}

    /**
     * Get the hookParameter property: The hookParameter property.
     *
     * @return the hookParameter value.
     */
    public WebhookHookParameterPatch getHookParameter() {
        return this.hookParameter;
    }

    /**
     * Set the hookParameter property: The hookParameter property.
     *
     * @param hookParameter the hookParameter value to set.
     * @return the WebhookHookInfoPatch object itself.
     */
    public WebhookHookInfoPatch setHookParameter(WebhookHookParameterPatch hookParameter) {
        this.hookParameter = hookParameter;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public WebhookHookInfoPatch setHookName(String hookName) {
        super.setHookName(hookName);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public WebhookHookInfoPatch setDescription(String description) {
        super.setDescription(description);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public WebhookHookInfoPatch setExternalLink(String externalLink) {
        super.setExternalLink(externalLink);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public WebhookHookInfoPatch setAdmins(List<String> admins) {
        super.setAdmins(admins);
        return this;
    }
}
