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

package com.azure.resourcemanager.automation.models;

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

/** Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday. */
public final class ScheduleDay extends ExpandableStringEnum<ScheduleDay> {
    /** Static value Monday for ScheduleDay. */
    public static final ScheduleDay MONDAY = fromString("Monday");

    /** Static value Tuesday for ScheduleDay. */
    public static final ScheduleDay TUESDAY = fromString("Tuesday");

    /** Static value Wednesday for ScheduleDay. */
    public static final ScheduleDay WEDNESDAY = fromString("Wednesday");

    /** Static value Thursday for ScheduleDay. */
    public static final ScheduleDay THURSDAY = fromString("Thursday");

    /** Static value Friday for ScheduleDay. */
    public static final ScheduleDay FRIDAY = fromString("Friday");

    /** Static value Saturday for ScheduleDay. */
    public static final ScheduleDay SATURDAY = fromString("Saturday");

    /** Static value Sunday for ScheduleDay. */
    public static final ScheduleDay SUNDAY = fromString("Sunday");

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

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