<?php

namespace NineDotMedia\viapost-php\Struct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetDocumentationResponse Struct
 * @subpackage Structs
 */
class GetDocumentationResponse extends AbstractStructBase
{
    /**
     * The GetDocumentationResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $GetDocumentationResult;
    /**
     * The documentUrls
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \NineDotMedia\viapost-php\Array\ArrayOfAnyType
     */
    public $documentUrls;
    /**
     * The strReturnMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $strReturnMessage;
    /**
     * Constructor method for GetDocumentationResponse
     * @uses GetDocumentationResponse::setGetDocumentationResult()
     * @uses GetDocumentationResponse::setDocumentUrls()
     * @uses GetDocumentationResponse::setStrReturnMessage()
     * @param bool $getDocumentationResult
     * @param \NineDotMedia\viapost-php\Array\ArrayOfAnyType $documentUrls
     * @param string $strReturnMessage
     */
    public function __construct($getDocumentationResult = null, \NineDotMedia\viapost-php\Array\ArrayOfAnyType $documentUrls = null, $strReturnMessage = null)
    {
        $this
            ->setGetDocumentationResult($getDocumentationResult)
            ->setDocumentUrls($documentUrls)
            ->setStrReturnMessage($strReturnMessage);
    }
    /**
     * Get GetDocumentationResult value
     * @return bool
     */
    public function getGetDocumentationResult()
    {
        return $this->GetDocumentationResult;
    }
    /**
     * Set GetDocumentationResult value
     * @param bool $getDocumentationResult
     * @return \NineDotMedia\viapost-php\Struct\GetDocumentationResponse
     */
    public function setGetDocumentationResult($getDocumentationResult = null)
    {
        // validation for constraint: boolean
        if (!is_null($getDocumentationResult) && !is_bool($getDocumentationResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($getDocumentationResult, true), gettype($getDocumentationResult)), __LINE__);
        }
        $this->GetDocumentationResult = $getDocumentationResult;
        return $this;
    }
    /**
     * Get documentUrls value
     * @return \NineDotMedia\viapost-php\Array\ArrayOfAnyType|null
     */
    public function getDocumentUrls()
    {
        return $this->documentUrls;
    }
    /**
     * Set documentUrls value
     * @param \NineDotMedia\viapost-php\Array\ArrayOfAnyType $documentUrls
     * @return \NineDotMedia\viapost-php\Struct\GetDocumentationResponse
     */
    public function setDocumentUrls(\NineDotMedia\viapost-php\Array\ArrayOfAnyType $documentUrls = null)
    {
        $this->documentUrls = $documentUrls;
        return $this;
    }
    /**
     * Get strReturnMessage value
     * @return string|null
     */
    public function getStrReturnMessage()
    {
        return $this->strReturnMessage;
    }
    /**
     * Set strReturnMessage value
     * @param string $strReturnMessage
     * @return \NineDotMedia\viapost-php\Struct\GetDocumentationResponse
     */
    public function setStrReturnMessage($strReturnMessage = null)
    {
        // validation for constraint: string
        if (!is_null($strReturnMessage) && !is_string($strReturnMessage)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($strReturnMessage, true), gettype($strReturnMessage)), __LINE__);
        }
        $this->strReturnMessage = $strReturnMessage;
        return $this;
    }
}
