<?php

declare (strict_types=1);
namespace idoit\Module\SyneticsJdisc\Graphql\Schema\Model;

use Axtiva\FlexibleGraphql\Generator\Exception\UnknownEnumValue;
use Axtiva\FlexibleGraphql\Type\EnumInterface;

/**
 * This code is @generated by axtiva/flexible-graphql-php
 * and will be regenerated. Do not edit it manually
 * PHP representation of graphql enum DiagramEntityId
 * The diagram entity name
 */
final class DiagramEntityIdEnum implements EnumInterface
{
    public const Application = 'Application';
    public const ApplicationInstance = 'ApplicationInstance';
    public const Cluster = 'Cluster';
    public const Device = 'Device';
    public const DiskPartition = 'DiskPartition';
    public const InstalledApplication = 'InstalledApplication';
    public const IP4Network = 'IP4Network';
    public const IP6Network = 'IP6Network';
    public const LogicalDisk = 'LogicalDisk';
    public const ListeningPort = 'ListeningPort';
    public const MemoryModule = 'MemoryModule';
    public const MemoryModuleSlot = 'MemoryModuleSlot';
    public const ModuleSlot = 'ModuleSlot';
    public const NetworkInterface = 'NetworkInterface';
    public const OS = 'OS';
    public const PhysicalDisk = 'PhysicalDisk';
    public const PhysicalDiskSlot = 'PhysicalDiskSlot';
    public const Process = 'Process';
    public const Processor = 'Processor';
    public const ProcessorSlot = 'ProcessorSlot';
    public const VirtualDatacenter = 'VirtualDatacenter';
    public const TestEntityId = 'TestEntityId';
    public string $value;
    private static array $map = [
        self::Application => true,
        self::ApplicationInstance => true,
        self::Cluster => true,
        self::Device => true,
        self::DiskPartition => true,
        self::InstalledApplication => true,
        self::IP4Network => true,
        self::IP6Network => true,
        self::LogicalDisk => true,
        self::ListeningPort => true,
        self::MemoryModule => true,
        self::MemoryModuleSlot => true,
        self::ModuleSlot => true,
        self::NetworkInterface => true,
        self::OS => true,
        self::PhysicalDisk => true,
        self::PhysicalDiskSlot => true,
        self::Process => true,
        self::Processor => true,
        self::ProcessorSlot => true,
        self::VirtualDatacenter => true,
        self::TestEntityId => true,
    ];

    public function __construct($value)
    {
        if (!isset(self::$map[$value])) {
            throw new UnknownEnumValue(__CLASS__, $value);
        }
        $this->value = $value;
    }

    public function __toString(): string
    {
        return $this->value;
    }
}