// 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 connectivity status between cluster manager and the cluster. */
public final class ClusterManagerConnectionStatus extends ExpandableStringEnum<ClusterManagerConnectionStatus> {
    /** Static value Connected for ClusterManagerConnectionStatus. */
    public static final ClusterManagerConnectionStatus CONNECTED = fromString("Connected");

    /** Static value Unreachable for ClusterManagerConnectionStatus. */
    public static final ClusterManagerConnectionStatus UNREACHABLE = fromString("Unreachable");

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

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

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