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

package com.azure.resourcemanager.databoxedge.models;

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

/** Current status of the container. */
public final class ContainerStatus extends ExpandableStringEnum<ContainerStatus> {
    /** Static value OK for ContainerStatus. */
    public static final ContainerStatus OK = fromString("OK");

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

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

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

    /** Static value NeedsAttention for ContainerStatus. */
    public static final ContainerStatus NEEDS_ATTENTION = fromString("NeedsAttention");

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

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

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