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

package com.azure.resourcemanager.avs.models;

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

/** The connection status of the global reach connection. */
public final class GlobalReachConnectionStatus extends ExpandableStringEnum<GlobalReachConnectionStatus> {
    /** Static value Connected for GlobalReachConnectionStatus. */
    public static final GlobalReachConnectionStatus CONNECTED = fromString("Connected");

    /** Static value Connecting for GlobalReachConnectionStatus. */
    public static final GlobalReachConnectionStatus CONNECTING = fromString("Connecting");

    /** Static value Disconnected for GlobalReachConnectionStatus. */
    public static final GlobalReachConnectionStatus DISCONNECTED = fromString("Disconnected");

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

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

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