// 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 SpatialAnalysisPersonZoneCrossingZoneEvents model. */
@Fluent
public final class SpatialAnalysisPersonZoneCrossingZoneEvents {
    /*
     * The named zone.
     */
    @JsonProperty(value = "zone", required = true)
    private NamedPolygonBase zone;

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

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

    /**
     * Get the zone property: The named zone.
     *
     * @return the zone value.
     */
    public NamedPolygonBase getZone() {
        return this.zone;
    }

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

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