<?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 DeviceDeletionReason
 * The reason why devices have been deleted
 */
final class DeviceDeletionReasonEnum implements EnumInterface
{
    public const DeviceMerge = 'DeviceMerge';
    public const ManualDeletion = 'ManualDeletion';
    public const AgingOut = 'AgingOut';
    public const DeleteAttachedDevice = 'DeleteAttachedDevice';
    public const DeleteManagedDevice = 'DeleteManagedDevice';
    public const DeleteManagedVM = 'DeleteManagedVM';
    public const DeleteSameIP = 'DeleteSameIP';
    public const DeviceDoesntExistAnymore = 'DeviceDoesntExistAnymore';
    public const RelatedDatacenterDeleted = 'RelatedDatacenterDeleted';
    public const DeleteStackedSwitch = 'DeleteStackedSwitch';
    public const DeletedHostingCluster = 'DeletedHostingCluster';
    public const DeleteClusterMemberDevice = 'DeleteClusterMemberDevice';
    public string $value;
    private static array $map = [
        self::DeviceMerge => true,
        self::ManualDeletion => true,
        self::AgingOut => true,
        self::DeleteAttachedDevice => true,
        self::DeleteManagedDevice => true,
        self::DeleteManagedVM => true,
        self::DeleteSameIP => true,
        self::DeviceDoesntExistAnymore => true,
        self::RelatedDatacenterDeleted => true,
        self::DeleteStackedSwitch => true,
        self::DeletedHostingCluster => true,
        self::DeleteClusterMemberDevice => 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;
    }
}