// 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 YEARLY/MONTHLY. */
public final class BillingCycle extends ExpandableStringEnum<BillingCycle> {
    /** Static value YEARLY for BillingCycle. */
    public static final BillingCycle YEARLY = fromString("YEARLY");

    /** Static value MONTHLY for BillingCycle. */
    public static final BillingCycle MONTHLY = fromString("MONTHLY");

    /** Static value WEEKLY for BillingCycle. */
    public static final BillingCycle WEEKLY = fromString("WEEKLY");

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

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

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