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

package com.azure.resourcemanager.alertsmanagement.models;

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

/** Specifies when the recurrence should be applied. */
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");

    /**
     * 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);
    }
}
