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

package com.azure.resourcemanager.elasticsan.models;

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

/** Operational status of the resource. */
public final class OperationalStatus extends ExpandableStringEnum<OperationalStatus> {
    /** Static value Invalid for OperationalStatus. */
    public static final OperationalStatus INVALID = fromString("Invalid");

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

    /** Static value Healthy for OperationalStatus. */
    public static final OperationalStatus HEALTHY = fromString("Healthy");

    /** Static value Unhealthy for OperationalStatus. */
    public static final OperationalStatus UNHEALTHY = fromString("Unhealthy");

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

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

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

    /** Static value Stopped (deallocated) for OperationalStatus. */
    public static final OperationalStatus STOPPED_DEALLOCATED = fromString("Stopped (deallocated)");

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

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