<?php

/**
 * GetThrottlingDto.
 *
 * PHP version 7.4
 *
 * @category Class
 *
 * @author   OpenAPI Generator team
 *
 * @see     https://openapi-generator.tech
 */

/**
 * Sync Core.
 *
 * The Sync Core that sends and receives content from all connected sites and services for Content Sync.
 *
 * The version of the OpenAPI document: 1.0
 * Generated by: https://openapi-generator.tech
 * OpenAPI Generator version: 6.4.0
 */

/**
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace EdgeBox\SyncCore\V2\Raw\Model;

use EdgeBox\SyncCore\V2\Raw\ObjectSerializer;

/**
 * GetThrottlingDto Class Doc Comment.
 *
 * @category Class
 *
 * @author   OpenAPI Generator team
 *
 * @see     https://openapi-generator.tech
 *
 * @implements \ArrayAccess<string, mixed>
 */
class GetThrottlingDto implements ModelInterface, \ArrayAccess, \JsonSerializable
{
    public const DISCRIMINATOR = null;

    /**
     * The original name of the model.
     *
     * @var string
     */
    protected static $openAPIModelName = 'GetThrottlingDto';

    /**
     * Array of property to type mappings. Used for (de)serialization.
     *
     * @var string[]
     */
    protected static $openAPITypes = [
        'projectDefaultPerSitePerMinute' => 'float',
        'projectDefaultPerSiteParallel' => 'float',
        'projectPerMinute' => 'float',
        'projectParallel' => 'float',
        'sitePerMinute' => 'float',
        'siteParallel' => 'float',
        'governanceCrawlingProjectPerMinute' => 'float',
        'governanceCrawlingProjectParallel' => 'float',
        'defaultPerSitePerMinute' => 'float',
        'defaultPerSiteParallel' => 'float',
        'appliedSitePerMinute' => 'float',
        'appliedSiteParallel' => 'float',
        'defaultGovernanceCrawlingProjectPerMinute' => 'float',
        'defaultGovernanceCrawlingProjectParallel' => 'float',
        'appliedGovernanceCrawlingProjectPerMinute' => 'float',
        'appliedGovernanceCrawlingProjectParallel' => 'float',
    ];

    /**
     * Array of property to format mappings. Used for (de)serialization.
     *
     * @var string[]
     *
     * @phpstan-var array<string, string|null>
     *
     * @psalm-var array<string, string|null>
     */
    protected static $openAPIFormats = [
        'projectDefaultPerSitePerMinute' => null,
        'projectDefaultPerSiteParallel' => null,
        'projectPerMinute' => null,
        'projectParallel' => null,
        'sitePerMinute' => null,
        'siteParallel' => null,
        'governanceCrawlingProjectPerMinute' => null,
        'governanceCrawlingProjectParallel' => null,
        'defaultPerSitePerMinute' => null,
        'defaultPerSiteParallel' => null,
        'appliedSitePerMinute' => null,
        'appliedSiteParallel' => null,
        'defaultGovernanceCrawlingProjectPerMinute' => null,
        'defaultGovernanceCrawlingProjectParallel' => null,
        'appliedGovernanceCrawlingProjectPerMinute' => null,
        'appliedGovernanceCrawlingProjectParallel' => null,
    ];

    /**
     * Array of nullable properties. Used for (de)serialization.
     *
     * @var bool[]
     */
    protected static array $openAPINullables = [
        'projectDefaultPerSitePerMinute' => true,
        'projectDefaultPerSiteParallel' => true,
        'projectPerMinute' => true,
        'projectParallel' => true,
        'sitePerMinute' => true,
        'siteParallel' => true,
        'governanceCrawlingProjectPerMinute' => true,
        'governanceCrawlingProjectParallel' => true,
        'defaultPerSitePerMinute' => false,
        'defaultPerSiteParallel' => false,
        'appliedSitePerMinute' => false,
        'appliedSiteParallel' => false,
        'defaultGovernanceCrawlingProjectPerMinute' => false,
        'defaultGovernanceCrawlingProjectParallel' => false,
        'appliedGovernanceCrawlingProjectPerMinute' => false,
        'appliedGovernanceCrawlingProjectParallel' => false,
    ];

    /**
     * If a nullable field gets set to null, insert it here.
     *
     * @var bool[]
     */
    protected array $openAPINullablesSetToNull = [];

    /**
     * Array of attributes where the key is the local name,
     * and the value is the original name.
     *
     * @var string[]
     */
    protected static $attributeMap = [
        'projectDefaultPerSitePerMinute' => 'projectDefaultPerSitePerMinute',
        'projectDefaultPerSiteParallel' => 'projectDefaultPerSiteParallel',
        'projectPerMinute' => 'projectPerMinute',
        'projectParallel' => 'projectParallel',
        'sitePerMinute' => 'sitePerMinute',
        'siteParallel' => 'siteParallel',
        'governanceCrawlingProjectPerMinute' => 'governanceCrawlingProjectPerMinute',
        'governanceCrawlingProjectParallel' => 'governanceCrawlingProjectParallel',
        'defaultPerSitePerMinute' => 'defaultPerSitePerMinute',
        'defaultPerSiteParallel' => 'defaultPerSiteParallel',
        'appliedSitePerMinute' => 'appliedSitePerMinute',
        'appliedSiteParallel' => 'appliedSiteParallel',
        'defaultGovernanceCrawlingProjectPerMinute' => 'defaultGovernanceCrawlingProjectPerMinute',
        'defaultGovernanceCrawlingProjectParallel' => 'defaultGovernanceCrawlingProjectParallel',
        'appliedGovernanceCrawlingProjectPerMinute' => 'appliedGovernanceCrawlingProjectPerMinute',
        'appliedGovernanceCrawlingProjectParallel' => 'appliedGovernanceCrawlingProjectParallel',
    ];

    /**
     * Array of attributes to setter functions (for deserialization of responses).
     *
     * @var string[]
     */
    protected static $setters = [
        'projectDefaultPerSitePerMinute' => 'setProjectDefaultPerSitePerMinute',
        'projectDefaultPerSiteParallel' => 'setProjectDefaultPerSiteParallel',
        'projectPerMinute' => 'setProjectPerMinute',
        'projectParallel' => 'setProjectParallel',
        'sitePerMinute' => 'setSitePerMinute',
        'siteParallel' => 'setSiteParallel',
        'governanceCrawlingProjectPerMinute' => 'setGovernanceCrawlingProjectPerMinute',
        'governanceCrawlingProjectParallel' => 'setGovernanceCrawlingProjectParallel',
        'defaultPerSitePerMinute' => 'setDefaultPerSitePerMinute',
        'defaultPerSiteParallel' => 'setDefaultPerSiteParallel',
        'appliedSitePerMinute' => 'setAppliedSitePerMinute',
        'appliedSiteParallel' => 'setAppliedSiteParallel',
        'defaultGovernanceCrawlingProjectPerMinute' => 'setDefaultGovernanceCrawlingProjectPerMinute',
        'defaultGovernanceCrawlingProjectParallel' => 'setDefaultGovernanceCrawlingProjectParallel',
        'appliedGovernanceCrawlingProjectPerMinute' => 'setAppliedGovernanceCrawlingProjectPerMinute',
        'appliedGovernanceCrawlingProjectParallel' => 'setAppliedGovernanceCrawlingProjectParallel',
    ];

    /**
     * Array of attributes to getter functions (for serialization of requests).
     *
     * @var string[]
     */
    protected static $getters = [
        'projectDefaultPerSitePerMinute' => 'getProjectDefaultPerSitePerMinute',
        'projectDefaultPerSiteParallel' => 'getProjectDefaultPerSiteParallel',
        'projectPerMinute' => 'getProjectPerMinute',
        'projectParallel' => 'getProjectParallel',
        'sitePerMinute' => 'getSitePerMinute',
        'siteParallel' => 'getSiteParallel',
        'governanceCrawlingProjectPerMinute' => 'getGovernanceCrawlingProjectPerMinute',
        'governanceCrawlingProjectParallel' => 'getGovernanceCrawlingProjectParallel',
        'defaultPerSitePerMinute' => 'getDefaultPerSitePerMinute',
        'defaultPerSiteParallel' => 'getDefaultPerSiteParallel',
        'appliedSitePerMinute' => 'getAppliedSitePerMinute',
        'appliedSiteParallel' => 'getAppliedSiteParallel',
        'defaultGovernanceCrawlingProjectPerMinute' => 'getDefaultGovernanceCrawlingProjectPerMinute',
        'defaultGovernanceCrawlingProjectParallel' => 'getDefaultGovernanceCrawlingProjectParallel',
        'appliedGovernanceCrawlingProjectPerMinute' => 'getAppliedGovernanceCrawlingProjectPerMinute',
        'appliedGovernanceCrawlingProjectParallel' => 'getAppliedGovernanceCrawlingProjectParallel',
    ];

    /**
     * Associative array for storing property values.
     *
     * @var mixed[]
     */
    protected $container = [];

    /**
     * Constructor.
     *
     * @param mixed[] $data Associated array of property values
     *                      initializing the model
     */
    public function __construct(?array $data = null)
    {
        $this->setIfExists('projectDefaultPerSitePerMinute', $data ?? [], null);
        $this->setIfExists('projectDefaultPerSiteParallel', $data ?? [], null);
        $this->setIfExists('projectPerMinute', $data ?? [], null);
        $this->setIfExists('projectParallel', $data ?? [], null);
        $this->setIfExists('sitePerMinute', $data ?? [], null);
        $this->setIfExists('siteParallel', $data ?? [], null);
        $this->setIfExists('governanceCrawlingProjectPerMinute', $data ?? [], null);
        $this->setIfExists('governanceCrawlingProjectParallel', $data ?? [], null);
        $this->setIfExists('defaultPerSitePerMinute', $data ?? [], null);
        $this->setIfExists('defaultPerSiteParallel', $data ?? [], null);
        $this->setIfExists('appliedSitePerMinute', $data ?? [], null);
        $this->setIfExists('appliedSiteParallel', $data ?? [], null);
        $this->setIfExists('defaultGovernanceCrawlingProjectPerMinute', $data ?? [], null);
        $this->setIfExists('defaultGovernanceCrawlingProjectParallel', $data ?? [], null);
        $this->setIfExists('appliedGovernanceCrawlingProjectPerMinute', $data ?? [], null);
        $this->setIfExists('appliedGovernanceCrawlingProjectParallel', $data ?? [], null);
    }

    /**
     * Gets the string presentation of the object.
     *
     * @return string
     */
    public function __toString()
    {
        return json_encode(
            ObjectSerializer::sanitizeForSerialization($this),
            JSON_PRETTY_PRINT
        );
    }

    /**
     * Array of property to type mappings. Used for (de)serialization.
     *
     * @return array
     */
    public static function openAPITypes()
    {
        return self::$openAPITypes;
    }

    /**
     * Array of property to format mappings. Used for (de)serialization.
     *
     * @return array
     */
    public static function openAPIFormats()
    {
        return self::$openAPIFormats;
    }

    /**
     * Checks if a property is nullable.
     */
    public static function isNullable(string $property): bool
    {
        return self::openAPINullables()[$property] ?? false;
    }

    /**
     * Checks if a nullable property is set to null.
     */
    public function isNullableSetToNull(string $property): bool
    {
        return in_array($property, $this->getOpenAPINullablesSetToNull(), true);
    }

    /**
     * Array of attributes where the key is the local name,
     * and the value is the original name.
     *
     * @return array
     */
    public static function attributeMap()
    {
        return self::$attributeMap;
    }

    /**
     * Array of attributes to setter functions (for deserialization of responses).
     *
     * @return array
     */
    public static function setters()
    {
        return self::$setters;
    }

    /**
     * Array of attributes to getter functions (for serialization of requests).
     *
     * @return array
     */
    public static function getters()
    {
        return self::$getters;
    }

    /**
     * The original name of the model.
     *
     * @return string
     */
    public function getModelName()
    {
        return self::$openAPIModelName;
    }

    /**
     * Show all the invalid properties with reasons.
     *
     * @return array invalid properties with reasons
     */
    public function listInvalidProperties()
    {
        $invalidProperties = [];

        if (null === $this->container['defaultPerSitePerMinute']) {
            $invalidProperties[] = "'defaultPerSitePerMinute' can't be null";
        }
        if (null === $this->container['defaultPerSiteParallel']) {
            $invalidProperties[] = "'defaultPerSiteParallel' can't be null";
        }
        if (null === $this->container['appliedSitePerMinute']) {
            $invalidProperties[] = "'appliedSitePerMinute' can't be null";
        }
        if (null === $this->container['appliedSiteParallel']) {
            $invalidProperties[] = "'appliedSiteParallel' can't be null";
        }
        if (null === $this->container['defaultGovernanceCrawlingProjectPerMinute']) {
            $invalidProperties[] = "'defaultGovernanceCrawlingProjectPerMinute' can't be null";
        }
        if (null === $this->container['defaultGovernanceCrawlingProjectParallel']) {
            $invalidProperties[] = "'defaultGovernanceCrawlingProjectParallel' can't be null";
        }
        if (null === $this->container['appliedGovernanceCrawlingProjectPerMinute']) {
            $invalidProperties[] = "'appliedGovernanceCrawlingProjectPerMinute' can't be null";
        }
        if (null === $this->container['appliedGovernanceCrawlingProjectParallel']) {
            $invalidProperties[] = "'appliedGovernanceCrawlingProjectParallel' can't be null";
        }

        return $invalidProperties;
    }

    /**
     * Validate all the properties in the model
     * return true if all passed.
     *
     * @return bool True if all properties are valid
     */
    public function valid()
    {
        return 0 === count($this->listInvalidProperties());
    }

    /**
     * Gets projectDefaultPerSitePerMinute.
     *
     * @return null|float
     */
    public function getProjectDefaultPerSitePerMinute()
    {
        return $this->container['projectDefaultPerSitePerMinute'];
    }

    /**
     * Sets projectDefaultPerSitePerMinute.
     *
     * @param null|float $projectDefaultPerSitePerMinute projectDefaultPerSitePerMinute
     *
     * @return self
     */
    public function setProjectDefaultPerSitePerMinute($projectDefaultPerSitePerMinute)
    {
        if (is_null($projectDefaultPerSitePerMinute)) {
            array_push($this->openAPINullablesSetToNull, 'projectDefaultPerSitePerMinute');
        } else {
            $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
            $index = array_search('projectDefaultPerSitePerMinute', $nullablesSetToNull);
            if (false !== $index) {
                unset($nullablesSetToNull[$index]);
                $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
            }
        }
        $this->container['projectDefaultPerSitePerMinute'] = $projectDefaultPerSitePerMinute;

        return $this;
    }

    /**
     * Gets projectDefaultPerSiteParallel.
     *
     * @return null|float
     */
    public function getProjectDefaultPerSiteParallel()
    {
        return $this->container['projectDefaultPerSiteParallel'];
    }

    /**
     * Sets projectDefaultPerSiteParallel.
     *
     * @param null|float $projectDefaultPerSiteParallel projectDefaultPerSiteParallel
     *
     * @return self
     */
    public function setProjectDefaultPerSiteParallel($projectDefaultPerSiteParallel)
    {
        if (is_null($projectDefaultPerSiteParallel)) {
            array_push($this->openAPINullablesSetToNull, 'projectDefaultPerSiteParallel');
        } else {
            $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
            $index = array_search('projectDefaultPerSiteParallel', $nullablesSetToNull);
            if (false !== $index) {
                unset($nullablesSetToNull[$index]);
                $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
            }
        }
        $this->container['projectDefaultPerSiteParallel'] = $projectDefaultPerSiteParallel;

        return $this;
    }

    /**
     * Gets projectPerMinute.
     *
     * @return null|float
     */
    public function getProjectPerMinute()
    {
        return $this->container['projectPerMinute'];
    }

    /**
     * Sets projectPerMinute.
     *
     * @param null|float $projectPerMinute projectPerMinute
     *
     * @return self
     */
    public function setProjectPerMinute($projectPerMinute)
    {
        if (is_null($projectPerMinute)) {
            array_push($this->openAPINullablesSetToNull, 'projectPerMinute');
        } else {
            $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
            $index = array_search('projectPerMinute', $nullablesSetToNull);
            if (false !== $index) {
                unset($nullablesSetToNull[$index]);
                $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
            }
        }
        $this->container['projectPerMinute'] = $projectPerMinute;

        return $this;
    }

    /**
     * Gets projectParallel.
     *
     * @return null|float
     */
    public function getProjectParallel()
    {
        return $this->container['projectParallel'];
    }

    /**
     * Sets projectParallel.
     *
     * @param null|float $projectParallel projectParallel
     *
     * @return self
     */
    public function setProjectParallel($projectParallel)
    {
        if (is_null($projectParallel)) {
            array_push($this->openAPINullablesSetToNull, 'projectParallel');
        } else {
            $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
            $index = array_search('projectParallel', $nullablesSetToNull);
            if (false !== $index) {
                unset($nullablesSetToNull[$index]);
                $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
            }
        }
        $this->container['projectParallel'] = $projectParallel;

        return $this;
    }

    /**
     * Gets sitePerMinute.
     *
     * @return null|float
     */
    public function getSitePerMinute()
    {
        return $this->container['sitePerMinute'];
    }

    /**
     * Sets sitePerMinute.
     *
     * @param null|float $sitePerMinute sitePerMinute
     *
     * @return self
     */
    public function setSitePerMinute($sitePerMinute)
    {
        if (is_null($sitePerMinute)) {
            array_push($this->openAPINullablesSetToNull, 'sitePerMinute');
        } else {
            $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
            $index = array_search('sitePerMinute', $nullablesSetToNull);
            if (false !== $index) {
                unset($nullablesSetToNull[$index]);
                $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
            }
        }
        $this->container['sitePerMinute'] = $sitePerMinute;

        return $this;
    }

    /**
     * Gets siteParallel.
     *
     * @return null|float
     */
    public function getSiteParallel()
    {
        return $this->container['siteParallel'];
    }

    /**
     * Sets siteParallel.
     *
     * @param null|float $siteParallel siteParallel
     *
     * @return self
     */
    public function setSiteParallel($siteParallel)
    {
        if (is_null($siteParallel)) {
            array_push($this->openAPINullablesSetToNull, 'siteParallel');
        } else {
            $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
            $index = array_search('siteParallel', $nullablesSetToNull);
            if (false !== $index) {
                unset($nullablesSetToNull[$index]);
                $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
            }
        }
        $this->container['siteParallel'] = $siteParallel;

        return $this;
    }

    /**
     * Gets governanceCrawlingProjectPerMinute.
     *
     * @return null|float
     */
    public function getGovernanceCrawlingProjectPerMinute()
    {
        return $this->container['governanceCrawlingProjectPerMinute'];
    }

    /**
     * Sets governanceCrawlingProjectPerMinute.
     *
     * @param null|float $governanceCrawlingProjectPerMinute governanceCrawlingProjectPerMinute
     *
     * @return self
     */
    public function setGovernanceCrawlingProjectPerMinute($governanceCrawlingProjectPerMinute)
    {
        if (is_null($governanceCrawlingProjectPerMinute)) {
            array_push($this->openAPINullablesSetToNull, 'governanceCrawlingProjectPerMinute');
        } else {
            $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
            $index = array_search('governanceCrawlingProjectPerMinute', $nullablesSetToNull);
            if (false !== $index) {
                unset($nullablesSetToNull[$index]);
                $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
            }
        }
        $this->container['governanceCrawlingProjectPerMinute'] = $governanceCrawlingProjectPerMinute;

        return $this;
    }

    /**
     * Gets governanceCrawlingProjectParallel.
     *
     * @return null|float
     */
    public function getGovernanceCrawlingProjectParallel()
    {
        return $this->container['governanceCrawlingProjectParallel'];
    }

    /**
     * Sets governanceCrawlingProjectParallel.
     *
     * @param null|float $governanceCrawlingProjectParallel governanceCrawlingProjectParallel
     *
     * @return self
     */
    public function setGovernanceCrawlingProjectParallel($governanceCrawlingProjectParallel)
    {
        if (is_null($governanceCrawlingProjectParallel)) {
            array_push($this->openAPINullablesSetToNull, 'governanceCrawlingProjectParallel');
        } else {
            $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
            $index = array_search('governanceCrawlingProjectParallel', $nullablesSetToNull);
            if (false !== $index) {
                unset($nullablesSetToNull[$index]);
                $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
            }
        }
        $this->container['governanceCrawlingProjectParallel'] = $governanceCrawlingProjectParallel;

        return $this;
    }

    /**
     * Gets defaultPerSitePerMinute.
     *
     * @return float
     */
    public function getDefaultPerSitePerMinute()
    {
        return $this->container['defaultPerSitePerMinute'];
    }

    /**
     * Sets defaultPerSitePerMinute.
     *
     * @param float $defaultPerSitePerMinute defaultPerSitePerMinute
     *
     * @return self
     */
    public function setDefaultPerSitePerMinute($defaultPerSitePerMinute)
    {
        if (is_null($defaultPerSitePerMinute)) {
            throw new \InvalidArgumentException('non-nullable defaultPerSitePerMinute cannot be null');
        }
        $this->container['defaultPerSitePerMinute'] = $defaultPerSitePerMinute;

        return $this;
    }

    /**
     * Gets defaultPerSiteParallel.
     *
     * @return float
     */
    public function getDefaultPerSiteParallel()
    {
        return $this->container['defaultPerSiteParallel'];
    }

    /**
     * Sets defaultPerSiteParallel.
     *
     * @param float $defaultPerSiteParallel defaultPerSiteParallel
     *
     * @return self
     */
    public function setDefaultPerSiteParallel($defaultPerSiteParallel)
    {
        if (is_null($defaultPerSiteParallel)) {
            throw new \InvalidArgumentException('non-nullable defaultPerSiteParallel cannot be null');
        }
        $this->container['defaultPerSiteParallel'] = $defaultPerSiteParallel;

        return $this;
    }

    /**
     * Gets appliedSitePerMinute.
     *
     * @return float
     */
    public function getAppliedSitePerMinute()
    {
        return $this->container['appliedSitePerMinute'];
    }

    /**
     * Sets appliedSitePerMinute.
     *
     * @param float $appliedSitePerMinute appliedSitePerMinute
     *
     * @return self
     */
    public function setAppliedSitePerMinute($appliedSitePerMinute)
    {
        if (is_null($appliedSitePerMinute)) {
            throw new \InvalidArgumentException('non-nullable appliedSitePerMinute cannot be null');
        }
        $this->container['appliedSitePerMinute'] = $appliedSitePerMinute;

        return $this;
    }

    /**
     * Gets appliedSiteParallel.
     *
     * @return float
     */
    public function getAppliedSiteParallel()
    {
        return $this->container['appliedSiteParallel'];
    }

    /**
     * Sets appliedSiteParallel.
     *
     * @param float $appliedSiteParallel appliedSiteParallel
     *
     * @return self
     */
    public function setAppliedSiteParallel($appliedSiteParallel)
    {
        if (is_null($appliedSiteParallel)) {
            throw new \InvalidArgumentException('non-nullable appliedSiteParallel cannot be null');
        }
        $this->container['appliedSiteParallel'] = $appliedSiteParallel;

        return $this;
    }

    /**
     * Gets defaultGovernanceCrawlingProjectPerMinute.
     *
     * @return float
     */
    public function getDefaultGovernanceCrawlingProjectPerMinute()
    {
        return $this->container['defaultGovernanceCrawlingProjectPerMinute'];
    }

    /**
     * Sets defaultGovernanceCrawlingProjectPerMinute.
     *
     * @param float $defaultGovernanceCrawlingProjectPerMinute defaultGovernanceCrawlingProjectPerMinute
     *
     * @return self
     */
    public function setDefaultGovernanceCrawlingProjectPerMinute($defaultGovernanceCrawlingProjectPerMinute)
    {
        if (is_null($defaultGovernanceCrawlingProjectPerMinute)) {
            throw new \InvalidArgumentException('non-nullable defaultGovernanceCrawlingProjectPerMinute cannot be null');
        }
        $this->container['defaultGovernanceCrawlingProjectPerMinute'] = $defaultGovernanceCrawlingProjectPerMinute;

        return $this;
    }

    /**
     * Gets defaultGovernanceCrawlingProjectParallel.
     *
     * @return float
     */
    public function getDefaultGovernanceCrawlingProjectParallel()
    {
        return $this->container['defaultGovernanceCrawlingProjectParallel'];
    }

    /**
     * Sets defaultGovernanceCrawlingProjectParallel.
     *
     * @param float $defaultGovernanceCrawlingProjectParallel defaultGovernanceCrawlingProjectParallel
     *
     * @return self
     */
    public function setDefaultGovernanceCrawlingProjectParallel($defaultGovernanceCrawlingProjectParallel)
    {
        if (is_null($defaultGovernanceCrawlingProjectParallel)) {
            throw new \InvalidArgumentException('non-nullable defaultGovernanceCrawlingProjectParallel cannot be null');
        }
        $this->container['defaultGovernanceCrawlingProjectParallel'] = $defaultGovernanceCrawlingProjectParallel;

        return $this;
    }

    /**
     * Gets appliedGovernanceCrawlingProjectPerMinute.
     *
     * @return float
     */
    public function getAppliedGovernanceCrawlingProjectPerMinute()
    {
        return $this->container['appliedGovernanceCrawlingProjectPerMinute'];
    }

    /**
     * Sets appliedGovernanceCrawlingProjectPerMinute.
     *
     * @param float $appliedGovernanceCrawlingProjectPerMinute appliedGovernanceCrawlingProjectPerMinute
     *
     * @return self
     */
    public function setAppliedGovernanceCrawlingProjectPerMinute($appliedGovernanceCrawlingProjectPerMinute)
    {
        if (is_null($appliedGovernanceCrawlingProjectPerMinute)) {
            throw new \InvalidArgumentException('non-nullable appliedGovernanceCrawlingProjectPerMinute cannot be null');
        }
        $this->container['appliedGovernanceCrawlingProjectPerMinute'] = $appliedGovernanceCrawlingProjectPerMinute;

        return $this;
    }

    /**
     * Gets appliedGovernanceCrawlingProjectParallel.
     *
     * @return float
     */
    public function getAppliedGovernanceCrawlingProjectParallel()
    {
        return $this->container['appliedGovernanceCrawlingProjectParallel'];
    }

    /**
     * Sets appliedGovernanceCrawlingProjectParallel.
     *
     * @param float $appliedGovernanceCrawlingProjectParallel appliedGovernanceCrawlingProjectParallel
     *
     * @return self
     */
    public function setAppliedGovernanceCrawlingProjectParallel($appliedGovernanceCrawlingProjectParallel)
    {
        if (is_null($appliedGovernanceCrawlingProjectParallel)) {
            throw new \InvalidArgumentException('non-nullable appliedGovernanceCrawlingProjectParallel cannot be null');
        }
        $this->container['appliedGovernanceCrawlingProjectParallel'] = $appliedGovernanceCrawlingProjectParallel;

        return $this;
    }

    /**
     * Returns true if offset exists. False otherwise.
     *
     * @param int $offset Offset
     */
    public function offsetExists($offset): bool
    {
        return isset($this->container[$offset]);
    }

    /**
     * Gets offset.
     *
     * @param int $offset Offset
     *
     * @return null|mixed
     */
    #[\ReturnTypeWillChange]
    public function offsetGet($offset)
    {
        return $this->container[$offset] ?? null;
    }

    /**
     * Sets value based on offset.
     *
     * @param null|int $offset Offset
     * @param mixed    $value  Value to be set
     */
    public function offsetSet($offset, $value): void
    {
        if (is_null($offset)) {
            $this->container[] = $value;
        } else {
            $this->container[$offset] = $value;
        }
    }

    /**
     * Unsets offset.
     *
     * @param int $offset Offset
     */
    public function offsetUnset($offset): void
    {
        unset($this->container[$offset]);
    }

    /**
     * Serializes the object to a value that can be serialized natively by json_encode().
     *
     * @see https://www.php.net/manual/en/jsonserializable.jsonserialize.php
     *
     * @return mixed returns data which can be serialized by json_encode(), which is a value
     * of any type other than a resource
     */
    #[\ReturnTypeWillChange]
    public function jsonSerialize()
    {
        return ObjectSerializer::sanitizeForSerialization($this);
    }

    /**
     * Gets a header-safe presentation of the object.
     *
     * @return string
     */
    public function toHeaderValue()
    {
        return json_encode(ObjectSerializer::sanitizeForSerialization($this));
    }

    /**
     * Array of nullable properties.
     */
    protected static function openAPINullables(): array
    {
        return self::$openAPINullables;
    }

    /**
     * Array of nullable field names deliberately set to null.
     *
     * @return bool[]
     */
    private function getOpenAPINullablesSetToNull(): array
    {
        return $this->openAPINullablesSetToNull;
    }

    /**
     * Setter - Array of nullable field names deliberately set to null.
     *
     * @param bool[] $openAPINullablesSetToNull
     */
    private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void
    {
        $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;
    }

    /**
     * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
     * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
     * $this->openAPINullablesSetToNull array.
     *
     * @param mixed  $defaultValue
     */
    private function setIfExists(string $variableName, array $fields, $defaultValue): void
    {
        if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {
            $this->openAPINullablesSetToNull[] = $variableName;
        }

        $this->container[$variableName] = $fields[$variableName] ?? $defaultValue;
    }
}
