<?php

namespace \NineDotMedia\viapost-php;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetMailingListByIDResponse StructType
 * @subpackage Structs
 */
class GetMailingListByIDResponse extends AbstractStructBase
{
    /**
     * The GetMailingListByIDResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $GetMailingListByIDResult;
    /**
     * The sReturnMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $sReturnMessage;
    /**
     * The returnMailingList
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\NineDotMedia\viapost-php\CustomerAPIMailingList
     */
    public $returnMailingList;
    /**
     * Constructor method for GetMailingListByIDResponse
     * @uses GetMailingListByIDResponse::setGetMailingListByIDResult()
     * @uses GetMailingListByIDResponse::setSReturnMessage()
     * @uses GetMailingListByIDResponse::setReturnMailingList()
     * @param bool $getMailingListByIDResult
     * @param string $sReturnMessage
     * @param \\NineDotMedia\viapost-php\CustomerAPIMailingList $returnMailingList
     */
    public function __construct($getMailingListByIDResult = null, $sReturnMessage = null, \\NineDotMedia\viapost-php\CustomerAPIMailingList $returnMailingList = null)
    {
        $this
            ->setGetMailingListByIDResult($getMailingListByIDResult)
            ->setSReturnMessage($sReturnMessage)
            ->setReturnMailingList($returnMailingList);
    }
    /**
     * Get GetMailingListByIDResult value
     * @return bool
     */
    public function getGetMailingListByIDResult()
    {
        return $this->GetMailingListByIDResult;
    }
    /**
     * Set GetMailingListByIDResult value
     * @param bool $getMailingListByIDResult
     * @return \\NineDotMedia\viapost-php\GetMailingListByIDResponse
     */
    public function setGetMailingListByIDResult($getMailingListByIDResult = null)
    {
        // validation for constraint: boolean
        if (!is_null($getMailingListByIDResult) && !is_bool($getMailingListByIDResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($getMailingListByIDResult, true), gettype($getMailingListByIDResult)), __LINE__);
        }
        $this->GetMailingListByIDResult = $getMailingListByIDResult;
        return $this;
    }
    /**
     * Get sReturnMessage value
     * @return string|null
     */
    public function getSReturnMessage()
    {
        return $this->sReturnMessage;
    }
    /**
     * Set sReturnMessage value
     * @param string $sReturnMessage
     * @return \\NineDotMedia\viapost-php\GetMailingListByIDResponse
     */
    public function setSReturnMessage($sReturnMessage = null)
    {
        // validation for constraint: string
        if (!is_null($sReturnMessage) && !is_string($sReturnMessage)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($sReturnMessage, true), gettype($sReturnMessage)), __LINE__);
        }
        $this->sReturnMessage = $sReturnMessage;
        return $this;
    }
    /**
     * Get returnMailingList value
     * @return \\NineDotMedia\viapost-php\CustomerAPIMailingList|null
     */
    public function getReturnMailingList()
    {
        return $this->returnMailingList;
    }
    /**
     * Set returnMailingList value
     * @param \\NineDotMedia\viapost-php\CustomerAPIMailingList $returnMailingList
     * @return \\NineDotMedia\viapost-php\GetMailingListByIDResponse
     */
    public function setReturnMailingList(\\NineDotMedia\viapost-php\CustomerAPIMailingList $returnMailingList = null)
    {
        $this->returnMailingList = $returnMailingList;
        return $this;
    }
}
