// 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 CategoryType. */
public final class CategoryType extends ExpandableStringEnum<CategoryType> {
    /** Static value Cost for CategoryType. */
    public static final CategoryType COST = fromString("Cost");

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

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