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

/** Live pipeline properties. */
@Fluent
public final class LivePipelineProperties {
    /*
     * An optional description of the live pipeline.
     */
    @JsonProperty(value = "description")
    private String description;

    /*
     * The reference to an existing pipeline topology defined for real-time
     * content processing. When activated, this live pipeline will process
     * content according to the pipeline topology definition.
     */
    @JsonProperty(value = "topologyName")
    private String topologyName;

    /*
     * List of the instance level parameter values for the user-defined
     * topology parameters. A pipeline can only define or override parameters
     * values for parameters which have been declared in the referenced
     * topology. Topology parameters without a default value must be defined.
     * Topology parameters with a default value can be optionally be
     * overridden.
     */
    @JsonProperty(value = "parameters")
    private List<ParameterDefinition> parameters;

    /*
     * Current pipeline state (read-only).
     */
    @JsonProperty(value = "state")
    private LivePipelineState state;

    /**
     * Get the description property: An optional description of the live pipeline.
     *
     * @return the description value.
     */
    public String getDescription() {
        return this.description;
    }

    /**
     * Set the description property: An optional description of the live pipeline.
     *
     * @param description the description value to set.
     * @return the LivePipelineProperties object itself.
     */
    public LivePipelineProperties setDescription(String description) {
        this.description = description;
        return this;
    }

    /**
     * Get the topologyName property: The reference to an existing pipeline topology defined for real-time content
     * processing. When activated, this live pipeline will process content according to the pipeline topology
     * definition.
     *
     * @return the topologyName value.
     */
    public String getTopologyName() {
        return this.topologyName;
    }

    /**
     * Set the topologyName property: The reference to an existing pipeline topology defined for real-time content
     * processing. When activated, this live pipeline will process content according to the pipeline topology
     * definition.
     *
     * @param topologyName the topologyName value to set.
     * @return the LivePipelineProperties object itself.
     */
    public LivePipelineProperties setTopologyName(String topologyName) {
        this.topologyName = topologyName;
        return this;
    }

    /**
     * Get the parameters property: List of the instance level parameter values for the user-defined topology
     * parameters. A pipeline can only define or override parameters values for parameters which have been declared in
     * the referenced topology. Topology parameters without a default value must be defined. Topology parameters with a
     * default value can be optionally be overridden.
     *
     * @return the parameters value.
     */
    public List<ParameterDefinition> getParameters() {
        return this.parameters;
    }

    /**
     * Set the parameters property: List of the instance level parameter values for the user-defined topology
     * parameters. A pipeline can only define or override parameters values for parameters which have been declared in
     * the referenced topology. Topology parameters without a default value must be defined. Topology parameters with a
     * default value can be optionally be overridden.
     *
     * @param parameters the parameters value to set.
     * @return the LivePipelineProperties object itself.
     */
    public LivePipelineProperties setParameters(List<ParameterDefinition> parameters) {
        this.parameters = parameters;
        return this;
    }

    /**
     * Get the state property: Current pipeline state (read-only).
     *
     * @return the state value.
     */
    public LivePipelineState getState() {
        return this.state;
    }

    /**
     * Set the state property: Current pipeline state (read-only).
     *
     * @param state the state value to set.
     * @return the LivePipelineProperties object itself.
     */
    public LivePipelineProperties setState(LivePipelineState state) {
        this.state = state;
        return this;
    }
}
