<?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 MeasureEventType
 * The Measure Event Types
 */
final class MeasureEventTypeEnum implements EnumInterface
{
    public const UNKNOWN = 'UNKNOWN';
    public const AUDIT_TRAIL = 'AUDIT_TRAIL';
    public const ATTRIBUTE = 'ATTRIBUTE';
    public const INSTRUMENTATION_STARTED = 'INSTRUMENTATION_STARTED';
    public const INSTRUMENTATION_FINISHED = 'INSTRUMENTATION_FINISHED';
    public const POLLING_STARTED = 'POLLING_STARTED';
    public const POLLING_FINISHED = 'POLLING_FINISHED';
    public const IMPORT_STARTED = 'IMPORT_STARTED';
    public const IMPORT_FINISHED = 'IMPORT_FINISHED';
    public const POLLING_SCHEDULED = 'POLLING_SCHEDULED';
    public const CLEANUP_STARTED = 'CLEANUP_STARTED';
    public const CLEANUP_FINISHED = 'CLEANUP_FINISHED';
    public const RESUMPTION_STARTED = 'RESUMPTION_STARTED';
    public const RESUMPTION_FINISHED = 'RESUMPTION_FINISHED';
    public const PROVISION_STATUS_UPDATED = 'PROVISION_STATUS_UPDATED';
    public const PROVISION_IMPORTED = 'PROVISION_IMPORTED';
    public const AGING_OUT_FINISHED = 'AGING_OUT_FINISHED';
    public const UPDATE_STARTED = 'UPDATE_STARTED';
    public const UPDATE_FINISHED = 'UPDATE_FINISHED';
    public string $value;
    private static array $map = [
        self::UNKNOWN => true,
        self::AUDIT_TRAIL => true,
        self::ATTRIBUTE => true,
        self::INSTRUMENTATION_STARTED => true,
        self::INSTRUMENTATION_FINISHED => true,
        self::POLLING_STARTED => true,
        self::POLLING_FINISHED => true,
        self::IMPORT_STARTED => true,
        self::IMPORT_FINISHED => true,
        self::POLLING_SCHEDULED => true,
        self::CLEANUP_STARTED => true,
        self::CLEANUP_FINISHED => true,
        self::RESUMPTION_STARTED => true,
        self::RESUMPTION_FINISHED => true,
        self::PROVISION_STATUS_UPDATED => true,
        self::PROVISION_IMPORTED => true,
        self::AGING_OUT_FINISHED => true,
        self::UPDATE_STARTED => true,
        self::UPDATE_FINISHED => 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;
    }
}