<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for UpdateLbmGroupReq StructType
 * @subpackage Structs
 */
class UpdateLbmGroupReq extends NameAndGUIDRequest
{
    /**
     * The newName
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: false
     * @var string
     */
    public $newName;
    /**
     * The Description
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: false
     * @var string
     */
    public $Description;
    /**
     * The ProcessnodeActive
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XFkType
     */
    public $ProcessnodeActive;
    /**
     * The ProcessnodeStandby
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XFkType
     */
    public $ProcessnodeStandby;
    /**
     * Constructor method for UpdateLbmGroupReq
     * @uses UpdateLbmGroupReq::setNewName()
     * @uses UpdateLbmGroupReq::setDescription()
     * @uses UpdateLbmGroupReq::setProcessnodeActive()
     * @uses UpdateLbmGroupReq::setProcessnodeStandby()
     * @param string $newName
     * @param string $description
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $processnodeActive
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $processnodeStandby
     */
    public function __construct($newName = null, $description = null, \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $processnodeActive = null, \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $processnodeStandby = null)
    {
        $this
            ->setNewName($newName)
            ->setDescription($description)
            ->setProcessnodeActive($processnodeActive)
            ->setProcessnodeStandby($processnodeStandby);
    }
    /**
     * Get newName value
     * @return string|null
     */
    public function getNewName()
    {
        return $this->newName;
    }
    /**
     * Set newName value
     * @param string $newName
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateLbmGroupReq
     */
    public function setNewName($newName = null)
    {
        $this->newName = $newName;
        return $this;
    }
    /**
     * Get Description value
     * @return string|null
     */
    public function getDescription()
    {
        return $this->Description;
    }
    /**
     * Set Description value
     * @param string $description
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateLbmGroupReq
     */
    public function setDescription($description = null)
    {
        $this->Description = $description;
        return $this;
    }
    /**
     * Get ProcessnodeActive 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 \\Losc\CucmBundle\Model\Webservice\StructType\XFkType|null
     */
    public function getProcessnodeActive()
    {
        return isset($this->ProcessnodeActive) ? $this->ProcessnodeActive : null;
    }
    /**
     * Set ProcessnodeActive 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 \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $processnodeActive
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateLbmGroupReq
     */
    public function setProcessnodeActive(\\Losc\CucmBundle\Model\Webservice\StructType\XFkType $processnodeActive = null)
    {
        if (is_null($processnodeActive) || (is_array($processnodeActive) && empty($processnodeActive))) {
            unset($this->ProcessnodeActive);
        } else {
            $this->ProcessnodeActive = $processnodeActive;
        }
        return $this;
    }
    /**
     * Get ProcessnodeStandby 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 \\Losc\CucmBundle\Model\Webservice\StructType\XFkType|null
     */
    public function getProcessnodeStandby()
    {
        return isset($this->ProcessnodeStandby) ? $this->ProcessnodeStandby : null;
    }
    /**
     * Set ProcessnodeStandby 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 \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $processnodeStandby
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateLbmGroupReq
     */
    public function setProcessnodeStandby(\\Losc\CucmBundle\Model\Webservice\StructType\XFkType $processnodeStandby = null)
    {
        if (is_null($processnodeStandby) || (is_array($processnodeStandby) && empty($processnodeStandby))) {
            unset($this->ProcessnodeStandby);
        } else {
            $this->ProcessnodeStandby = $processnodeStandby;
        }
        return $this;
    }
}
