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

package com.azure.resourcemanager.servicefabric.models;

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

/**
 * Determines the metric weight relative to the other metrics that are configured for this service. During runtime, if
 * two metrics end up in conflict, the Cluster Resource Manager prefers the metric with the higher weight.
 */
public final class ServiceLoadMetricWeight extends ExpandableStringEnum<ServiceLoadMetricWeight> {
    /** Static value Zero for ServiceLoadMetricWeight. */
    public static final ServiceLoadMetricWeight ZERO = fromString("Zero");

    /** Static value Low for ServiceLoadMetricWeight. */
    public static final ServiceLoadMetricWeight LOW = fromString("Low");

    /** Static value Medium for ServiceLoadMetricWeight. */
    public static final ServiceLoadMetricWeight MEDIUM = fromString("Medium");

    /** Static value High for ServiceLoadMetricWeight. */
    public static final ServiceLoadMetricWeight HIGH = fromString("High");

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

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

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