<?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 RdsStateClassType
 * The Rds Database Service status
 */
final class RdsStateClassTypeEnum implements EnumInterface
{
    public const CREATING = 'CREATING';
    public const AVAILABLE = 'AVAILABLE';
    public const STOPPING = 'STOPPING';
    public const BACKING_UP = 'BACKING_UP';
    public const MODIFYING = 'MODIFYING';
    public const RENAMING = 'RENAMING';
    public const REBOOTING = 'REBOOTING';
    public const STOPPED = 'STOPPED';
    public const DELETING = 'DELETING';
    public const TERMINATED = 'TERMINATED';
    public string $value;
    private static array $map = [
        self::CREATING => true,
        self::AVAILABLE => true,
        self::STOPPING => true,
        self::BACKING_UP => true,
        self::MODIFYING => true,
        self::RENAMING => true,
        self::REBOOTING => true,
        self::STOPPED => true,
        self::DELETING => true,
        self::TERMINATED => 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;
    }
}