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

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

    /**
     * Creates an instance of SpatialAnalysisPersonCountZoneEvents class.
     *
     * @param zone the zone value to set.
     */
    @JsonCreator
    public SpatialAnalysisPersonCountZoneEvents(@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<SpatialAnalysisPersonCountEvent> getEvents() {
        return this.events;
    }

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