<?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 ClusterServiceStatus
 * The Cluster Service Statuses
 */
final class ClusterServiceStatusEnum implements EnumInterface
{
    public const Running = 'Running';
    public const Stopped = 'Stopped';
    public const Joining = 'Joining';
    public const Paused = 'Paused';
    public const Pausing = 'Pausing';
    public const Starting = 'Starting';
    public const Stopping = 'Stopping';
    public const Continuing = 'Continuing';
    public const RunningPartial = 'RunningPartial';
    public const StoppingPartial = 'StoppingPartial';
    public const StartingPartial = 'StartingPartial';
    public const PausingPartial = 'PausingPartial';
    public const StoppedPartial = 'StoppedPartial';
    public const ContinuingPartial = 'ContinuingPartial';
    public const Blocked = 'Blocked';
    public const Failed = 'Failed';
    public const Failing = 'Failing';
    public const FailWait = 'FailWait';
    public const Reconfiguring = 'Reconfiguring';
    public const ReconfigureWait = 'ReconfigureWait';
    public const Maintenance = 'Maintenance';
    public const Changing = 'Changing';
    public const HaltWait = 'HaltWait';
    public const RelocateWait = 'RelocateWait';
    public const Disabled = 'Disabled';
    public const Unknown = 'Unknown';
    public string $value;
    private static array $map = [
        self::Running => true,
        self::Stopped => true,
        self::Joining => true,
        self::Paused => true,
        self::Pausing => true,
        self::Starting => true,
        self::Stopping => true,
        self::Continuing => true,
        self::RunningPartial => true,
        self::StoppingPartial => true,
        self::StartingPartial => true,
        self::PausingPartial => true,
        self::StoppedPartial => true,
        self::ContinuingPartial => true,
        self::Blocked => true,
        self::Failed => true,
        self::Failing => true,
        self::FailWait => true,
        self::Reconfiguring => true,
        self::ReconfigureWait => true,
        self::Maintenance => true,
        self::Changing => true,
        self::HaltWait => true,
        self::RelocateWait => true,
        self::Disabled => true,
        self::Unknown => 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;
    }
}