// 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;

/** The SpatialAnalysisPersonLineCrossingLineEvents model. */
@Fluent
public final class SpatialAnalysisPersonLineCrossingLineEvents {
    /*
     * The named line.
     */
    @JsonProperty(value = "line", required = true)
    private NamedLineBase line;

    /*
     * The event configuration.
     */
    @JsonProperty(value = "events")
    private List<SpatialAnalysisPersonLineCrossingEvent> events;

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

    /**
     * Get the line property: The named line.
     *
     * @return the line value.
     */
    public NamedLineBase getLine() {
        return this.line;
    }

    /**
     * Get the events property: The event configuration.
     *
     * @return the events value.
     */
    public List<SpatialAnalysisPersonLineCrossingEvent> getEvents() {
        return this.events;
    }

    /**
     * Set the events property: The event configuration.
     *
     * @param events the events value to set.
     * @return the SpatialAnalysisPersonLineCrossingLineEvents object itself.
     */
    public SpatialAnalysisPersonLineCrossingLineEvents setEvents(List<SpatialAnalysisPersonLineCrossingEvent> events) {
        this.events = events;
        return this;
    }
}
