<?php

namespace \Losc\CucmBundle\Model\Webservice\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for UpdateSelfProvisioningReq StructType
 * @subpackage Structs
 */
class UpdateSelfProvisioningReq extends APIRequest
{
    /**
     * The requireAuthentication
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $requireAuthentication;
    /**
     * The allowAuthentication
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $allowAuthentication;
    /**
     * The authenticationCode
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $authenticationCode;
    /**
     * The ctiRoutePoint
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $ctiRoutePoint;
    /**
     * The applicationUser
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $applicationUser;
    /**
     * The removeLanguages
     * Meta information extracted from the WSDL
     * - choice: removeLanguages | addLanguages | languages
     * - choiceMaxOccurs: 1
     * - choiceMinOccurs: 0
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\RemoveLanguages
     */
    public $removeLanguages;
    /**
     * The addLanguages
     * Meta information extracted from the WSDL
     * - choice: removeLanguages | addLanguages | languages
     * - choiceMaxOccurs: 1
     * - choiceMinOccurs: 0
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\AddLanguages
     */
    public $addLanguages;
    /**
     * The languages
     * Meta information extracted from the WSDL
     * - choice: removeLanguages | addLanguages | languages
     * - choiceMaxOccurs: 1
     * - choiceMinOccurs: 0
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\Languages
     */
    public $languages;
    /**
     * Constructor method for UpdateSelfProvisioningReq
     * @uses UpdateSelfProvisioningReq::setRequireAuthentication()
     * @uses UpdateSelfProvisioningReq::setAllowAuthentication()
     * @uses UpdateSelfProvisioningReq::setAuthenticationCode()
     * @uses UpdateSelfProvisioningReq::setCtiRoutePoint()
     * @uses UpdateSelfProvisioningReq::setApplicationUser()
     * @uses UpdateSelfProvisioningReq::setRemoveLanguages()
     * @uses UpdateSelfProvisioningReq::setAddLanguages()
     * @uses UpdateSelfProvisioningReq::setLanguages()
     * @param string $requireAuthentication
     * @param string $allowAuthentication
     * @param string $authenticationCode
     * @param string $ctiRoutePoint
     * @param string $applicationUser
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\RemoveLanguages $removeLanguages
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\AddLanguages $addLanguages
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\Languages $languages
     */
    public function __construct($requireAuthentication = null, $allowAuthentication = null, $authenticationCode = null, $ctiRoutePoint = null, $applicationUser = null, \\Losc\CucmBundle\Model\Webservice\StructType\RemoveLanguages $removeLanguages = null, \\Losc\CucmBundle\Model\Webservice\StructType\AddLanguages $addLanguages = null, \\Losc\CucmBundle\Model\Webservice\StructType\Languages $languages = null)
    {
        $this
            ->setRequireAuthentication($requireAuthentication)
            ->setAllowAuthentication($allowAuthentication)
            ->setAuthenticationCode($authenticationCode)
            ->setCtiRoutePoint($ctiRoutePoint)
            ->setApplicationUser($applicationUser)
            ->setRemoveLanguages($removeLanguages)
            ->setAddLanguages($addLanguages)
            ->setLanguages($languages);
    }
    /**
     * Get requireAuthentication value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getRequireAuthentication()
    {
        return isset($this->requireAuthentication) ? $this->requireAuthentication : null;
    }
    /**
     * Set requireAuthentication value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $requireAuthentication
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateSelfProvisioningReq
     */
    public function setRequireAuthentication($requireAuthentication = null)
    {
        if (is_null($requireAuthentication) || (is_array($requireAuthentication) && empty($requireAuthentication))) {
            unset($this->requireAuthentication);
        } else {
            $this->requireAuthentication = $requireAuthentication;
        }
        return $this;
    }
    /**
     * Get allowAuthentication value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getAllowAuthentication()
    {
        return isset($this->allowAuthentication) ? $this->allowAuthentication : null;
    }
    /**
     * Set allowAuthentication value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $allowAuthentication
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateSelfProvisioningReq
     */
    public function setAllowAuthentication($allowAuthentication = null)
    {
        if (is_null($allowAuthentication) || (is_array($allowAuthentication) && empty($allowAuthentication))) {
            unset($this->allowAuthentication);
        } else {
            $this->allowAuthentication = $allowAuthentication;
        }
        return $this;
    }
    /**
     * Get authenticationCode value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getAuthenticationCode()
    {
        return isset($this->authenticationCode) ? $this->authenticationCode : null;
    }
    /**
     * Set authenticationCode value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $authenticationCode
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateSelfProvisioningReq
     */
    public function setAuthenticationCode($authenticationCode = null)
    {
        if (is_null($authenticationCode) || (is_array($authenticationCode) && empty($authenticationCode))) {
            unset($this->authenticationCode);
        } else {
            $this->authenticationCode = $authenticationCode;
        }
        return $this;
    }
    /**
     * Get ctiRoutePoint value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getCtiRoutePoint()
    {
        return isset($this->ctiRoutePoint) ? $this->ctiRoutePoint : null;
    }
    /**
     * Set ctiRoutePoint value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $ctiRoutePoint
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateSelfProvisioningReq
     */
    public function setCtiRoutePoint($ctiRoutePoint = null)
    {
        if (is_null($ctiRoutePoint) || (is_array($ctiRoutePoint) && empty($ctiRoutePoint))) {
            unset($this->ctiRoutePoint);
        } else {
            $this->ctiRoutePoint = $ctiRoutePoint;
        }
        return $this;
    }
    /**
     * Get applicationUser value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getApplicationUser()
    {
        return isset($this->applicationUser) ? $this->applicationUser : null;
    }
    /**
     * Set applicationUser value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $applicationUser
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateSelfProvisioningReq
     */
    public function setApplicationUser($applicationUser = null)
    {
        if (is_null($applicationUser) || (is_array($applicationUser) && empty($applicationUser))) {
            unset($this->applicationUser);
        } else {
            $this->applicationUser = $applicationUser;
        }
        return $this;
    }
    /**
     * Get removeLanguages value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RemoveLanguages|null
     */
    public function getRemoveLanguages()
    {
        return isset($this->removeLanguages) ? $this->removeLanguages : null;
    }
    /**
     * Set removeLanguages value
     * This property belongs to a choice that allows only one property to exist. It is
     * therefore removable from the request, consequently if the value assigned to this
     * property is null, the property is removed from this object
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\RemoveLanguages $removeLanguages
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateSelfProvisioningReq
     */
    public function setRemoveLanguages(\\Losc\CucmBundle\Model\Webservice\StructType\RemoveLanguages $removeLanguages = null)
    {
        if (is_null($removeLanguages) || (is_array($removeLanguages) && empty($removeLanguages))) {
            unset($this->removeLanguages);
        } else {
            $this->removeLanguages = $removeLanguages;
        }
        return $this;
    }
    /**
     * Get addLanguages value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AddLanguages|null
     */
    public function getAddLanguages()
    {
        return isset($this->addLanguages) ? $this->addLanguages : null;
    }
    /**
     * Set addLanguages value
     * This property belongs to a choice that allows only one property to exist. It is
     * therefore removable from the request, consequently if the value assigned to this
     * property is null, the property is removed from this object
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\AddLanguages $addLanguages
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateSelfProvisioningReq
     */
    public function setAddLanguages(\\Losc\CucmBundle\Model\Webservice\StructType\AddLanguages $addLanguages = null)
    {
        if (is_null($addLanguages) || (is_array($addLanguages) && empty($addLanguages))) {
            unset($this->addLanguages);
        } else {
            $this->addLanguages = $addLanguages;
        }
        return $this;
    }
    /**
     * Get languages value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\Languages|null
     */
    public function getLanguages()
    {
        return isset($this->languages) ? $this->languages : null;
    }
    /**
     * Set languages value
     * This property belongs to a choice that allows only one property to exist. It is
     * therefore removable from the request, consequently if the value assigned to this
     * property is null, the property is removed from this object
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\Languages $languages
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateSelfProvisioningReq
     */
    public function setLanguages(\\Losc\CucmBundle\Model\Webservice\StructType\Languages $languages = null)
    {
        if (is_null($languages) || (is_array($languages) && empty($languages))) {
            unset($this->languages);
        } else {
            $this->languages = $languages;
        }
        return $this;
    }
}
