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

package com.azure.resourcemanager.recoveryservicesbackup.models;

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

/** Resource Health Status. */
public final class ResourceHealthStatus extends ExpandableStringEnum<ResourceHealthStatus> {
    /** Static value Healthy for ResourceHealthStatus. */
    public static final ResourceHealthStatus HEALTHY = fromString("Healthy");

    /** Static value TransientDegraded for ResourceHealthStatus. */
    public static final ResourceHealthStatus TRANSIENT_DEGRADED = fromString("TransientDegraded");

    /** Static value PersistentDegraded for ResourceHealthStatus. */
    public static final ResourceHealthStatus PERSISTENT_DEGRADED = fromString("PersistentDegraded");

    /** Static value TransientUnhealthy for ResourceHealthStatus. */
    public static final ResourceHealthStatus TRANSIENT_UNHEALTHY = fromString("TransientUnhealthy");

    /** Static value PersistentUnhealthy for ResourceHealthStatus. */
    public static final ResourceHealthStatus PERSISTENT_UNHEALTHY = fromString("PersistentUnhealthy");

    /** Static value Invalid for ResourceHealthStatus. */
    public static final ResourceHealthStatus INVALID = fromString("Invalid");

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

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

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