<?php

namespace NineDotMedia\viapost-php\Struct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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