<?php

namespace NineDotMedia\viapost-php\Struct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ChangePasswordResponse Struct
 * @subpackage Structs
 */
class ChangePasswordResponse extends AbstractStructBase
{
    /**
     * The ChangePasswordResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $ChangePasswordResult;
    /**
     * The message
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $message;
    /**
     * Constructor method for ChangePasswordResponse
     * @uses ChangePasswordResponse::setChangePasswordResult()
     * @uses ChangePasswordResponse::setMessage()
     * @param bool $changePasswordResult
     * @param string $message
     */
    public function __construct($changePasswordResult = null, $message = null)
    {
        $this
            ->setChangePasswordResult($changePasswordResult)
            ->setMessage($message);
    }
    /**
     * Get ChangePasswordResult value
     * @return bool
     */
    public function getChangePasswordResult()
    {
        return $this->ChangePasswordResult;
    }
    /**
     * Set ChangePasswordResult value
     * @param bool $changePasswordResult
     * @return \NineDotMedia\viapost-php\Struct\ChangePasswordResponse
     */
    public function setChangePasswordResult($changePasswordResult = null)
    {
        // validation for constraint: boolean
        if (!is_null($changePasswordResult) && !is_bool($changePasswordResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($changePasswordResult, true), gettype($changePasswordResult)), __LINE__);
        }
        $this->ChangePasswordResult = $changePasswordResult;
        return $this;
    }
    /**
     * Get message value
     * @return string|null
     */
    public function getMessage()
    {
        return $this->message;
    }
    /**
     * Set message value
     * @param string $message
     * @return \NineDotMedia\viapost-php\Struct\ChangePasswordResponse
     */
    public function setMessage($message = null)
    {
        // validation for constraint: string
        if (!is_null($message) && !is_string($message)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($message, true), gettype($message)), __LINE__);
        }
        $this->message = $message;
        return $this;
    }
}
