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

package com.azure.resourcemanager.devcenter.models;

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

/** Schedule enable or disable status. Indicates whether the schedule applied to is either enabled or disabled. */
public final class ScheduleEnableStatus extends ExpandableStringEnum<ScheduleEnableStatus> {
    /** Static value Enabled for ScheduleEnableStatus. */
    public static final ScheduleEnableStatus ENABLED = fromString("Enabled");

    /** Static value Disabled for ScheduleEnableStatus. */
    public static final ScheduleEnableStatus DISABLED = fromString("Disabled");

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

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

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