<?php

namespace NineDotMedia\viapost-php\Struct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for SendLetter Struct
 * @subpackage Structs
 */
class SendLetter extends AbstractStructBase
{
    /**
     * The sLoginToken
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $sLoginToken;
    /**
     * The addressName
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $addressName;
    /**
     * The address1
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $address1;
    /**
     * The address2
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $address2;
    /**
     * The address3
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $address3;
    /**
     * The address4
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $address4;
    /**
     * The address5
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $address5;
    /**
     * The postcode
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $postcode;
    /**
     * The firstClassStr
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $firstClassStr;
    /**
     * The insertsStr
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $insertsStr;
    /**
     * The costCentreStr
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $costCentreStr;
    /**
     * The affiliateGUID
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $affiliateGUID;
    /**
     * The jobRunIDStr
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $jobRunIDStr;
    /**
     * 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 SendLetter
     * @uses SendLetter::setSLoginToken()
     * @uses SendLetter::setAddressName()
     * @uses SendLetter::setAddress1()
     * @uses SendLetter::setAddress2()
     * @uses SendLetter::setAddress3()
     * @uses SendLetter::setAddress4()
     * @uses SendLetter::setAddress5()
     * @uses SendLetter::setPostcode()
     * @uses SendLetter::setFirstClassStr()
     * @uses SendLetter::setInsertsStr()
     * @uses SendLetter::setCostCentreStr()
     * @uses SendLetter::setAffiliateGUID()
     * @uses SendLetter::setJobRunIDStr()
     * @uses SendLetter::setMyCustomerAPILetter()
     * @uses SendLetter::setSReturnMessage()
     * @param string $sLoginToken
     * @param string $addressName
     * @param string $address1
     * @param string $address2
     * @param string $address3
     * @param string $address4
     * @param string $address5
     * @param string $postcode
     * @param string $firstClassStr
     * @param string $insertsStr
     * @param string $costCentreStr
     * @param string $affiliateGUID
     * @param string $jobRunIDStr
     * @param \NineDotMedia\viapost-php\Struct\CustomerAPILetter $myCustomerAPILetter
     * @param string $sReturnMessage
     */
    public function __construct($sLoginToken = null, $addressName = null, $address1 = null, $address2 = null, $address3 = null, $address4 = null, $address5 = null, $postcode = null, $firstClassStr = null, $insertsStr = null, $costCentreStr = null, $affiliateGUID = null, $jobRunIDStr = null, \NineDotMedia\viapost-php\Struct\CustomerAPILetter $myCustomerAPILetter = null, $sReturnMessage = null)
    {
        $this
            ->setSLoginToken($sLoginToken)
            ->setAddressName($addressName)
            ->setAddress1($address1)
            ->setAddress2($address2)
            ->setAddress3($address3)
            ->setAddress4($address4)
            ->setAddress5($address5)
            ->setPostcode($postcode)
            ->setFirstClassStr($firstClassStr)
            ->setInsertsStr($insertsStr)
            ->setCostCentreStr($costCentreStr)
            ->setAffiliateGUID($affiliateGUID)
            ->setJobRunIDStr($jobRunIDStr)
            ->setMyCustomerAPILetter($myCustomerAPILetter)
            ->setSReturnMessage($sReturnMessage);
    }
    /**
     * Get sLoginToken value
     * @return string|null
     */
    public function getSLoginToken()
    {
        return $this->sLoginToken;
    }
    /**
     * Set sLoginToken value
     * @param string $sLoginToken
     * @return \NineDotMedia\viapost-php\Struct\SendLetter
     */
    public function setSLoginToken($sLoginToken = null)
    {
        // validation for constraint: string
        if (!is_null($sLoginToken) && !is_string($sLoginToken)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($sLoginToken, true), gettype($sLoginToken)), __LINE__);
        }
        $this->sLoginToken = $sLoginToken;
        return $this;
    }
    /**
     * Get addressName value
     * @return string|null
     */
    public function getAddressName()
    {
        return $this->addressName;
    }
    /**
     * Set addressName value
     * @param string $addressName
     * @return \NineDotMedia\viapost-php\Struct\SendLetter
     */
    public function setAddressName($addressName = null)
    {
        // validation for constraint: string
        if (!is_null($addressName) && !is_string($addressName)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($addressName, true), gettype($addressName)), __LINE__);
        }
        $this->addressName = $addressName;
        return $this;
    }
    /**
     * Get address1 value
     * @return string|null
     */
    public function getAddress1()
    {
        return $this->address1;
    }
    /**
     * Set address1 value
     * @param string $address1
     * @return \NineDotMedia\viapost-php\Struct\SendLetter
     */
    public function setAddress1($address1 = null)
    {
        // validation for constraint: string
        if (!is_null($address1) && !is_string($address1)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($address1, true), gettype($address1)), __LINE__);
        }
        $this->address1 = $address1;
        return $this;
    }
    /**
     * Get address2 value
     * @return string|null
     */
    public function getAddress2()
    {
        return $this->address2;
    }
    /**
     * Set address2 value
     * @param string $address2
     * @return \NineDotMedia\viapost-php\Struct\SendLetter
     */
    public function setAddress2($address2 = null)
    {
        // validation for constraint: string
        if (!is_null($address2) && !is_string($address2)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($address2, true), gettype($address2)), __LINE__);
        }
        $this->address2 = $address2;
        return $this;
    }
    /**
     * Get address3 value
     * @return string|null
     */
    public function getAddress3()
    {
        return $this->address3;
    }
    /**
     * Set address3 value
     * @param string $address3
     * @return \NineDotMedia\viapost-php\Struct\SendLetter
     */
    public function setAddress3($address3 = null)
    {
        // validation for constraint: string
        if (!is_null($address3) && !is_string($address3)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($address3, true), gettype($address3)), __LINE__);
        }
        $this->address3 = $address3;
        return $this;
    }
    /**
     * Get address4 value
     * @return string|null
     */
    public function getAddress4()
    {
        return $this->address4;
    }
    /**
     * Set address4 value
     * @param string $address4
     * @return \NineDotMedia\viapost-php\Struct\SendLetter
     */
    public function setAddress4($address4 = null)
    {
        // validation for constraint: string
        if (!is_null($address4) && !is_string($address4)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($address4, true), gettype($address4)), __LINE__);
        }
        $this->address4 = $address4;
        return $this;
    }
    /**
     * Get address5 value
     * @return string|null
     */
    public function getAddress5()
    {
        return $this->address5;
    }
    /**
     * Set address5 value
     * @param string $address5
     * @return \NineDotMedia\viapost-php\Struct\SendLetter
     */
    public function setAddress5($address5 = null)
    {
        // validation for constraint: string
        if (!is_null($address5) && !is_string($address5)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($address5, true), gettype($address5)), __LINE__);
        }
        $this->address5 = $address5;
        return $this;
    }
    /**
     * Get postcode value
     * @return string|null
     */
    public function getPostcode()
    {
        return $this->postcode;
    }
    /**
     * Set postcode value
     * @param string $postcode
     * @return \NineDotMedia\viapost-php\Struct\SendLetter
     */
    public function setPostcode($postcode = null)
    {
        // validation for constraint: string
        if (!is_null($postcode) && !is_string($postcode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($postcode, true), gettype($postcode)), __LINE__);
        }
        $this->postcode = $postcode;
        return $this;
    }
    /**
     * Get firstClassStr value
     * @return string|null
     */
    public function getFirstClassStr()
    {
        return $this->firstClassStr;
    }
    /**
     * Set firstClassStr value
     * @param string $firstClassStr
     * @return \NineDotMedia\viapost-php\Struct\SendLetter
     */
    public function setFirstClassStr($firstClassStr = null)
    {
        // validation for constraint: string
        if (!is_null($firstClassStr) && !is_string($firstClassStr)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($firstClassStr, true), gettype($firstClassStr)), __LINE__);
        }
        $this->firstClassStr = $firstClassStr;
        return $this;
    }
    /**
     * Get insertsStr value
     * @return string|null
     */
    public function getInsertsStr()
    {
        return $this->insertsStr;
    }
    /**
     * Set insertsStr value
     * @param string $insertsStr
     * @return \NineDotMedia\viapost-php\Struct\SendLetter
     */
    public function setInsertsStr($insertsStr = null)
    {
        // validation for constraint: string
        if (!is_null($insertsStr) && !is_string($insertsStr)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($insertsStr, true), gettype($insertsStr)), __LINE__);
        }
        $this->insertsStr = $insertsStr;
        return $this;
    }
    /**
     * Get costCentreStr value
     * @return string|null
     */
    public function getCostCentreStr()
    {
        return $this->costCentreStr;
    }
    /**
     * Set costCentreStr value
     * @param string $costCentreStr
     * @return \NineDotMedia\viapost-php\Struct\SendLetter
     */
    public function setCostCentreStr($costCentreStr = null)
    {
        // validation for constraint: string
        if (!is_null($costCentreStr) && !is_string($costCentreStr)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($costCentreStr, true), gettype($costCentreStr)), __LINE__);
        }
        $this->costCentreStr = $costCentreStr;
        return $this;
    }
    /**
     * Get affiliateGUID value
     * @return string|null
     */
    public function getAffiliateGUID()
    {
        return $this->affiliateGUID;
    }
    /**
     * Set affiliateGUID value
     * @param string $affiliateGUID
     * @return \NineDotMedia\viapost-php\Struct\SendLetter
     */
    public function setAffiliateGUID($affiliateGUID = null)
    {
        // validation for constraint: string
        if (!is_null($affiliateGUID) && !is_string($affiliateGUID)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($affiliateGUID, true), gettype($affiliateGUID)), __LINE__);
        }
        $this->affiliateGUID = $affiliateGUID;
        return $this;
    }
    /**
     * Get jobRunIDStr value
     * @return string|null
     */
    public function getJobRunIDStr()
    {
        return $this->jobRunIDStr;
    }
    /**
     * Set jobRunIDStr value
     * @param string $jobRunIDStr
     * @return \NineDotMedia\viapost-php\Struct\SendLetter
     */
    public function setJobRunIDStr($jobRunIDStr = null)
    {
        // validation for constraint: string
        if (!is_null($jobRunIDStr) && !is_string($jobRunIDStr)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($jobRunIDStr, true), gettype($jobRunIDStr)), __LINE__);
        }
        $this->jobRunIDStr = $jobRunIDStr;
        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\SendLetter
     */
    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\SendLetter
     */
    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;
    }
}
