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

    /** Static value monthly for Datagrain. */
    public static final Datagrain MONTHLY = fromString("monthly");

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

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