<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_GenericDataCatalogueRQ StructType
 * @subpackage Structs
 */
class JP_GenericDataCatalogueRQ extends AbstractStructBase
{
    /**
     * The Login
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_Login
     */
    public $Login;
    /**
     * The GenericDataCatalogueRequest
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_GenericDataCatalogueRequest
     */
    public $GenericDataCatalogueRequest;
    /**
     * The RestrictedOptions
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_RestrictedOptions
     */
    public $RestrictedOptions;
    /**
     * The Version
     * @var string
     */
    public $Version;
    /**
     * The Language
     * @var string
     */
    public $Language;
    /**
     * Constructor method for JP_GenericDataCatalogueRQ
     * @uses JP_GenericDataCatalogueRQ::setLogin()
     * @uses JP_GenericDataCatalogueRQ::setGenericDataCatalogueRequest()
     * @uses JP_GenericDataCatalogueRQ::setRestrictedOptions()
     * @uses JP_GenericDataCatalogueRQ::setVersion()
     * @uses JP_GenericDataCatalogueRQ::setLanguage()
     * @param \StructType\JP_Login $login
     * @param \StructType\JP_GenericDataCatalogueRequest $genericDataCatalogueRequest
     * @param \StructType\JP_RestrictedOptions $restrictedOptions
     * @param string $version
     * @param string $language
     */
    public function __construct(\StructType\JP_Login $login = null, \StructType\JP_GenericDataCatalogueRequest $genericDataCatalogueRequest = null, \StructType\JP_RestrictedOptions $restrictedOptions = null, $version = null, $language = null)
    {
        $this
            ->setLogin($login)
            ->setGenericDataCatalogueRequest($genericDataCatalogueRequest)
            ->setRestrictedOptions($restrictedOptions)
            ->setVersion($version)
            ->setLanguage($language);
    }
    /**
     * Get Login value
     * @return \StructType\JP_Login|null
     */
    public function getLogin()
    {
        return $this->Login;
    }
    /**
     * Set Login value
     * @param \StructType\JP_Login $login
     * @return \StructType\JP_GenericDataCatalogueRQ
     */
    public function setLogin(\StructType\JP_Login $login = null)
    {
        $this->Login = $login;
        return $this;
    }
    /**
     * Get GenericDataCatalogueRequest value
     * @return \StructType\JP_GenericDataCatalogueRequest|null
     */
    public function getGenericDataCatalogueRequest()
    {
        return $this->GenericDataCatalogueRequest;
    }
    /**
     * Set GenericDataCatalogueRequest value
     * @param \StructType\JP_GenericDataCatalogueRequest $genericDataCatalogueRequest
     * @return \StructType\JP_GenericDataCatalogueRQ
     */
    public function setGenericDataCatalogueRequest(\StructType\JP_GenericDataCatalogueRequest $genericDataCatalogueRequest = null)
    {
        $this->GenericDataCatalogueRequest = $genericDataCatalogueRequest;
        return $this;
    }
    /**
     * Get RestrictedOptions value
     * @return \StructType\JP_RestrictedOptions|null
     */
    public function getRestrictedOptions()
    {
        return $this->RestrictedOptions;
    }
    /**
     * Set RestrictedOptions value
     * @param \StructType\JP_RestrictedOptions $restrictedOptions
     * @return \StructType\JP_GenericDataCatalogueRQ
     */
    public function setRestrictedOptions(\StructType\JP_RestrictedOptions $restrictedOptions = null)
    {
        $this->RestrictedOptions = $restrictedOptions;
        return $this;
    }
    /**
     * Get Version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->Version;
    }
    /**
     * Set Version value
     * @param string $version
     * @return \StructType\JP_GenericDataCatalogueRQ
     */
    public function setVersion($version = null)
    {
        // validation for constraint: string
        if (!is_null($version) && !is_string($version)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($version, true), gettype($version)), __LINE__);
        }
        $this->Version = $version;
        return $this;
    }
    /**
     * Get Language value
     * @return string|null
     */
    public function getLanguage()
    {
        return $this->Language;
    }
    /**
     * Set Language value
     * @param string $language
     * @return \StructType\JP_GenericDataCatalogueRQ
     */
    public function setLanguage($language = null)
    {
        // validation for constraint: string
        if (!is_null($language) && !is_string($language)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($language, true), gettype($language)), __LINE__);
        }
        $this->Language = $language;
        return $this;
    }
}
