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

package com.azure.resourcemanager.monitor.models;

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

/** Defines values for ScaleRuleMetricDimensionOperationType. */
public final class ScaleRuleMetricDimensionOperationType
    extends ExpandableStringEnum<ScaleRuleMetricDimensionOperationType> {
    /** Static value Equals for ScaleRuleMetricDimensionOperationType. */
    public static final ScaleRuleMetricDimensionOperationType EQUALS = fromString("Equals");

    /** Static value NotEquals for ScaleRuleMetricDimensionOperationType. */
    public static final ScaleRuleMetricDimensionOperationType NOT_EQUALS = fromString("NotEquals");

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

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