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

/** Indicates whether auto renewal is turned on or off for a product. */
public final class AutoRenew extends ExpandableStringEnum<AutoRenew> {
    /** Static value Off for AutoRenew. */
    public static final AutoRenew OFF = fromString("Off");

    /** Static value On for AutoRenew. */
    public static final AutoRenew ON = fromString("On");

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

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

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