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

package com.azure.resourcemanager.devtestlabs.models;

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

/** The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). */
public final class PolicyEvaluatorType extends ExpandableStringEnum<PolicyEvaluatorType> {
    /** Static value AllowedValuesPolicy for PolicyEvaluatorType. */
    public static final PolicyEvaluatorType ALLOWED_VALUES_POLICY = fromString("AllowedValuesPolicy");

    /** Static value MaxValuePolicy for PolicyEvaluatorType. */
    public static final PolicyEvaluatorType MAX_VALUE_POLICY = fromString("MaxValuePolicy");

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

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

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