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

package com.azure.media.videoanalyzer.edge.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

import java.util.List;

/**
 * HTTP extension processor allows pipeline extension plugins to be connected to the pipeline through over the HTTP
 * protocol. Extension plugins must act as an HTTP server. Please see https://aka.ms/ava-extension-http for details.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type")
@JsonTypeName("#Microsoft.VideoAnalyzer.HttpExtension")
@Fluent
public final class HttpExtension extends ExtensionProcessorBase {
    /**
     * Creates an instance of HttpExtension class.
     *
     * @param name the name value to set.
     * @param inputs the inputs value to set.
     * @param endpoint the endpoint value to set.
     * @param image the image value to set.
     */
    @JsonCreator
    public HttpExtension(
            @JsonProperty(value = "name", required = true) String name,
            @JsonProperty(value = "inputs", required = true) List<NodeInput> inputs,
            @JsonProperty(value = "endpoint", required = true) EndpointBase endpoint,
            @JsonProperty(value = "image", required = true) ImageProperties image) {
        super(name, inputs, endpoint, image);
    }

    /** {@inheritDoc} */
    @Override
    public HttpExtension setSamplingOptions(SamplingOptions samplingOptions) {
        super.setSamplingOptions(samplingOptions);
        return this;
    }
}
