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

package com.azure.resourcemanager.recoveryservicesbackup.models;

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

/** Retention schedule format type for monthly retention policy. */
public final class RetentionScheduleFormat extends ExpandableStringEnum<RetentionScheduleFormat> {
    /** Static value Invalid for RetentionScheduleFormat. */
    public static final RetentionScheduleFormat INVALID = fromString("Invalid");

    /** Static value Daily for RetentionScheduleFormat. */
    public static final RetentionScheduleFormat DAILY = fromString("Daily");

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

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

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

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