<?php

namespace \NineDotMedia\viapost-php;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetDataListsResponse StructType
 * @subpackage Structs
 */
class GetDataListsResponse extends AbstractStructBase
{
    /**
     * The GetDataListsResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $GetDataListsResult;
    /**
     * The dataLists
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\NineDotMedia\viapost-php\ArrayOfAnyType
     */
    public $dataLists;
    /**
     * The returnMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $returnMessage;
    /**
     * Constructor method for GetDataListsResponse
     * @uses GetDataListsResponse::setGetDataListsResult()
     * @uses GetDataListsResponse::setDataLists()
     * @uses GetDataListsResponse::setReturnMessage()
     * @param bool $getDataListsResult
     * @param \\NineDotMedia\viapost-php\ArrayOfAnyType $dataLists
     * @param string $returnMessage
     */
    public function __construct($getDataListsResult = null, \\NineDotMedia\viapost-php\ArrayOfAnyType $dataLists = null, $returnMessage = null)
    {
        $this
            ->setGetDataListsResult($getDataListsResult)
            ->setDataLists($dataLists)
            ->setReturnMessage($returnMessage);
    }
    /**
     * Get GetDataListsResult value
     * @return bool
     */
    public function getGetDataListsResult()
    {
        return $this->GetDataListsResult;
    }
    /**
     * Set GetDataListsResult value
     * @param bool $getDataListsResult
     * @return \\NineDotMedia\viapost-php\GetDataListsResponse
     */
    public function setGetDataListsResult($getDataListsResult = null)
    {
        // validation for constraint: boolean
        if (!is_null($getDataListsResult) && !is_bool($getDataListsResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($getDataListsResult, true), gettype($getDataListsResult)), __LINE__);
        }
        $this->GetDataListsResult = $getDataListsResult;
        return $this;
    }
    /**
     * Get dataLists value
     * @return \\NineDotMedia\viapost-php\ArrayOfAnyType|null
     */
    public function getDataLists()
    {
        return $this->dataLists;
    }
    /**
     * Set dataLists value
     * @param \\NineDotMedia\viapost-php\ArrayOfAnyType $dataLists
     * @return \\NineDotMedia\viapost-php\GetDataListsResponse
     */
    public function setDataLists(\\NineDotMedia\viapost-php\ArrayOfAnyType $dataLists = null)
    {
        $this->dataLists = $dataLists;
        return $this;
    }
    /**
     * Get returnMessage value
     * @return string|null
     */
    public function getReturnMessage()
    {
        return $this->returnMessage;
    }
    /**
     * Set returnMessage value
     * @param string $returnMessage
     * @return \\NineDotMedia\viapost-php\GetDataListsResponse
     */
    public function setReturnMessage($returnMessage = null)
    {
        // validation for constraint: string
        if (!is_null($returnMessage) && !is_string($returnMessage)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($returnMessage, true), gettype($returnMessage)), __LINE__);
        }
        $this->returnMessage = $returnMessage;
        return $this;
    }
}
