// 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;

/** Identifies the state of an invoice section. */
public final class InvoiceSectionState extends ExpandableStringEnum<InvoiceSectionState> {
    /** Static value Active for InvoiceSectionState. */
    public static final InvoiceSectionState ACTIVE = fromString("Active");

    /** Static value Restricted for InvoiceSectionState. */
    public static final InvoiceSectionState RESTRICTED = fromString("Restricted");

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

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

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