// 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 type evaluation is applied to the cluster calculation. */
public final class ValidationThresholdGrouping extends ExpandableStringEnum<ValidationThresholdGrouping> {
    /** Static value PerCluster for ValidationThresholdGrouping. */
    public static final ValidationThresholdGrouping PER_CLUSTER = fromString("PerCluster");

    /** Static value PerRack for ValidationThresholdGrouping. */
    public static final ValidationThresholdGrouping PER_RACK = fromString("PerRack");

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

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

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