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

package com.azure.resourcemanager.networkcloud.models;

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

/** The more detailed status of the virtual machine. */
public final class VirtualMachineDetailedStatus extends ExpandableStringEnum<VirtualMachineDetailedStatus> {
    /** Static value Available for VirtualMachineDetailedStatus. */
    public static final VirtualMachineDetailedStatus AVAILABLE = fromString("Available");

    /** Static value Error for VirtualMachineDetailedStatus. */
    public static final VirtualMachineDetailedStatus ERROR = fromString("Error");

    /** Static value Provisioning for VirtualMachineDetailedStatus. */
    public static final VirtualMachineDetailedStatus PROVISIONING = fromString("Provisioning");

    /** Static value Running for VirtualMachineDetailedStatus. */
    public static final VirtualMachineDetailedStatus RUNNING = fromString("Running");

    /** Static value Scheduling for VirtualMachineDetailedStatus. */
    public static final VirtualMachineDetailedStatus SCHEDULING = fromString("Scheduling");

    /** Static value Stopped for VirtualMachineDetailedStatus. */
    public static final VirtualMachineDetailedStatus STOPPED = fromString("Stopped");

    /** Static value Terminating for VirtualMachineDetailedStatus. */
    public static final VirtualMachineDetailedStatus TERMINATING = fromString("Terminating");

    /** Static value Unknown for VirtualMachineDetailedStatus. */
    public static final VirtualMachineDetailedStatus UNKNOWN = fromString("Unknown");

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

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

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