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

package com.azure.resourcemanager.machinelearning.models;

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

/**
 * Billing currency
 *
 * <p>Three lettered code specifying the currency of the VM price. Example: USD.
 */
public final class BillingCurrency extends ExpandableStringEnum<BillingCurrency> {
    /** Static value USD for BillingCurrency. */
    public static final BillingCurrency USD = fromString("USD");

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

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

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