<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Resource_Pool_Request_CriteriaType StructType
 * Meta information extracted from the WSDL
 * - documentation: Resource Pool Request Criteria element.
 * @subpackage Structs
 */
class Resource_Pool_Request_CriteriaType extends AbstractStructBase
{
    /**
     * The Resource_Pool_Name
     * Meta information extracted from the WSDL
     * - documentation: Resource Pool Name as Request Criteria for Get Resource Pool web service task.
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $Resource_Pool_Name;
    /**
     * Constructor method for Resource_Pool_Request_CriteriaType
     * @uses Resource_Pool_Request_CriteriaType::setResource_Pool_Name()
     * @param string $resource_Pool_Name
     */
    public function __construct($resource_Pool_Name = null)
    {
        $this
            ->setResource_Pool_Name($resource_Pool_Name);
    }
    /**
     * Get Resource_Pool_Name value
     * @return string|null
     */
    public function getResource_Pool_Name()
    {
        return $this->Resource_Pool_Name;
    }
    /**
     * Set Resource_Pool_Name value
     * @param string $resource_Pool_Name
     * @return \StructType\Resource_Pool_Request_CriteriaType
     */
    public function setResource_Pool_Name($resource_Pool_Name = null)
    {
        // validation for constraint: string
        if (!is_null($resource_Pool_Name) && !is_string($resource_Pool_Name)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($resource_Pool_Name, true), gettype($resource_Pool_Name)), __LINE__);
        }
        $this->Resource_Pool_Name = $resource_Pool_Name;
        return $this;
    }
}
