<?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 DiskStatus
 * The physical disk represents a disk attached to a disk slot.
 */
final class DiskStatusEnum implements EnumInterface
{
    public const Active = 'Active';
    public const HotSpare = 'HotSpare';
    public const Unassigned = 'Unassigned';
    public const Failed = 'Failed';
    public const Spare = 'Spare';
    public const Unknown = 'Unknown';
    public const Inactive = 'Inactive';
    public const Altsig = 'Altsig';
    public const TooSmall = 'TooSmall';
    public const HistoryOfFailures = 'HistoryOfFailures';
    public const UnsupportedVersion = 'UnsupportedVersion';
    public const Degraded = 'Degraded';
    public const Creating = 'Creating';
    public const Deleted = 'Deleted';
    public const Deleting = 'Deleting';
    public const Initialized = 'Initialized';
    public const Damaged = 'Damaged';
    public const Copying = 'Copying';
    public const Recovering = 'Recovering';
    public const Unformatted = 'Unformatted';
    public const New = 'New';
    public const UsedDrive = 'UsedDrive';
    public const Adding = 'Adding';
    public const Absent = 'Absent';
    public string $value;
    private static array $map = [
        self::Active => true,
        self::HotSpare => true,
        self::Unassigned => true,
        self::Failed => true,
        self::Spare => true,
        self::Unknown => true,
        self::Inactive => true,
        self::Altsig => true,
        self::TooSmall => true,
        self::HistoryOfFailures => true,
        self::UnsupportedVersion => true,
        self::Degraded => true,
        self::Creating => true,
        self::Deleted => true,
        self::Deleting => true,
        self::Initialized => true,
        self::Damaged => true,
        self::Copying => true,
        self::Recovering => true,
        self::Unformatted => true,
        self::New => true,
        self::UsedDrive => true,
        self::Adding => true,
        self::Absent => 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;
    }
}