// 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 com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.List;

/**
 * Defines a Spatial Analysis person count operation. This requires the Azure Cognitive Services Spatial analysis module
 * to be deployed alongside the Video Analyzer module, please see https://aka.ms/ava-spatial-analysis for more
 * information.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type")
@JsonTypeName("#Microsoft.VideoAnalyzer.SpatialAnalysisPersonCountOperation")
@Fluent
public final class SpatialAnalysisPersonCountOperation extends SpatialAnalysisTypedOperationBase {
    /*
     * The list of zones and optional events.
     */
    @JsonProperty(value = "zones", required = true)
    private List<SpatialAnalysisPersonCountZoneEvents> zones;

    /**
     * Creates an instance of SpatialAnalysisPersonCountOperation class.
     *
     * @param zones the zones value to set.
     */
    @JsonCreator
    public SpatialAnalysisPersonCountOperation(
            @JsonProperty(value = "zones", required = true) List<SpatialAnalysisPersonCountZoneEvents> zones) {
        this.zones = zones;
    }

    /**
     * Get the zones property: The list of zones and optional events.
     *
     * @return the zones value.
     */
    public List<SpatialAnalysisPersonCountZoneEvents> getZones() {
        return this.zones;
    }

    /** {@inheritDoc} */
    @Override
    public SpatialAnalysisPersonCountOperation setDebug(String debug) {
        super.setDebug(debug);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public SpatialAnalysisPersonCountOperation setCalibrationConfiguration(String calibrationConfiguration) {
        super.setCalibrationConfiguration(calibrationConfiguration);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public SpatialAnalysisPersonCountOperation setCameraConfiguration(String cameraConfiguration) {
        super.setCameraConfiguration(cameraConfiguration);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public SpatialAnalysisPersonCountOperation setCameraCalibratorNodeConfiguration(
            String cameraCalibratorNodeConfiguration) {
        super.setCameraCalibratorNodeConfiguration(cameraCalibratorNodeConfiguration);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public SpatialAnalysisPersonCountOperation setDetectorNodeConfiguration(String detectorNodeConfiguration) {
        super.setDetectorNodeConfiguration(detectorNodeConfiguration);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public SpatialAnalysisPersonCountOperation setTrackerNodeConfiguration(String trackerNodeConfiguration) {
        super.setTrackerNodeConfiguration(trackerNodeConfiguration);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public SpatialAnalysisPersonCountOperation setEnableFaceMaskClassifier(String enableFaceMaskClassifier) {
        super.setEnableFaceMaskClassifier(enableFaceMaskClassifier);
        return this;
    }
}
