<?php

namespace \NineDotMedia\Viapost\Struct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GenerateMappingWithIDResponse Struct
 * @subpackage Structs
 */
class GenerateMappingWithIDResponse extends AbstractStructBase
{
    /**
     * The GenerateMappingWithIDResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $GenerateMappingWithIDResult;
    /**
     * The mappingID
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var int
     */
    public $mappingID;
    /**
     * The strReturnMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $strReturnMessage;
    /**
     * Constructor method for GenerateMappingWithIDResponse
     * @uses GenerateMappingWithIDResponse::setGenerateMappingWithIDResult()
     * @uses GenerateMappingWithIDResponse::setMappingID()
     * @uses GenerateMappingWithIDResponse::setStrReturnMessage()
     * @param bool $generateMappingWithIDResult
     * @param int $mappingID
     * @param string $strReturnMessage
     */
    public function __construct($generateMappingWithIDResult = null, $mappingID = null, $strReturnMessage = null)
    {
        $this
            ->setGenerateMappingWithIDResult($generateMappingWithIDResult)
            ->setMappingID($mappingID)
            ->setStrReturnMessage($strReturnMessage);
    }
    /**
     * Get GenerateMappingWithIDResult value
     * @return bool
     */
    public function getGenerateMappingWithIDResult()
    {
        return $this->GenerateMappingWithIDResult;
    }
    /**
     * Set GenerateMappingWithIDResult value
     * @param bool $generateMappingWithIDResult
     * @return \\NineDotMedia\Viapost\Struct\GenerateMappingWithIDResponse
     */
    public function setGenerateMappingWithIDResult($generateMappingWithIDResult = null)
    {
        // validation for constraint: boolean
        if (!is_null($generateMappingWithIDResult) && !is_bool($generateMappingWithIDResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($generateMappingWithIDResult, true), gettype($generateMappingWithIDResult)), __LINE__);
        }
        $this->GenerateMappingWithIDResult = $generateMappingWithIDResult;
        return $this;
    }
    /**
     * Get mappingID value
     * @return int
     */
    public function getMappingID()
    {
        return $this->mappingID;
    }
    /**
     * Set mappingID value
     * @param int $mappingID
     * @return \\NineDotMedia\Viapost\Struct\GenerateMappingWithIDResponse
     */
    public function setMappingID($mappingID = null)
    {
        // validation for constraint: int
        if (!is_null($mappingID) && !(is_int($mappingID) || ctype_digit($mappingID))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($mappingID, true), gettype($mappingID)), __LINE__);
        }
        $this->mappingID = $mappingID;
        return $this;
    }
    /**
     * Get strReturnMessage value
     * @return string|null
     */
    public function getStrReturnMessage()
    {
        return $this->strReturnMessage;
    }
    /**
     * Set strReturnMessage value
     * @param string $strReturnMessage
     * @return \\NineDotMedia\Viapost\Struct\GenerateMappingWithIDResponse
     */
    public function setStrReturnMessage($strReturnMessage = null)
    {
        // validation for constraint: string
        if (!is_null($strReturnMessage) && !is_string($strReturnMessage)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($strReturnMessage, true), gettype($strReturnMessage)), __LINE__);
        }
        $this->strReturnMessage = $strReturnMessage;
        return $this;
    }
}
