// 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.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for SpatialAnalysisPersonCountEventTrigger. */
public final class SpatialAnalysisPersonCountEventTrigger
        extends ExpandableStringEnum<SpatialAnalysisPersonCountEventTrigger> {
    /** Static value event for SpatialAnalysisPersonCountEventTrigger. */
    public static final SpatialAnalysisPersonCountEventTrigger EVENT = fromString("event");

    /** Static value interval for SpatialAnalysisPersonCountEventTrigger. */
    public static final SpatialAnalysisPersonCountEventTrigger INTERVAL = fromString("interval");

    /**
     * Creates or finds a SpatialAnalysisPersonCountEventTrigger from its string representation.
     *
     * @param name a name to look for.
     * @return the corresponding SpatialAnalysisPersonCountEventTrigger.
     */
    @JsonCreator
    public static SpatialAnalysisPersonCountEventTrigger fromString(String name) {
        return fromString(name, SpatialAnalysisPersonCountEventTrigger.class);
    }

    /** @return known SpatialAnalysisPersonCountEventTrigger values. */
    public static Collection<SpatialAnalysisPersonCountEventTrigger> values() {
        return values(SpatialAnalysisPersonCountEventTrigger.class);
    }
}
