<?php

namespace NineDotMedia\viapost-php\Struct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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