<?php

declare (strict_types=1);
namespace idoit\Module\JDisc\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 Device = 'Device';
    public const Cluster = 'Cluster';
    public const DiskPartition = 'DiskPartition';
    public const InstalledApplication = 'InstalledApplication';
    public const IP4Network = 'IP4Network';
    public const IP6Network = 'IP6Network';
    public const ModuleSlot = 'ModuleSlot';
    public const MemoryModule = 'MemoryModule';
    public const MemoryModuleSlot = 'MemoryModuleSlot';
    public const OS = 'OS';
    public const PhysicalDiskSlot = 'PhysicalDiskSlot';
    public const PhysicalDisk = 'PhysicalDisk';
    public const LogicalDisk = 'LogicalDisk';
    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::Device => true,
        self::Cluster => true,
        self::DiskPartition => true,
        self::InstalledApplication => true,
        self::IP4Network => true,
        self::IP6Network => true,
        self::ModuleSlot => true,
        self::MemoryModule => true,
        self::MemoryModuleSlot => true,
        self::OS => true,
        self::PhysicalDiskSlot => true,
        self::PhysicalDisk => true,
        self::LogicalDisk => 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;
    }
}