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

/** The policy that controls whether the users in customer's organization can view charges at pay-as-you-go prices. */
public final class ViewCharges extends ExpandableStringEnum<ViewCharges> {
    /** Static value Allowed for ViewCharges. */
    public static final ViewCharges ALLOWED = fromString("Allowed");

    /** Static value NotAllowed for ViewCharges. */
    public static final ViewCharges NOT_ALLOWED = fromString("NotAllowed");

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

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

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