<?php

namespace NineDotMedia\viapost-php\Struct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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