// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.machinelearning.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Primary metrics for Image ObjectDetection task. */
public final class ObjectDetectionPrimaryMetrics extends ExpandableStringEnum<ObjectDetectionPrimaryMetrics> {
    /** Static value MeanAveragePrecision for ObjectDetectionPrimaryMetrics. */
    public static final ObjectDetectionPrimaryMetrics MEAN_AVERAGE_PRECISION = fromString("MeanAveragePrecision");

    /**
     * Creates a new instance of ObjectDetectionPrimaryMetrics value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public ObjectDetectionPrimaryMetrics() {
    }

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

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