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

/** Different usage type like PAYG/COMMITTED. */
public final class UsageType extends ExpandableStringEnum<UsageType> {
    /** Static value PAYG for UsageType. */
    public static final UsageType PAYG = fromString("PAYG");

    /** Static value COMMITTED for UsageType. */
    public static final UsageType COMMITTED = fromString("COMMITTED");

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

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

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