<?php

namespace \NineDotMedia\viapost-php;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetLibraryMappingsResponse StructType
 * @subpackage Structs
 */
class GetLibraryMappingsResponse extends AbstractStructBase
{
    /**
     * The GetLibraryMappingsResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $GetLibraryMappingsResult;
    /**
     * The mappings
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\NineDotMedia\viapost-php\ArrayOfAnyType
     */
    public $mappings;
    /**
     * The returnMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $returnMessage;
    /**
     * Constructor method for GetLibraryMappingsResponse
     * @uses GetLibraryMappingsResponse::setGetLibraryMappingsResult()
     * @uses GetLibraryMappingsResponse::setMappings()
     * @uses GetLibraryMappingsResponse::setReturnMessage()
     * @param bool $getLibraryMappingsResult
     * @param \\NineDotMedia\viapost-php\ArrayOfAnyType $mappings
     * @param string $returnMessage
     */
    public function __construct($getLibraryMappingsResult = null, \\NineDotMedia\viapost-php\ArrayOfAnyType $mappings = null, $returnMessage = null)
    {
        $this
            ->setGetLibraryMappingsResult($getLibraryMappingsResult)
            ->setMappings($mappings)
            ->setReturnMessage($returnMessage);
    }
    /**
     * Get GetLibraryMappingsResult value
     * @return bool
     */
    public function getGetLibraryMappingsResult()
    {
        return $this->GetLibraryMappingsResult;
    }
    /**
     * Set GetLibraryMappingsResult value
     * @param bool $getLibraryMappingsResult
     * @return \\NineDotMedia\viapost-php\GetLibraryMappingsResponse
     */
    public function setGetLibraryMappingsResult($getLibraryMappingsResult = null)
    {
        // validation for constraint: boolean
        if (!is_null($getLibraryMappingsResult) && !is_bool($getLibraryMappingsResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($getLibraryMappingsResult, true), gettype($getLibraryMappingsResult)), __LINE__);
        }
        $this->GetLibraryMappingsResult = $getLibraryMappingsResult;
        return $this;
    }
    /**
     * Get mappings value
     * @return \\NineDotMedia\viapost-php\ArrayOfAnyType|null
     */
    public function getMappings()
    {
        return $this->mappings;
    }
    /**
     * Set mappings value
     * @param \\NineDotMedia\viapost-php\ArrayOfAnyType $mappings
     * @return \\NineDotMedia\viapost-php\GetLibraryMappingsResponse
     */
    public function setMappings(\\NineDotMedia\viapost-php\ArrayOfAnyType $mappings = null)
    {
        $this->mappings = $mappings;
        return $this;
    }
    /**
     * Get returnMessage value
     * @return string|null
     */
    public function getReturnMessage()
    {
        return $this->returnMessage;
    }
    /**
     * Set returnMessage value
     * @param string $returnMessage
     * @return \\NineDotMedia\viapost-php\GetLibraryMappingsResponse
     */
    public function setReturnMessage($returnMessage = null)
    {
        // validation for constraint: string
        if (!is_null($returnMessage) && !is_string($returnMessage)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($returnMessage, true), gettype($returnMessage)), __LINE__);
        }
        $this->returnMessage = $returnMessage;
        return $this;
    }
}
