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

package com.azure.resourcemanager.networkcloud.models;

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

/** Selection of how the threshold should be evaluated. */
public final class ValidationThresholdType extends ExpandableStringEnum<ValidationThresholdType> {
    /** Static value CountSuccess for ValidationThresholdType. */
    public static final ValidationThresholdType COUNT_SUCCESS = fromString("CountSuccess");

    /** Static value PercentSuccess for ValidationThresholdType. */
    public static final ValidationThresholdType PERCENT_SUCCESS = fromString("PercentSuccess");

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

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

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