// 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 connection type of the device. */
public final class DeviceConnectionType extends ExpandableStringEnum<DeviceConnectionType> {
    /** Static value PCI for DeviceConnectionType. */
    public static final DeviceConnectionType PCI = fromString("PCI");

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

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

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