<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for UpdateUserGroupReq StructType
 * @subpackage Structs
 */
class UpdateUserGroupReq extends NameAndGUIDRequest
{
    /**
     * The removeMembers
     * Meta information extracted from the WSDL
     * - choice: removeMembers | addMembers | members
     * - choiceMaxOccurs: 1
     * - choiceMinOccurs: 0
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\RemoveMembers
     */
    public $removeMembers;
    /**
     * The addMembers
     * Meta information extracted from the WSDL
     * - choice: removeMembers | addMembers | members
     * - choiceMaxOccurs: 1
     * - choiceMinOccurs: 0
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\AddMembers
     */
    public $addMembers;
    /**
     * The members
     * Meta information extracted from the WSDL
     * - choice: removeMembers | addMembers | members
     * - choiceMaxOccurs: 1
     * - choiceMinOccurs: 0
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\Members
     */
    public $members;
    /**
     * The removeUserRoles
     * Meta information extracted from the WSDL
     * - choice: removeUserRoles | addUserRoles | userRoles
     * - choiceMaxOccurs: 1
     * - choiceMinOccurs: 0
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\RemoveUserRoles
     */
    public $removeUserRoles;
    /**
     * The addUserRoles
     * Meta information extracted from the WSDL
     * - choice: removeUserRoles | addUserRoles | userRoles
     * - choiceMaxOccurs: 1
     * - choiceMinOccurs: 0
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\AddUserRoles
     */
    public $addUserRoles;
    /**
     * The userRoles
     * Meta information extracted from the WSDL
     * - choice: removeUserRoles | addUserRoles | userRoles
     * - choiceMaxOccurs: 1
     * - choiceMinOccurs: 0
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\UserRoles
     */
    public $userRoles;
    /**
     * The newName
     * Meta information extracted from the WSDL
     * - base: xsd:string
     * - maxLength: 128
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: false
     * @var string
     */
    public $newName;
    /**
     * Constructor method for UpdateUserGroupReq
     * @uses UpdateUserGroupReq::setRemoveMembers()
     * @uses UpdateUserGroupReq::setAddMembers()
     * @uses UpdateUserGroupReq::setMembers()
     * @uses UpdateUserGroupReq::setRemoveUserRoles()
     * @uses UpdateUserGroupReq::setAddUserRoles()
     * @uses UpdateUserGroupReq::setUserRoles()
     * @uses UpdateUserGroupReq::setNewName()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\RemoveMembers $removeMembers
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\AddMembers $addMembers
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\Members $members
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\RemoveUserRoles $removeUserRoles
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\AddUserRoles $addUserRoles
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\UserRoles $userRoles
     * @param string $newName
     */
    public function __construct(\\Losc\CucmBundle\Model\Webservice\StructType\RemoveMembers $removeMembers = null, \\Losc\CucmBundle\Model\Webservice\StructType\AddMembers $addMembers = null, \\Losc\CucmBundle\Model\Webservice\StructType\Members $members = null, \\Losc\CucmBundle\Model\Webservice\StructType\RemoveUserRoles $removeUserRoles = null, \\Losc\CucmBundle\Model\Webservice\StructType\AddUserRoles $addUserRoles = null, \\Losc\CucmBundle\Model\Webservice\StructType\UserRoles $userRoles = null, $newName = null)
    {
        $this
            ->setRemoveMembers($removeMembers)
            ->setAddMembers($addMembers)
            ->setMembers($members)
            ->setRemoveUserRoles($removeUserRoles)
            ->setAddUserRoles($addUserRoles)
            ->setUserRoles($userRoles)
            ->setNewName($newName);
    }
    /**
     * Get removeMembers value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RemoveMembers|null
     */
    public function getRemoveMembers()
    {
        return isset($this->removeMembers) ? $this->removeMembers : null;
    }
    /**
     * Set removeMembers 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\RemoveMembers $removeMembers
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateUserGroupReq
     */
    public function setRemoveMembers(\\Losc\CucmBundle\Model\Webservice\StructType\RemoveMembers $removeMembers = null)
    {
        if (is_null($removeMembers) || (is_array($removeMembers) && empty($removeMembers))) {
            unset($this->removeMembers);
        } else {
            $this->removeMembers = $removeMembers;
        }
        return $this;
    }
    /**
     * Get addMembers value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AddMembers|null
     */
    public function getAddMembers()
    {
        return isset($this->addMembers) ? $this->addMembers : null;
    }
    /**
     * Set addMembers 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\AddMembers $addMembers
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateUserGroupReq
     */
    public function setAddMembers(\\Losc\CucmBundle\Model\Webservice\StructType\AddMembers $addMembers = null)
    {
        if (is_null($addMembers) || (is_array($addMembers) && empty($addMembers))) {
            unset($this->addMembers);
        } else {
            $this->addMembers = $addMembers;
        }
        return $this;
    }
    /**
     * Get members value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\Members|null
     */
    public function getMembers()
    {
        return isset($this->members) ? $this->members : null;
    }
    /**
     * Set members 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\Members $members
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateUserGroupReq
     */
    public function setMembers(\\Losc\CucmBundle\Model\Webservice\StructType\Members $members = null)
    {
        if (is_null($members) || (is_array($members) && empty($members))) {
            unset($this->members);
        } else {
            $this->members = $members;
        }
        return $this;
    }
    /**
     * Get removeUserRoles value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RemoveUserRoles|null
     */
    public function getRemoveUserRoles()
    {
        return isset($this->removeUserRoles) ? $this->removeUserRoles : null;
    }
    /**
     * Set removeUserRoles 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\RemoveUserRoles $removeUserRoles
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateUserGroupReq
     */
    public function setRemoveUserRoles(\\Losc\CucmBundle\Model\Webservice\StructType\RemoveUserRoles $removeUserRoles = null)
    {
        if (is_null($removeUserRoles) || (is_array($removeUserRoles) && empty($removeUserRoles))) {
            unset($this->removeUserRoles);
        } else {
            $this->removeUserRoles = $removeUserRoles;
        }
        return $this;
    }
    /**
     * Get addUserRoles value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AddUserRoles|null
     */
    public function getAddUserRoles()
    {
        return isset($this->addUserRoles) ? $this->addUserRoles : null;
    }
    /**
     * Set addUserRoles 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\AddUserRoles $addUserRoles
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateUserGroupReq
     */
    public function setAddUserRoles(\\Losc\CucmBundle\Model\Webservice\StructType\AddUserRoles $addUserRoles = null)
    {
        if (is_null($addUserRoles) || (is_array($addUserRoles) && empty($addUserRoles))) {
            unset($this->addUserRoles);
        } else {
            $this->addUserRoles = $addUserRoles;
        }
        return $this;
    }
    /**
     * Get userRoles value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UserRoles|null
     */
    public function getUserRoles()
    {
        return isset($this->userRoles) ? $this->userRoles : null;
    }
    /**
     * Set userRoles 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\UserRoles $userRoles
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateUserGroupReq
     */
    public function setUserRoles(\\Losc\CucmBundle\Model\Webservice\StructType\UserRoles $userRoles = null)
    {
        if (is_null($userRoles) || (is_array($userRoles) && empty($userRoles))) {
            unset($this->userRoles);
        } else {
            $this->userRoles = $userRoles;
        }
        return $this;
    }
    /**
     * Get newName value
     * @return string|null
     */
    public function getNewName()
    {
        return $this->newName;
    }
    /**
     * Set newName value
     * @param string $newName
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateUserGroupReq
     */
    public function setNewName($newName = null)
    {
        $this->newName = $newName;
        return $this;
    }
}
