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

package com.azure.resourcemanager.providerhub.models;

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

/** Defines values for ThrottlingMetricType. */
public final class ThrottlingMetricType extends ExpandableStringEnum<ThrottlingMetricType> {
    /** Static value NotSpecified for ThrottlingMetricType. */
    public static final ThrottlingMetricType NOT_SPECIFIED = fromString("NotSpecified");

    /** Static value NumberOfRequests for ThrottlingMetricType. */
    public static final ThrottlingMetricType NUMBER_OF_REQUESTS = fromString("NumberOfRequests");

    /** Static value NumberOfResources for ThrottlingMetricType. */
    public static final ThrottlingMetricType NUMBER_OF_RESOURCES = fromString("NumberOfResources");

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

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

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