<?php

namespace \NineDotMedia\viapost-php;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetDataListUrlResponse StructType
 * @subpackage Structs
 */
class GetDataListUrlResponse extends AbstractStructBase
{
    /**
     * The GetDataListUrlResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $GetDataListUrlResult;
    /**
     * The url
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $url;
    /**
     * The returnMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $returnMessage;
    /**
     * Constructor method for GetDataListUrlResponse
     * @uses GetDataListUrlResponse::setGetDataListUrlResult()
     * @uses GetDataListUrlResponse::setUrl()
     * @uses GetDataListUrlResponse::setReturnMessage()
     * @param bool $getDataListUrlResult
     * @param string $url
     * @param string $returnMessage
     */
    public function __construct($getDataListUrlResult = null, $url = null, $returnMessage = null)
    {
        $this
            ->setGetDataListUrlResult($getDataListUrlResult)
            ->setUrl($url)
            ->setReturnMessage($returnMessage);
    }
    /**
     * Get GetDataListUrlResult value
     * @return bool
     */
    public function getGetDataListUrlResult()
    {
        return $this->GetDataListUrlResult;
    }
    /**
     * Set GetDataListUrlResult value
     * @param bool $getDataListUrlResult
     * @return \\NineDotMedia\viapost-php\GetDataListUrlResponse
     */
    public function setGetDataListUrlResult($getDataListUrlResult = null)
    {
        // validation for constraint: boolean
        if (!is_null($getDataListUrlResult) && !is_bool($getDataListUrlResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($getDataListUrlResult, true), gettype($getDataListUrlResult)), __LINE__);
        }
        $this->GetDataListUrlResult = $getDataListUrlResult;
        return $this;
    }
    /**
     * Get url value
     * @return string|null
     */
    public function getUrl()
    {
        return $this->url;
    }
    /**
     * Set url value
     * @param string $url
     * @return \\NineDotMedia\viapost-php\GetDataListUrlResponse
     */
    public function setUrl($url = null)
    {
        // validation for constraint: string
        if (!is_null($url) && !is_string($url)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($url, true), gettype($url)), __LINE__);
        }
        $this->url = $url;
        return $this;
    }
    /**
     * Get returnMessage value
     * @return string|null
     */
    public function getReturnMessage()
    {
        return $this->returnMessage;
    }
    /**
     * Set returnMessage value
     * @param string $returnMessage
     * @return \\NineDotMedia\viapost-php\GetDataListUrlResponse
     */
    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;
    }
}
