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

package com.azure.resourcemanager.reservations.models;

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

/** Represent the billing plans. */
public final class ReservationBillingPlan extends ExpandableStringEnum<ReservationBillingPlan> {
    /** Static value Upfront for ReservationBillingPlan. */
    public static final ReservationBillingPlan UPFRONT = fromString("Upfront");

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

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

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

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