<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Create_Position_RequestType StructType
 * Meta information extracted from the WSDL
 * - documentation: Wrapper for Create Open Position Web Service.
 * @subpackage Structs
 */
class Create_Position_RequestType extends AbstractStructBase
{
    /**
     * The Business_Process_Parameters
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\Business_Process_ParametersType
     */
    public $Business_Process_Parameters;
    /**
     * The Create_Position_Data
     * @var \StructType\Create_Position_DataType
     */
    public $Create_Position_Data;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Create_Position_RequestType
     * @uses Create_Position_RequestType::setBusiness_Process_Parameters()
     * @uses Create_Position_RequestType::setCreate_Position_Data()
     * @uses Create_Position_RequestType::setVersion()
     * @param \StructType\Business_Process_ParametersType $business_Process_Parameters
     * @param \StructType\Create_Position_DataType $create_Position_Data
     * @param string $version
     */
    public function __construct(\StructType\Business_Process_ParametersType $business_Process_Parameters = null, \StructType\Create_Position_DataType $create_Position_Data = null, $version = null)
    {
        $this
            ->setBusiness_Process_Parameters($business_Process_Parameters)
            ->setCreate_Position_Data($create_Position_Data)
            ->setVersion($version);
    }
    /**
     * Get Business_Process_Parameters value
     * @return \StructType\Business_Process_ParametersType|null
     */
    public function getBusiness_Process_Parameters()
    {
        return $this->Business_Process_Parameters;
    }
    /**
     * Set Business_Process_Parameters value
     * @param \StructType\Business_Process_ParametersType $business_Process_Parameters
     * @return \StructType\Create_Position_RequestType
     */
    public function setBusiness_Process_Parameters(\StructType\Business_Process_ParametersType $business_Process_Parameters = null)
    {
        $this->Business_Process_Parameters = $business_Process_Parameters;
        return $this;
    }
    /**
     * Get Create_Position_Data value
     * @return \StructType\Create_Position_DataType|null
     */
    public function getCreate_Position_Data()
    {
        return $this->Create_Position_Data;
    }
    /**
     * Set Create_Position_Data value
     * @param \StructType\Create_Position_DataType $create_Position_Data
     * @return \StructType\Create_Position_RequestType
     */
    public function setCreate_Position_Data(\StructType\Create_Position_DataType $create_Position_Data = null)
    {
        $this->Create_Position_Data = $create_Position_Data;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Create_Position_RequestType
     */
    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;
    }
}
