<?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 DiskEncryptionAlgorithm
 * The logical disk encryption algorithm.
 */
final class DiskEncryptionAlgorithmEnum implements EnumInterface
{
    public const NONE = 'NONE';
    public const AES_128_WITH_DIFFUSER = 'AES_128_WITH_DIFFUSER';
    public const AES_256_WITH_DIFFUSER = 'AES_256_WITH_DIFFUSER';
    public const AES_128 = 'AES_128';
    public const AES_256 = 'AES_256';
    public const HARDWARE_ENCRYPTION = 'HARDWARE_ENCRYPTION';
    public const XTS_AES_128 = 'XTS_AES_128';
    public const XTS_AES_256 = 'XTS_AES_256';
    public string $value;
    private static array $map = [
        self::NONE => true,
        self::AES_128_WITH_DIFFUSER => true,
        self::AES_256_WITH_DIFFUSER => true,
        self::AES_128 => true,
        self::AES_256 => true,
        self::HARDWARE_ENCRYPTION => true,
        self::XTS_AES_128 => true,
        self::XTS_AES_256 => 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;
    }
}