<?php

namespace \NineDotMedia\viapost-php;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GenerateMappingWithDefaultNameWithIDResponse StructType
 * @subpackage Structs
 */
class GenerateMappingWithDefaultNameWithIDResponse extends AbstractStructBase
{
    /**
     * The GenerateMappingWithDefaultNameWithIDResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $GenerateMappingWithDefaultNameWithIDResult;
    /**
     * 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 GenerateMappingWithDefaultNameWithIDResponse
     * @uses GenerateMappingWithDefaultNameWithIDResponse::setGenerateMappingWithDefaultNameWithIDResult()
     * @uses GenerateMappingWithDefaultNameWithIDResponse::setMappingID()
     * @uses GenerateMappingWithDefaultNameWithIDResponse::setStrReturnMessage()
     * @param bool $generateMappingWithDefaultNameWithIDResult
     * @param int $mappingID
     * @param string $strReturnMessage
     */
    public function __construct($generateMappingWithDefaultNameWithIDResult = null, $mappingID = null, $strReturnMessage = null)
    {
        $this
            ->setGenerateMappingWithDefaultNameWithIDResult($generateMappingWithDefaultNameWithIDResult)
            ->setMappingID($mappingID)
            ->setStrReturnMessage($strReturnMessage);
    }
    /**
     * Get GenerateMappingWithDefaultNameWithIDResult value
     * @return bool
     */
    public function getGenerateMappingWithDefaultNameWithIDResult()
    {
        return $this->GenerateMappingWithDefaultNameWithIDResult;
    }
    /**
     * Set GenerateMappingWithDefaultNameWithIDResult value
     * @param bool $generateMappingWithDefaultNameWithIDResult
     * @return \\NineDotMedia\viapost-php\GenerateMappingWithDefaultNameWithIDResponse
     */
    public function setGenerateMappingWithDefaultNameWithIDResult($generateMappingWithDefaultNameWithIDResult = null)
    {
        // validation for constraint: boolean
        if (!is_null($generateMappingWithDefaultNameWithIDResult) && !is_bool($generateMappingWithDefaultNameWithIDResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($generateMappingWithDefaultNameWithIDResult, true), gettype($generateMappingWithDefaultNameWithIDResult)), __LINE__);
        }
        $this->GenerateMappingWithDefaultNameWithIDResult = $generateMappingWithDefaultNameWithIDResult;
        return $this;
    }
    /**
     * Get mappingID value
     * @return int
     */
    public function getMappingID()
    {
        return $this->mappingID;
    }
    /**
     * Set mappingID value
     * @param int $mappingID
     * @return \\NineDotMedia\viapost-php\GenerateMappingWithDefaultNameWithIDResponse
     */
    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-php\GenerateMappingWithDefaultNameWithIDResponse
     */
    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;
    }
}
