<?php

declare(strict_types=1);

namespace AmazonPHP\SellingPartner\Model\Services;

/**
 * Selling Partner API for Services.
 *
 * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
 *
 * The version of the OpenAPI document: v1
 *
 * This class was auto-generated by https://openapi-generator.tech
 * Do not change it, it will be overwritten with next execution of /bin/generate.sh
 */
class CapacityType
{
    /**
     * Possible values of this enum.
     */
    final public const SCHEDULED_CAPACITY = 'SCHEDULED_CAPACITY';

    final public const AVAILABLE_CAPACITY = 'AVAILABLE_CAPACITY';

    final public const ENCUMBERED_CAPACITY = 'ENCUMBERED_CAPACITY';

    final public const RESERVED_CAPACITY = 'RESERVED_CAPACITY';

    public function __construct(private readonly string $value)
    {
    }

    /**
     * Gets allowable values of the enum.
     *
     * @return string[]
     */
    public static function getAllowableEnumValues() : array
    {
        return [
            self::SCHEDULED_CAPACITY,
            self::AVAILABLE_CAPACITY,
            self::ENCUMBERED_CAPACITY,
            self::RESERVED_CAPACITY,
        ];
    }

    public function toString() : string
    {
        return $this->value;
    }
}
