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

package com.azure.resourcemanager.workloads.models;

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

/** Defines the SAP Instance status. */
public final class SapVirtualInstanceStatus extends ExpandableStringEnum<SapVirtualInstanceStatus> {
    /** Static value Starting for SapVirtualInstanceStatus. */
    public static final SapVirtualInstanceStatus STARTING = fromString("Starting");

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

    /** Static value Stopping for SapVirtualInstanceStatus. */
    public static final SapVirtualInstanceStatus STOPPING = fromString("Stopping");

    /** Static value Offline for SapVirtualInstanceStatus. */
    public static final SapVirtualInstanceStatus OFFLINE = fromString("Offline");

    /** Static value PartiallyRunning for SapVirtualInstanceStatus. */
    public static final SapVirtualInstanceStatus PARTIALLY_RUNNING = fromString("PartiallyRunning");

    /** Static value Unavailable for SapVirtualInstanceStatus. */
    public static final SapVirtualInstanceStatus UNAVAILABLE = fromString("Unavailable");

    /** Static value SoftShutdown for SapVirtualInstanceStatus. */
    public static final SapVirtualInstanceStatus SOFT_SHUTDOWN = fromString("SoftShutdown");

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

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

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