<?php

namespace \NineDotMedia\viapost-php;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for MailMergeWithExceptionsResponse StructType
 * @subpackage Structs
 */
class MailMergeWithExceptionsResponse extends AbstractStructBase
{
    /**
     * The MailMergeWithExceptionsResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $MailMergeWithExceptionsResult;
    /**
     * The myCustomerAPILetter
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\NineDotMedia\viapost-php\CustomerAPILetter
     */
    public $myCustomerAPILetter;
    /**
     * The sReturnMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $sReturnMessage;
    /**
     * Constructor method for MailMergeWithExceptionsResponse
     * @uses MailMergeWithExceptionsResponse::setMailMergeWithExceptionsResult()
     * @uses MailMergeWithExceptionsResponse::setMyCustomerAPILetter()
     * @uses MailMergeWithExceptionsResponse::setSReturnMessage()
     * @param bool $mailMergeWithExceptionsResult
     * @param \\NineDotMedia\viapost-php\CustomerAPILetter $myCustomerAPILetter
     * @param string $sReturnMessage
     */
    public function __construct($mailMergeWithExceptionsResult = null, \\NineDotMedia\viapost-php\CustomerAPILetter $myCustomerAPILetter = null, $sReturnMessage = null)
    {
        $this
            ->setMailMergeWithExceptionsResult($mailMergeWithExceptionsResult)
            ->setMyCustomerAPILetter($myCustomerAPILetter)
            ->setSReturnMessage($sReturnMessage);
    }
    /**
     * Get MailMergeWithExceptionsResult value
     * @return bool
     */
    public function getMailMergeWithExceptionsResult()
    {
        return $this->MailMergeWithExceptionsResult;
    }
    /**
     * Set MailMergeWithExceptionsResult value
     * @param bool $mailMergeWithExceptionsResult
     * @return \\NineDotMedia\viapost-php\MailMergeWithExceptionsResponse
     */
    public function setMailMergeWithExceptionsResult($mailMergeWithExceptionsResult = null)
    {
        // validation for constraint: boolean
        if (!is_null($mailMergeWithExceptionsResult) && !is_bool($mailMergeWithExceptionsResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($mailMergeWithExceptionsResult, true), gettype($mailMergeWithExceptionsResult)), __LINE__);
        }
        $this->MailMergeWithExceptionsResult = $mailMergeWithExceptionsResult;
        return $this;
    }
    /**
     * Get myCustomerAPILetter value
     * @return \\NineDotMedia\viapost-php\CustomerAPILetter|null
     */
    public function getMyCustomerAPILetter()
    {
        return $this->myCustomerAPILetter;
    }
    /**
     * Set myCustomerAPILetter value
     * @param \\NineDotMedia\viapost-php\CustomerAPILetter $myCustomerAPILetter
     * @return \\NineDotMedia\viapost-php\MailMergeWithExceptionsResponse
     */
    public function setMyCustomerAPILetter(\\NineDotMedia\viapost-php\CustomerAPILetter $myCustomerAPILetter = null)
    {
        $this->myCustomerAPILetter = $myCustomerAPILetter;
        return $this;
    }
    /**
     * Get sReturnMessage value
     * @return string|null
     */
    public function getSReturnMessage()
    {
        return $this->sReturnMessage;
    }
    /**
     * Set sReturnMessage value
     * @param string $sReturnMessage
     * @return \\NineDotMedia\viapost-php\MailMergeWithExceptionsResponse
     */
    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;
    }
}
