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

package com.azure.resourcemanager.network.models;

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

/** Health of backend server. */
public final class ApplicationGatewayBackendHealthServerHealth
    extends ExpandableStringEnum<ApplicationGatewayBackendHealthServerHealth> {
    /** Static value Unknown for ApplicationGatewayBackendHealthServerHealth. */
    public static final ApplicationGatewayBackendHealthServerHealth UNKNOWN = fromString("Unknown");

    /** Static value Up for ApplicationGatewayBackendHealthServerHealth. */
    public static final ApplicationGatewayBackendHealthServerHealth UP = fromString("Up");

    /** Static value Down for ApplicationGatewayBackendHealthServerHealth. */
    public static final ApplicationGatewayBackendHealthServerHealth DOWN = fromString("Down");

    /** Static value Partial for ApplicationGatewayBackendHealthServerHealth. */
    public static final ApplicationGatewayBackendHealthServerHealth PARTIAL = fromString("Partial");

    /** Static value Draining for ApplicationGatewayBackendHealthServerHealth. */
    public static final ApplicationGatewayBackendHealthServerHealth DRAINING = fromString("Draining");

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

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

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