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

package com.azure.resourcemanager.consumption.models;

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

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

    /** Static value modern for UsageDetailsKind. */
    public static final UsageDetailsKind MODERN = fromString("modern");

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

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