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

package com.azure.resourcemanager.networkcloud.models;

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

/** The latest heartbeat status between the cluster manager and the cluster. */
public final class ClusterConnectionStatus extends ExpandableStringEnum<ClusterConnectionStatus> {
    /** Static value Connected for ClusterConnectionStatus. */
    public static final ClusterConnectionStatus CONNECTED = fromString("Connected");

    /** Static value Timeout for ClusterConnectionStatus. */
    public static final ClusterConnectionStatus TIMEOUT = fromString("Timeout");

    /** Static value Undefined for ClusterConnectionStatus. */
    public static final ClusterConnectionStatus UNDEFINED = fromString("Undefined");

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

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

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