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

package com.azure.resourcemanager.hybridnetwork.models;

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

/** The type of the device. */
public final class DeviceType extends ExpandableStringEnum<DeviceType> {
    /** Static value Unknown for DeviceType. */
    public static final DeviceType UNKNOWN = fromString("Unknown");

    /** Static value AzureStackEdge for DeviceType. */
    public static final DeviceType AZURE_STACK_EDGE = fromString("AzureStackEdge");

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

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