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

package com.azure.resourcemanager.dynatrace.models;

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

/** The availability state of OneAgent. */
public final class AvailabilityState extends ExpandableStringEnum<AvailabilityState> {
    /** Static value CRASHED for AvailabilityState. */
    public static final AvailabilityState CRASHED = fromString("CRASHED");

    /** Static value LOST for AvailabilityState. */
    public static final AvailabilityState LOST = fromString("LOST");

    /** Static value MONITORED for AvailabilityState. */
    public static final AvailabilityState MONITORED = fromString("MONITORED");

    /** Static value PRE_MONITORED for AvailabilityState. */
    public static final AvailabilityState PRE_MONITORED = fromString("PRE_MONITORED");

    /** Static value SHUTDOWN for AvailabilityState. */
    public static final AvailabilityState SHUTDOWN = fromString("SHUTDOWN");

    /** Static value UNEXPECTED_SHUTDOWN for AvailabilityState. */
    public static final AvailabilityState UNEXPECTED_SHUTDOWN = fromString("UNEXPECTED_SHUTDOWN");

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

    /** Static value UNMONITORED for AvailabilityState. */
    public static final AvailabilityState UNMONITORED = fromString("UNMONITORED");

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

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