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

package com.azure.resourcemanager.machinelearning.models;

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

/** Defines values for ScheduleProvisioningStatus. */
public final class ScheduleProvisioningStatus extends ExpandableStringEnum<ScheduleProvisioningStatus> {
    /** Static value Creating for ScheduleProvisioningStatus. */
    public static final ScheduleProvisioningStatus CREATING = fromString("Creating");

    /** Static value Updating for ScheduleProvisioningStatus. */
    public static final ScheduleProvisioningStatus UPDATING = fromString("Updating");

    /** Static value Deleting for ScheduleProvisioningStatus. */
    public static final ScheduleProvisioningStatus DELETING = fromString("Deleting");

    /** Static value Succeeded for ScheduleProvisioningStatus. */
    public static final ScheduleProvisioningStatus SUCCEEDED = fromString("Succeeded");

    /** Static value Failed for ScheduleProvisioningStatus. */
    public static final ScheduleProvisioningStatus FAILED = fromString("Failed");

    /** Static value Canceled for ScheduleProvisioningStatus. */
    public static final ScheduleProvisioningStatus CANCELED = fromString("Canceled");

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

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

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