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

package com.azure.resourcemanager.hybridkubernetes.models;

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

/** Represents the connectivity status of the connected cluster. */
public final class ConnectivityStatus extends ExpandableStringEnum<ConnectivityStatus> {
    /** Static value Connecting for ConnectivityStatus. */
    public static final ConnectivityStatus CONNECTING = fromString("Connecting");

    /** Static value Connected for ConnectivityStatus. */
    public static final ConnectivityStatus CONNECTED = fromString("Connected");

    /** Static value Offline for ConnectivityStatus. */
    public static final ConnectivityStatus OFFLINE = fromString("Offline");

    /** Static value Expired for ConnectivityStatus. */
    public static final ConnectivityStatus EXPIRED = fromString("Expired");

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

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

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