<?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 SnmpV3PrivProtocol
 * The SNMPv3 privacy/encryption protocol
 */
final class SnmpV3PrivProtocolEnum implements EnumInterface
{
    public const None = 'None';
    public const DES = 'DES';
    public const AES128 = 'AES128';
    public const AES192 = 'AES192';
    public const AES256 = 'AES256';
    public const AES256WithDESKey = 'AES256WithDESKey';
    public const AES192WithDESKey = 'AES192WithDESKey';
    public string $value;
    private static array $map = [
        self::None => true,
        self::DES => true,
        self::AES128 => true,
        self::AES192 => true,
        self::AES256 => true,
        self::AES256WithDESKey => true,
        self::AES192WithDESKey => 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;
    }
}