<?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 CloudType
 * CloudType
 */
final class CloudTypeEnum implements EnumInterface
{
    public const MSDN = 'MSDN';
    public const AppleICloud = 'AppleICloud';
    public const Teamviewer = 'Teamviewer';
    public const Azure = 'Azure';
    public const AmazonAWS = 'AmazonAWS';
    public const CiscoMeraki = 'CiscoMeraki';
    public const Hetzner = 'Hetzner';
    public const AdobeCreativeCloud = 'AdobeCreativeCloud';
    public const GoogleCloudPlatform = 'GoogleCloudPlatform';
    public const CloudFoundry = 'CloudFoundry';
    public const SOTI_MobiControl = 'SOTI_MobiControl';
    public string $value;
    private static array $map = [
        self::MSDN => true,
        self::AppleICloud => true,
        self::Teamviewer => true,
        self::Azure => true,
        self::AmazonAWS => true,
        self::CiscoMeraki => true,
        self::Hetzner => true,
        self::AdobeCreativeCloud => true,
        self::GoogleCloudPlatform => true,
        self::CloudFoundry => true,
        self::SOTI_MobiControl => 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;
    }
}