<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for BizAction.ScreenParts.SaveSearchFilter.Request StructType
 * @subpackage Structs
 */
class BizAction_ScreenParts_SaveSearchFilter_Request extends AnyEntity
{
    /**
     * The FilterData
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $FilterData;
    /**
     * The IsForAutoSave
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var bool
     */
    public $IsForAutoSave;
    /**
     * The ModuleName
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $ModuleName;
    /**
     * The Name
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Name;
    /**
     * The Public
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var bool
     */
    public $Public;
    /**
     * The SearchTarget
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $SearchTarget;
    /**
     * Constructor method for BizAction.ScreenParts.SaveSearchFilter.Request
     * @uses BizAction_ScreenParts_SaveSearchFilter_Request::setFilterData()
     * @uses BizAction_ScreenParts_SaveSearchFilter_Request::setIsForAutoSave()
     * @uses BizAction_ScreenParts_SaveSearchFilter_Request::setModuleName()
     * @uses BizAction_ScreenParts_SaveSearchFilter_Request::setName()
     * @uses BizAction_ScreenParts_SaveSearchFilter_Request::setPublic()
     * @uses BizAction_ScreenParts_SaveSearchFilter_Request::setSearchTarget()
     * @param string $filterData
     * @param bool $isForAutoSave
     * @param string $moduleName
     * @param string $name
     * @param bool $public
     * @param string $searchTarget
     */
    public function __construct($filterData = null, $isForAutoSave = null, $moduleName = null, $name = null, $public = null, $searchTarget = null)
    {
        $this
            ->setFilterData($filterData)
            ->setIsForAutoSave($isForAutoSave)
            ->setModuleName($moduleName)
            ->setName($name)
            ->setPublic($public)
            ->setSearchTarget($searchTarget);
    }
    /**
     * Get FilterData value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getFilterData()
    {
        return isset($this->FilterData) ? $this->FilterData : null;
    }
    /**
     * Set FilterData value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $filterData
     * @return \patest\StructType\BizAction_ScreenParts_SaveSearchFilter_Request
     */
    public function setFilterData($filterData = null)
    {
        // validation for constraint: string
        if (!is_null($filterData) && !is_string($filterData)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($filterData, true), gettype($filterData)), __LINE__);
        }
        if (is_null($filterData) || (is_array($filterData) && empty($filterData))) {
            unset($this->FilterData);
        } else {
            $this->FilterData = $filterData;
        }
        return $this;
    }
    /**
     * Get IsForAutoSave value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return bool|null
     */
    public function getIsForAutoSave()
    {
        return isset($this->IsForAutoSave) ? $this->IsForAutoSave : null;
    }
    /**
     * Set IsForAutoSave value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param bool $isForAutoSave
     * @return \patest\StructType\BizAction_ScreenParts_SaveSearchFilter_Request
     */
    public function setIsForAutoSave($isForAutoSave = null)
    {
        // validation for constraint: boolean
        if (!is_null($isForAutoSave) && !is_bool($isForAutoSave)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isForAutoSave, true), gettype($isForAutoSave)), __LINE__);
        }
        if (is_null($isForAutoSave) || (is_array($isForAutoSave) && empty($isForAutoSave))) {
            unset($this->IsForAutoSave);
        } else {
            $this->IsForAutoSave = $isForAutoSave;
        }
        return $this;
    }
    /**
     * Get ModuleName value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getModuleName()
    {
        return isset($this->ModuleName) ? $this->ModuleName : null;
    }
    /**
     * Set ModuleName value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $moduleName
     * @return \patest\StructType\BizAction_ScreenParts_SaveSearchFilter_Request
     */
    public function setModuleName($moduleName = null)
    {
        // validation for constraint: string
        if (!is_null($moduleName) && !is_string($moduleName)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($moduleName, true), gettype($moduleName)), __LINE__);
        }
        if (is_null($moduleName) || (is_array($moduleName) && empty($moduleName))) {
            unset($this->ModuleName);
        } else {
            $this->ModuleName = $moduleName;
        }
        return $this;
    }
    /**
     * Get Name value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getName()
    {
        return isset($this->Name) ? $this->Name : null;
    }
    /**
     * Set Name value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $name
     * @return \patest\StructType\BizAction_ScreenParts_SaveSearchFilter_Request
     */
    public function setName($name = null)
    {
        // validation for constraint: string
        if (!is_null($name) && !is_string($name)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($name, true), gettype($name)), __LINE__);
        }
        if (is_null($name) || (is_array($name) && empty($name))) {
            unset($this->Name);
        } else {
            $this->Name = $name;
        }
        return $this;
    }
    /**
     * Get Public value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return bool|null
     */
    public function getPublic()
    {
        return isset($this->Public) ? $this->Public : null;
    }
    /**
     * Set Public value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param bool $public
     * @return \patest\StructType\BizAction_ScreenParts_SaveSearchFilter_Request
     */
    public function setPublic($public = null)
    {
        // validation for constraint: boolean
        if (!is_null($public) && !is_bool($public)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($public, true), gettype($public)), __LINE__);
        }
        if (is_null($public) || (is_array($public) && empty($public))) {
            unset($this->Public);
        } else {
            $this->Public = $public;
        }
        return $this;
    }
    /**
     * Get SearchTarget value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getSearchTarget()
    {
        return isset($this->SearchTarget) ? $this->SearchTarget : null;
    }
    /**
     * Set SearchTarget value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $searchTarget
     * @return \patest\StructType\BizAction_ScreenParts_SaveSearchFilter_Request
     */
    public function setSearchTarget($searchTarget = null)
    {
        // validation for constraint: string
        if (!is_null($searchTarget) && !is_string($searchTarget)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($searchTarget, true), gettype($searchTarget)), __LINE__);
        }
        if (is_null($searchTarget) || (is_array($searchTarget) && empty($searchTarget))) {
            unset($this->SearchTarget);
        } else {
            $this->SearchTarget = $searchTarget;
        }
        return $this;
    }
}
