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

package com.azure.resourcemanager.dataprotection.models;

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

/** Defines values for WeekNumber. */
public final class WeekNumber extends ExpandableStringEnum<WeekNumber> {
    /** Static value First for WeekNumber. */
    public static final WeekNumber FIRST = fromString("First");

    /** Static value Fourth for WeekNumber. */
    public static final WeekNumber FOURTH = fromString("Fourth");

    /** Static value Last for WeekNumber. */
    public static final WeekNumber LAST = fromString("Last");

    /** Static value Second for WeekNumber. */
    public static final WeekNumber SECOND = fromString("Second");

    /** Static value Third for WeekNumber. */
    public static final WeekNumber THIRD = fromString("Third");

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

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

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