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

package com.azure.resourcemanager.costmanagement.models;

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

/** Status of the scheduled action. */
public final class ScheduledActionStatus extends ExpandableStringEnum<ScheduledActionStatus> {
    /** Static value Disabled for ScheduledActionStatus. */
    public static final ScheduledActionStatus DISABLED = fromString("Disabled");

    /** Static value Enabled for ScheduledActionStatus. */
    public static final ScheduledActionStatus ENABLED = fromString("Enabled");

    /** Static value Expired for ScheduledActionStatus. */
    public static final ScheduledActionStatus EXPIRED = fromString("Expired");

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

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

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