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

package com.azure.resourcemanager.newrelicobservability.models;

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

/** Billing source. */
public final class BillingSource extends ExpandableStringEnum<BillingSource> {
    /** Static value AZURE for BillingSource. */
    public static final BillingSource AZURE = fromString("AZURE");

    /** Static value NEWRELIC for BillingSource. */
    public static final BillingSource NEWRELIC = fromString("NEWRELIC");

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

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

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