<?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 SnmpV3AuthProtocol
 * The SNMPv3 authentication protocol
 */
final class SnmpV3AuthProtocolEnum implements EnumInterface
{
    public const None = 'None';
    public const SHA = 'SHA';
    public const MD5 = 'MD5';
    public const HMAC128SHA224 = 'HMAC128SHA224';
    public const HMAC192SHA256 = 'HMAC192SHA256';
    public const HMAC256SHA384 = 'HMAC256SHA384';
    public const HMAC384SHA512 = 'HMAC384SHA512';
    public string $value;
    private static array $map = [
        self::None => true,
        self::SHA => true,
        self::MD5 => true,
        self::HMAC128SHA224 => true,
        self::HMAC192SHA256 => true,
        self::HMAC256SHA384 => true,
        self::HMAC384SHA512 => 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;
    }
}