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

package com.azure.resourcemanager.costmanagement.models;

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

/** The schedule recurrence. */
public final class RecurrenceType extends ExpandableStringEnum<RecurrenceType> {
    /** Static value Daily for RecurrenceType. */
    public static final RecurrenceType DAILY = fromString("Daily");

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

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

    /** Static value Annually for RecurrenceType. */
    public static final RecurrenceType ANNUALLY = fromString("Annually");

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

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

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