<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for SolutionSearchRowBasic StructType
 * @subpackage Structs
 */
class SolutionSearchRowBasic extends SearchRowBasic
{
    /**
     * The assigned
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $assigned;
    /**
     * The caseCount
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnLongField[]
     */
    public $caseCount;
    /**
     * The createdDate
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnDateField[]
     */
    public $createdDate;
    /**
     * The description
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnStringField[]
     */
    public $description;
    /**
     * The displayOnline
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnBooleanField[]
     */
    public $displayOnline;
    /**
     * The externalId
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $externalId;
    /**
     * The internalId
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnSelectField[]
     */
    public $internalId;
    /**
     * The isInactive
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnBooleanField[]
     */
    public $isInactive;
    /**
     * The lastModifiedDate
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnDateField[]
     */
    public $lastModifiedDate;
    /**
     * The message
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnStringField[]
     */
    public $message;
    /**
     * The previewref
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnStringField[]
     */
    public $previewref;
    /**
     * The solutionCode
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnStringField[]
     */
    public $solutionCode;
    /**
     * The status
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnEnumSelectField[]
     */
    public $status;
    /**
     * The title
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\SearchColumnStringField[]
     */
    public $title;
    /**
     * The customFieldList
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\SearchColumnCustomFieldList
     */
    public $customFieldList;
    /**
     * Constructor method for SolutionSearchRowBasic
     * @uses SolutionSearchRowBasic::setAssigned()
     * @uses SolutionSearchRowBasic::setCaseCount()
     * @uses SolutionSearchRowBasic::setCreatedDate()
     * @uses SolutionSearchRowBasic::setDescription()
     * @uses SolutionSearchRowBasic::setDisplayOnline()
     * @uses SolutionSearchRowBasic::setExternalId()
     * @uses SolutionSearchRowBasic::setInternalId()
     * @uses SolutionSearchRowBasic::setIsInactive()
     * @uses SolutionSearchRowBasic::setLastModifiedDate()
     * @uses SolutionSearchRowBasic::setMessage()
     * @uses SolutionSearchRowBasic::setPreviewref()
     * @uses SolutionSearchRowBasic::setSolutionCode()
     * @uses SolutionSearchRowBasic::setStatus()
     * @uses SolutionSearchRowBasic::setTitle()
     * @uses SolutionSearchRowBasic::setCustomFieldList()
     * @param \StructType\SearchColumnSelectField[] $assigned
     * @param \StructType\SearchColumnLongField[] $caseCount
     * @param \StructType\SearchColumnDateField[] $createdDate
     * @param \StructType\SearchColumnStringField[] $description
     * @param \StructType\SearchColumnBooleanField[] $displayOnline
     * @param \StructType\SearchColumnSelectField[] $externalId
     * @param \StructType\SearchColumnSelectField[] $internalId
     * @param \StructType\SearchColumnBooleanField[] $isInactive
     * @param \StructType\SearchColumnDateField[] $lastModifiedDate
     * @param \StructType\SearchColumnStringField[] $message
     * @param \StructType\SearchColumnStringField[] $previewref
     * @param \StructType\SearchColumnStringField[] $solutionCode
     * @param \StructType\SearchColumnEnumSelectField[] $status
     * @param \StructType\SearchColumnStringField[] $title
     * @param \StructType\SearchColumnCustomFieldList $customFieldList
     */
    public function __construct(array $assigned = array(), array $caseCount = array(), array $createdDate = array(), array $description = array(), array $displayOnline = array(), array $externalId = array(), array $internalId = array(), array $isInactive = array(), array $lastModifiedDate = array(), array $message = array(), array $previewref = array(), array $solutionCode = array(), array $status = array(), array $title = array(), \StructType\SearchColumnCustomFieldList $customFieldList = null)
    {
        $this
            ->setAssigned($assigned)
            ->setCaseCount($caseCount)
            ->setCreatedDate($createdDate)
            ->setDescription($description)
            ->setDisplayOnline($displayOnline)
            ->setExternalId($externalId)
            ->setInternalId($internalId)
            ->setIsInactive($isInactive)
            ->setLastModifiedDate($lastModifiedDate)
            ->setMessage($message)
            ->setPreviewref($previewref)
            ->setSolutionCode($solutionCode)
            ->setStatus($status)
            ->setTitle($title)
            ->setCustomFieldList($customFieldList);
    }
    /**
     * Get assigned value
     * @return \StructType\SearchColumnSelectField[]|null
     */
    public function getAssigned()
    {
        return $this->assigned;
    }
    /**
     * This method is responsible for validating the values passed to the setAssigned method
     * This method is willingly generated in order to preserve the one-line inline validation within the setAssigned method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateAssignedForArrayConstraintsFromSetAssigned(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $solutionSearchRowBasicAssignedItem) {
            // validation for constraint: itemType
            if (!$solutionSearchRowBasicAssignedItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($solutionSearchRowBasicAssignedItem) ? get_class($solutionSearchRowBasicAssignedItem) : sprintf('%s(%s)', gettype($solutionSearchRowBasicAssignedItem), var_export($solutionSearchRowBasicAssignedItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The assigned property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set assigned value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField[] $assigned
     * @return \StructType\SolutionSearchRowBasic
     */
    public function setAssigned(array $assigned = array())
    {
        // validation for constraint: array
        if ('' !== ($assignedArrayErrorMessage = self::validateAssignedForArrayConstraintsFromSetAssigned($assigned))) {
            throw new \InvalidArgumentException($assignedArrayErrorMessage, __LINE__);
        }
        $this->assigned = $assigned;
        return $this;
    }
    /**
     * Add item to assigned value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField $item
     * @return \StructType\SolutionSearchRowBasic
     */
    public function addToAssigned(\StructType\SearchColumnSelectField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnSelectField) {
            throw new \InvalidArgumentException(sprintf('The assigned property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->assigned[] = $item;
        return $this;
    }
    /**
     * Get caseCount value
     * @return \StructType\SearchColumnLongField[]|null
     */
    public function getCaseCount()
    {
        return $this->caseCount;
    }
    /**
     * This method is responsible for validating the values passed to the setCaseCount method
     * This method is willingly generated in order to preserve the one-line inline validation within the setCaseCount method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateCaseCountForArrayConstraintsFromSetCaseCount(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $solutionSearchRowBasicCaseCountItem) {
            // validation for constraint: itemType
            if (!$solutionSearchRowBasicCaseCountItem instanceof \StructType\SearchColumnLongField) {
                $invalidValues[] = is_object($solutionSearchRowBasicCaseCountItem) ? get_class($solutionSearchRowBasicCaseCountItem) : sprintf('%s(%s)', gettype($solutionSearchRowBasicCaseCountItem), var_export($solutionSearchRowBasicCaseCountItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The caseCount property can only contain items of type \StructType\SearchColumnLongField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set caseCount value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnLongField[] $caseCount
     * @return \StructType\SolutionSearchRowBasic
     */
    public function setCaseCount(array $caseCount = array())
    {
        // validation for constraint: array
        if ('' !== ($caseCountArrayErrorMessage = self::validateCaseCountForArrayConstraintsFromSetCaseCount($caseCount))) {
            throw new \InvalidArgumentException($caseCountArrayErrorMessage, __LINE__);
        }
        $this->caseCount = $caseCount;
        return $this;
    }
    /**
     * Add item to caseCount value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnLongField $item
     * @return \StructType\SolutionSearchRowBasic
     */
    public function addToCaseCount(\StructType\SearchColumnLongField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnLongField) {
            throw new \InvalidArgumentException(sprintf('The caseCount property can only contain items of type \StructType\SearchColumnLongField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->caseCount[] = $item;
        return $this;
    }
    /**
     * Get createdDate value
     * @return \StructType\SearchColumnDateField[]|null
     */
    public function getCreatedDate()
    {
        return $this->createdDate;
    }
    /**
     * This method is responsible for validating the values passed to the setCreatedDate method
     * This method is willingly generated in order to preserve the one-line inline validation within the setCreatedDate method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateCreatedDateForArrayConstraintsFromSetCreatedDate(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $solutionSearchRowBasicCreatedDateItem) {
            // validation for constraint: itemType
            if (!$solutionSearchRowBasicCreatedDateItem instanceof \StructType\SearchColumnDateField) {
                $invalidValues[] = is_object($solutionSearchRowBasicCreatedDateItem) ? get_class($solutionSearchRowBasicCreatedDateItem) : sprintf('%s(%s)', gettype($solutionSearchRowBasicCreatedDateItem), var_export($solutionSearchRowBasicCreatedDateItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The createdDate property can only contain items of type \StructType\SearchColumnDateField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set createdDate value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDateField[] $createdDate
     * @return \StructType\SolutionSearchRowBasic
     */
    public function setCreatedDate(array $createdDate = array())
    {
        // validation for constraint: array
        if ('' !== ($createdDateArrayErrorMessage = self::validateCreatedDateForArrayConstraintsFromSetCreatedDate($createdDate))) {
            throw new \InvalidArgumentException($createdDateArrayErrorMessage, __LINE__);
        }
        $this->createdDate = $createdDate;
        return $this;
    }
    /**
     * Add item to createdDate value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDateField $item
     * @return \StructType\SolutionSearchRowBasic
     */
    public function addToCreatedDate(\StructType\SearchColumnDateField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnDateField) {
            throw new \InvalidArgumentException(sprintf('The createdDate property can only contain items of type \StructType\SearchColumnDateField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->createdDate[] = $item;
        return $this;
    }
    /**
     * Get description value
     * @return \StructType\SearchColumnStringField[]|null
     */
    public function getDescription()
    {
        return $this->description;
    }
    /**
     * This method is responsible for validating the values passed to the setDescription method
     * This method is willingly generated in order to preserve the one-line inline validation within the setDescription method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateDescriptionForArrayConstraintsFromSetDescription(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $solutionSearchRowBasicDescriptionItem) {
            // validation for constraint: itemType
            if (!$solutionSearchRowBasicDescriptionItem instanceof \StructType\SearchColumnStringField) {
                $invalidValues[] = is_object($solutionSearchRowBasicDescriptionItem) ? get_class($solutionSearchRowBasicDescriptionItem) : sprintf('%s(%s)', gettype($solutionSearchRowBasicDescriptionItem), var_export($solutionSearchRowBasicDescriptionItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The description property can only contain items of type \StructType\SearchColumnStringField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set description value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnStringField[] $description
     * @return \StructType\SolutionSearchRowBasic
     */
    public function setDescription(array $description = array())
    {
        // validation for constraint: array
        if ('' !== ($descriptionArrayErrorMessage = self::validateDescriptionForArrayConstraintsFromSetDescription($description))) {
            throw new \InvalidArgumentException($descriptionArrayErrorMessage, __LINE__);
        }
        $this->description = $description;
        return $this;
    }
    /**
     * Add item to description value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnStringField $item
     * @return \StructType\SolutionSearchRowBasic
     */
    public function addToDescription(\StructType\SearchColumnStringField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnStringField) {
            throw new \InvalidArgumentException(sprintf('The description property can only contain items of type \StructType\SearchColumnStringField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->description[] = $item;
        return $this;
    }
    /**
     * Get displayOnline value
     * @return \StructType\SearchColumnBooleanField[]|null
     */
    public function getDisplayOnline()
    {
        return $this->displayOnline;
    }
    /**
     * This method is responsible for validating the values passed to the setDisplayOnline method
     * This method is willingly generated in order to preserve the one-line inline validation within the setDisplayOnline method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateDisplayOnlineForArrayConstraintsFromSetDisplayOnline(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $solutionSearchRowBasicDisplayOnlineItem) {
            // validation for constraint: itemType
            if (!$solutionSearchRowBasicDisplayOnlineItem instanceof \StructType\SearchColumnBooleanField) {
                $invalidValues[] = is_object($solutionSearchRowBasicDisplayOnlineItem) ? get_class($solutionSearchRowBasicDisplayOnlineItem) : sprintf('%s(%s)', gettype($solutionSearchRowBasicDisplayOnlineItem), var_export($solutionSearchRowBasicDisplayOnlineItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The displayOnline property can only contain items of type \StructType\SearchColumnBooleanField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set displayOnline value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField[] $displayOnline
     * @return \StructType\SolutionSearchRowBasic
     */
    public function setDisplayOnline(array $displayOnline = array())
    {
        // validation for constraint: array
        if ('' !== ($displayOnlineArrayErrorMessage = self::validateDisplayOnlineForArrayConstraintsFromSetDisplayOnline($displayOnline))) {
            throw new \InvalidArgumentException($displayOnlineArrayErrorMessage, __LINE__);
        }
        $this->displayOnline = $displayOnline;
        return $this;
    }
    /**
     * Add item to displayOnline value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField $item
     * @return \StructType\SolutionSearchRowBasic
     */
    public function addToDisplayOnline(\StructType\SearchColumnBooleanField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnBooleanField) {
            throw new \InvalidArgumentException(sprintf('The displayOnline property can only contain items of type \StructType\SearchColumnBooleanField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->displayOnline[] = $item;
        return $this;
    }
    /**
     * Get externalId value
     * @return \StructType\SearchColumnSelectField[]|null
     */
    public function getExternalId()
    {
        return $this->externalId;
    }
    /**
     * This method is responsible for validating the values passed to the setExternalId method
     * This method is willingly generated in order to preserve the one-line inline validation within the setExternalId method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateExternalIdForArrayConstraintsFromSetExternalId(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $solutionSearchRowBasicExternalIdItem) {
            // validation for constraint: itemType
            if (!$solutionSearchRowBasicExternalIdItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($solutionSearchRowBasicExternalIdItem) ? get_class($solutionSearchRowBasicExternalIdItem) : sprintf('%s(%s)', gettype($solutionSearchRowBasicExternalIdItem), var_export($solutionSearchRowBasicExternalIdItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The externalId property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set externalId value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField[] $externalId
     * @return \StructType\SolutionSearchRowBasic
     */
    public function setExternalId(array $externalId = array())
    {
        // validation for constraint: array
        if ('' !== ($externalIdArrayErrorMessage = self::validateExternalIdForArrayConstraintsFromSetExternalId($externalId))) {
            throw new \InvalidArgumentException($externalIdArrayErrorMessage, __LINE__);
        }
        $this->externalId = $externalId;
        return $this;
    }
    /**
     * Add item to externalId value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField $item
     * @return \StructType\SolutionSearchRowBasic
     */
    public function addToExternalId(\StructType\SearchColumnSelectField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnSelectField) {
            throw new \InvalidArgumentException(sprintf('The externalId property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->externalId[] = $item;
        return $this;
    }
    /**
     * Get internalId value
     * @return \StructType\SearchColumnSelectField[]|null
     */
    public function getInternalId()
    {
        return $this->internalId;
    }
    /**
     * This method is responsible for validating the values passed to the setInternalId method
     * This method is willingly generated in order to preserve the one-line inline validation within the setInternalId method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateInternalIdForArrayConstraintsFromSetInternalId(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $solutionSearchRowBasicInternalIdItem) {
            // validation for constraint: itemType
            if (!$solutionSearchRowBasicInternalIdItem instanceof \StructType\SearchColumnSelectField) {
                $invalidValues[] = is_object($solutionSearchRowBasicInternalIdItem) ? get_class($solutionSearchRowBasicInternalIdItem) : sprintf('%s(%s)', gettype($solutionSearchRowBasicInternalIdItem), var_export($solutionSearchRowBasicInternalIdItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The internalId property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set internalId value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField[] $internalId
     * @return \StructType\SolutionSearchRowBasic
     */
    public function setInternalId(array $internalId = array())
    {
        // validation for constraint: array
        if ('' !== ($internalIdArrayErrorMessage = self::validateInternalIdForArrayConstraintsFromSetInternalId($internalId))) {
            throw new \InvalidArgumentException($internalIdArrayErrorMessage, __LINE__);
        }
        $this->internalId = $internalId;
        return $this;
    }
    /**
     * Add item to internalId value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnSelectField $item
     * @return \StructType\SolutionSearchRowBasic
     */
    public function addToInternalId(\StructType\SearchColumnSelectField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnSelectField) {
            throw new \InvalidArgumentException(sprintf('The internalId property can only contain items of type \StructType\SearchColumnSelectField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->internalId[] = $item;
        return $this;
    }
    /**
     * Get isInactive value
     * @return \StructType\SearchColumnBooleanField[]|null
     */
    public function getIsInactive()
    {
        return $this->isInactive;
    }
    /**
     * This method is responsible for validating the values passed to the setIsInactive method
     * This method is willingly generated in order to preserve the one-line inline validation within the setIsInactive method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateIsInactiveForArrayConstraintsFromSetIsInactive(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $solutionSearchRowBasicIsInactiveItem) {
            // validation for constraint: itemType
            if (!$solutionSearchRowBasicIsInactiveItem instanceof \StructType\SearchColumnBooleanField) {
                $invalidValues[] = is_object($solutionSearchRowBasicIsInactiveItem) ? get_class($solutionSearchRowBasicIsInactiveItem) : sprintf('%s(%s)', gettype($solutionSearchRowBasicIsInactiveItem), var_export($solutionSearchRowBasicIsInactiveItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The isInactive property can only contain items of type \StructType\SearchColumnBooleanField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set isInactive value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField[] $isInactive
     * @return \StructType\SolutionSearchRowBasic
     */
    public function setIsInactive(array $isInactive = array())
    {
        // validation for constraint: array
        if ('' !== ($isInactiveArrayErrorMessage = self::validateIsInactiveForArrayConstraintsFromSetIsInactive($isInactive))) {
            throw new \InvalidArgumentException($isInactiveArrayErrorMessage, __LINE__);
        }
        $this->isInactive = $isInactive;
        return $this;
    }
    /**
     * Add item to isInactive value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnBooleanField $item
     * @return \StructType\SolutionSearchRowBasic
     */
    public function addToIsInactive(\StructType\SearchColumnBooleanField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnBooleanField) {
            throw new \InvalidArgumentException(sprintf('The isInactive property can only contain items of type \StructType\SearchColumnBooleanField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->isInactive[] = $item;
        return $this;
    }
    /**
     * Get lastModifiedDate value
     * @return \StructType\SearchColumnDateField[]|null
     */
    public function getLastModifiedDate()
    {
        return $this->lastModifiedDate;
    }
    /**
     * This method is responsible for validating the values passed to the setLastModifiedDate method
     * This method is willingly generated in order to preserve the one-line inline validation within the setLastModifiedDate method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateLastModifiedDateForArrayConstraintsFromSetLastModifiedDate(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $solutionSearchRowBasicLastModifiedDateItem) {
            // validation for constraint: itemType
            if (!$solutionSearchRowBasicLastModifiedDateItem instanceof \StructType\SearchColumnDateField) {
                $invalidValues[] = is_object($solutionSearchRowBasicLastModifiedDateItem) ? get_class($solutionSearchRowBasicLastModifiedDateItem) : sprintf('%s(%s)', gettype($solutionSearchRowBasicLastModifiedDateItem), var_export($solutionSearchRowBasicLastModifiedDateItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The lastModifiedDate property can only contain items of type \StructType\SearchColumnDateField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set lastModifiedDate value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDateField[] $lastModifiedDate
     * @return \StructType\SolutionSearchRowBasic
     */
    public function setLastModifiedDate(array $lastModifiedDate = array())
    {
        // validation for constraint: array
        if ('' !== ($lastModifiedDateArrayErrorMessage = self::validateLastModifiedDateForArrayConstraintsFromSetLastModifiedDate($lastModifiedDate))) {
            throw new \InvalidArgumentException($lastModifiedDateArrayErrorMessage, __LINE__);
        }
        $this->lastModifiedDate = $lastModifiedDate;
        return $this;
    }
    /**
     * Add item to lastModifiedDate value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnDateField $item
     * @return \StructType\SolutionSearchRowBasic
     */
    public function addToLastModifiedDate(\StructType\SearchColumnDateField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnDateField) {
            throw new \InvalidArgumentException(sprintf('The lastModifiedDate property can only contain items of type \StructType\SearchColumnDateField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->lastModifiedDate[] = $item;
        return $this;
    }
    /**
     * Get message value
     * @return \StructType\SearchColumnStringField[]|null
     */
    public function getMessage()
    {
        return $this->message;
    }
    /**
     * This method is responsible for validating the values passed to the setMessage method
     * This method is willingly generated in order to preserve the one-line inline validation within the setMessage method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateMessageForArrayConstraintsFromSetMessage(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $solutionSearchRowBasicMessageItem) {
            // validation for constraint: itemType
            if (!$solutionSearchRowBasicMessageItem instanceof \StructType\SearchColumnStringField) {
                $invalidValues[] = is_object($solutionSearchRowBasicMessageItem) ? get_class($solutionSearchRowBasicMessageItem) : sprintf('%s(%s)', gettype($solutionSearchRowBasicMessageItem), var_export($solutionSearchRowBasicMessageItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The message property can only contain items of type \StructType\SearchColumnStringField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set message value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnStringField[] $message
     * @return \StructType\SolutionSearchRowBasic
     */
    public function setMessage(array $message = array())
    {
        // validation for constraint: array
        if ('' !== ($messageArrayErrorMessage = self::validateMessageForArrayConstraintsFromSetMessage($message))) {
            throw new \InvalidArgumentException($messageArrayErrorMessage, __LINE__);
        }
        $this->message = $message;
        return $this;
    }
    /**
     * Add item to message value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnStringField $item
     * @return \StructType\SolutionSearchRowBasic
     */
    public function addToMessage(\StructType\SearchColumnStringField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnStringField) {
            throw new \InvalidArgumentException(sprintf('The message property can only contain items of type \StructType\SearchColumnStringField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->message[] = $item;
        return $this;
    }
    /**
     * Get previewref value
     * @return \StructType\SearchColumnStringField[]|null
     */
    public function getPreviewref()
    {
        return $this->previewref;
    }
    /**
     * This method is responsible for validating the values passed to the setPreviewref method
     * This method is willingly generated in order to preserve the one-line inline validation within the setPreviewref method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validatePreviewrefForArrayConstraintsFromSetPreviewref(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $solutionSearchRowBasicPreviewrefItem) {
            // validation for constraint: itemType
            if (!$solutionSearchRowBasicPreviewrefItem instanceof \StructType\SearchColumnStringField) {
                $invalidValues[] = is_object($solutionSearchRowBasicPreviewrefItem) ? get_class($solutionSearchRowBasicPreviewrefItem) : sprintf('%s(%s)', gettype($solutionSearchRowBasicPreviewrefItem), var_export($solutionSearchRowBasicPreviewrefItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The previewref property can only contain items of type \StructType\SearchColumnStringField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set previewref value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnStringField[] $previewref
     * @return \StructType\SolutionSearchRowBasic
     */
    public function setPreviewref(array $previewref = array())
    {
        // validation for constraint: array
        if ('' !== ($previewrefArrayErrorMessage = self::validatePreviewrefForArrayConstraintsFromSetPreviewref($previewref))) {
            throw new \InvalidArgumentException($previewrefArrayErrorMessage, __LINE__);
        }
        $this->previewref = $previewref;
        return $this;
    }
    /**
     * Add item to previewref value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnStringField $item
     * @return \StructType\SolutionSearchRowBasic
     */
    public function addToPreviewref(\StructType\SearchColumnStringField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnStringField) {
            throw new \InvalidArgumentException(sprintf('The previewref property can only contain items of type \StructType\SearchColumnStringField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->previewref[] = $item;
        return $this;
    }
    /**
     * Get solutionCode value
     * @return \StructType\SearchColumnStringField[]|null
     */
    public function getSolutionCode()
    {
        return $this->solutionCode;
    }
    /**
     * This method is responsible for validating the values passed to the setSolutionCode method
     * This method is willingly generated in order to preserve the one-line inline validation within the setSolutionCode method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateSolutionCodeForArrayConstraintsFromSetSolutionCode(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $solutionSearchRowBasicSolutionCodeItem) {
            // validation for constraint: itemType
            if (!$solutionSearchRowBasicSolutionCodeItem instanceof \StructType\SearchColumnStringField) {
                $invalidValues[] = is_object($solutionSearchRowBasicSolutionCodeItem) ? get_class($solutionSearchRowBasicSolutionCodeItem) : sprintf('%s(%s)', gettype($solutionSearchRowBasicSolutionCodeItem), var_export($solutionSearchRowBasicSolutionCodeItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The solutionCode property can only contain items of type \StructType\SearchColumnStringField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set solutionCode value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnStringField[] $solutionCode
     * @return \StructType\SolutionSearchRowBasic
     */
    public function setSolutionCode(array $solutionCode = array())
    {
        // validation for constraint: array
        if ('' !== ($solutionCodeArrayErrorMessage = self::validateSolutionCodeForArrayConstraintsFromSetSolutionCode($solutionCode))) {
            throw new \InvalidArgumentException($solutionCodeArrayErrorMessage, __LINE__);
        }
        $this->solutionCode = $solutionCode;
        return $this;
    }
    /**
     * Add item to solutionCode value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnStringField $item
     * @return \StructType\SolutionSearchRowBasic
     */
    public function addToSolutionCode(\StructType\SearchColumnStringField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnStringField) {
            throw new \InvalidArgumentException(sprintf('The solutionCode property can only contain items of type \StructType\SearchColumnStringField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->solutionCode[] = $item;
        return $this;
    }
    /**
     * Get status value
     * @return \StructType\SearchColumnEnumSelectField[]|null
     */
    public function getStatus()
    {
        return $this->status;
    }
    /**
     * This method is responsible for validating the values passed to the setStatus method
     * This method is willingly generated in order to preserve the one-line inline validation within the setStatus method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateStatusForArrayConstraintsFromSetStatus(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $solutionSearchRowBasicStatusItem) {
            // validation for constraint: itemType
            if (!$solutionSearchRowBasicStatusItem instanceof \StructType\SearchColumnEnumSelectField) {
                $invalidValues[] = is_object($solutionSearchRowBasicStatusItem) ? get_class($solutionSearchRowBasicStatusItem) : sprintf('%s(%s)', gettype($solutionSearchRowBasicStatusItem), var_export($solutionSearchRowBasicStatusItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The status property can only contain items of type \StructType\SearchColumnEnumSelectField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set status value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnEnumSelectField[] $status
     * @return \StructType\SolutionSearchRowBasic
     */
    public function setStatus(array $status = array())
    {
        // validation for constraint: array
        if ('' !== ($statusArrayErrorMessage = self::validateStatusForArrayConstraintsFromSetStatus($status))) {
            throw new \InvalidArgumentException($statusArrayErrorMessage, __LINE__);
        }
        $this->status = $status;
        return $this;
    }
    /**
     * Add item to status value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnEnumSelectField $item
     * @return \StructType\SolutionSearchRowBasic
     */
    public function addToStatus(\StructType\SearchColumnEnumSelectField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnEnumSelectField) {
            throw new \InvalidArgumentException(sprintf('The status property can only contain items of type \StructType\SearchColumnEnumSelectField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->status[] = $item;
        return $this;
    }
    /**
     * Get title value
     * @return \StructType\SearchColumnStringField[]|null
     */
    public function getTitle()
    {
        return $this->title;
    }
    /**
     * This method is responsible for validating the values passed to the setTitle method
     * This method is willingly generated in order to preserve the one-line inline validation within the setTitle method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateTitleForArrayConstraintsFromSetTitle(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $solutionSearchRowBasicTitleItem) {
            // validation for constraint: itemType
            if (!$solutionSearchRowBasicTitleItem instanceof \StructType\SearchColumnStringField) {
                $invalidValues[] = is_object($solutionSearchRowBasicTitleItem) ? get_class($solutionSearchRowBasicTitleItem) : sprintf('%s(%s)', gettype($solutionSearchRowBasicTitleItem), var_export($solutionSearchRowBasicTitleItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The title property can only contain items of type \StructType\SearchColumnStringField, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set title value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnStringField[] $title
     * @return \StructType\SolutionSearchRowBasic
     */
    public function setTitle(array $title = array())
    {
        // validation for constraint: array
        if ('' !== ($titleArrayErrorMessage = self::validateTitleForArrayConstraintsFromSetTitle($title))) {
            throw new \InvalidArgumentException($titleArrayErrorMessage, __LINE__);
        }
        $this->title = $title;
        return $this;
    }
    /**
     * Add item to title value
     * @throws \InvalidArgumentException
     * @param \StructType\SearchColumnStringField $item
     * @return \StructType\SolutionSearchRowBasic
     */
    public function addToTitle(\StructType\SearchColumnStringField $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\SearchColumnStringField) {
            throw new \InvalidArgumentException(sprintf('The title property can only contain items of type \StructType\SearchColumnStringField, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->title[] = $item;
        return $this;
    }
    /**
     * Get customFieldList value
     * @return \StructType\SearchColumnCustomFieldList|null
     */
    public function getCustomFieldList()
    {
        return $this->customFieldList;
    }
    /**
     * Set customFieldList value
     * @param \StructType\SearchColumnCustomFieldList $customFieldList
     * @return \StructType\SolutionSearchRowBasic
     */
    public function setCustomFieldList(\StructType\SearchColumnCustomFieldList $customFieldList = null)
    {
        $this->customFieldList = $customFieldList;
        return $this;
    }
}
