// 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 java.util.List;

/** Describes an input signal to be used on a pipeline node. */
@Fluent
public final class NodeInput {
    /*
     * The name of the upstream node in the pipeline which output is used as
     * input of the current node.
     */
    @JsonProperty(value = "nodeName", required = true)
    private String nodeName;

    /*
     * Allows for the selection of specific data streams (eg. video only) from
     * another node.
     */
    @JsonProperty(value = "outputSelectors")
    private List<OutputSelector> outputSelectors;

    /**
     * Creates an instance of NodeInput class.
     *
     * @param nodeName the nodeName value to set.
     */
    @JsonCreator
    public NodeInput(@JsonProperty(value = "nodeName", required = true) String nodeName) {
        this.nodeName = nodeName;
    }

    /**
     * Get the nodeName property: The name of the upstream node in the pipeline which output is used as input of the
     * current node.
     *
     * @return the nodeName value.
     */
    public String getNodeName() {
        return this.nodeName;
    }

    /**
     * Get the outputSelectors property: Allows for the selection of specific data streams (eg. video only) from another
     * node.
     *
     * @return the outputSelectors value.
     */
    public List<OutputSelector> getOutputSelectors() {
        return this.outputSelectors;
    }

    /**
     * Set the outputSelectors property: Allows for the selection of specific data streams (eg. video only) from another
     * node.
     *
     * @param outputSelectors the outputSelectors value to set.
     * @return the NodeInput object itself.
     */
    public NodeInput setOutputSelectors(List<OutputSelector> outputSelectors) {
        this.outputSelectors = outputSelectors;
        return this;
    }
}
