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

package com.azure.resourcemanager.edgeorder.models;

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

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

    /** Static value KGS for WeightMeasurementUnit. */
    public static final WeightMeasurementUnit KGS = fromString("KGS");

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

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