// 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 EmailHookInfo model. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "hookType")
@JsonTypeName("Email")
@Fluent
public final class EmailHookInfo extends HookInfo {
    /*
     * The hookParameter property.
     */
    @JsonProperty(value = "hookParameter", required = true)
    private EmailHookParameter hookParameter;

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

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

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

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

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

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

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