<?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 SoftwareMeteringFilterField
 * THe software metering filter field
 */
final class SoftwareMeteringFilterFieldEnum implements EnumInterface
{
    public const SESSION_ID_FIELD_NAME = 'SESSION_ID_FIELD_NAME';
    public const NAME_FIELD_NAME = 'NAME_FIELD_NAME';
    public const PATH_FIELD_NAME = 'PATH_FIELD_NAME';
    public const PARAMETERS_FIELD_NAME = 'PARAMETERS_FIELD_NAME';
    public const USERNAME_FIELD_NAME = 'USERNAME_FIELD_NAME';
    public const SID_FIELD_NAME = 'SID_FIELD_NAME';
    public const PRODUCT_NAME_FIELD_NAME = 'PRODUCT_NAME_FIELD_NAME';
    public const MANUFACTURER_FIELD_NAME = 'MANUFACTURER_FIELD_NAME';
    public const VERSION_FIELD_NAME = 'VERSION_FIELD_NAME';
    public const DESCRIPTION_FIELD_NAME = 'DESCRIPTION_FIELD_NAME';
    public const FILE_SIZE_FIELD_NAME = 'FILE_SIZE_FIELD_NAME';
    public string $value;
    private static array $map = [
        self::SESSION_ID_FIELD_NAME => true,
        self::NAME_FIELD_NAME => true,
        self::PATH_FIELD_NAME => true,
        self::PARAMETERS_FIELD_NAME => true,
        self::USERNAME_FIELD_NAME => true,
        self::SID_FIELD_NAME => true,
        self::PRODUCT_NAME_FIELD_NAME => true,
        self::MANUFACTURER_FIELD_NAME => true,
        self::VERSION_FIELD_NAME => true,
        self::DESCRIPTION_FIELD_NAME => true,
        self::FILE_SIZE_FIELD_NAME => 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;
    }
}