<?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 SecurityDescriptorControlFlags
 * Windows security descriptor flags
 */
final class SecurityDescriptorControlFlagsEnum implements EnumInterface
{
    public const SE_OWNER_DEFAULTED = 'SE_OWNER_DEFAULTED';
    public const SE_GROUP_DEFAULTED = 'SE_GROUP_DEFAULTED';
    public const SE_DACL_PRESENT = 'SE_DACL_PRESENT';
    public const SE_DACL_DEFAULTED = 'SE_DACL_DEFAULTED';
    public const SE_SACL_PRESENT = 'SE_SACL_PRESENT';
    public const SE_SACL_DEFAULTED = 'SE_SACL_DEFAULTED';
    public const SE_DACL_AUTO_INHERIT_REQ = 'SE_DACL_AUTO_INHERIT_REQ';
    public const SE_SACL_AUTO_INHERIT_REQ = 'SE_SACL_AUTO_INHERIT_REQ';
    public const SE_DACL_AUTO_INHERITED = 'SE_DACL_AUTO_INHERITED';
    public const SE_SACL_AUTO_INHERITED = 'SE_SACL_AUTO_INHERITED';
    public const SE_DACL_PROTECTED = 'SE_DACL_PROTECTED';
    public const SE_SACL_PROTECTED = 'SE_SACL_PROTECTED';
    public const SE_SELF_RELATIVE = 'SE_SELF_RELATIVE';
    public string $value;
    private static array $map = [
        self::SE_OWNER_DEFAULTED => true,
        self::SE_GROUP_DEFAULTED => true,
        self::SE_DACL_PRESENT => true,
        self::SE_DACL_DEFAULTED => true,
        self::SE_SACL_PRESENT => true,
        self::SE_SACL_DEFAULTED => true,
        self::SE_DACL_AUTO_INHERIT_REQ => true,
        self::SE_SACL_AUTO_INHERIT_REQ => true,
        self::SE_DACL_AUTO_INHERITED => true,
        self::SE_SACL_AUTO_INHERITED => true,
        self::SE_DACL_PROTECTED => true,
        self::SE_SACL_PROTECTED => true,
        self::SE_SELF_RELATIVE => 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;
    }
}