<?php

namespace \NineDotMedia\viapost-php;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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