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

package com.azure.resourcemanager.billing.models;

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

/** Invoice type. */
public final class InvoiceType extends ExpandableStringEnum<InvoiceType> {
    /** Static value AzureService for InvoiceType. */
    public static final InvoiceType AZURE_SERVICE = fromString("AzureService");

    /** Static value AzureMarketplace for InvoiceType. */
    public static final InvoiceType AZURE_MARKETPLACE = fromString("AzureMarketplace");

    /** Static value AzureSupport for InvoiceType. */
    public static final InvoiceType AZURE_SUPPORT = fromString("AzureSupport");

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

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

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