<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for UpdateCcdAdvertisingServiceReq StructType
 * @subpackage Structs
 */
class UpdateCcdAdvertisingServiceReq extends NameAndGUIDRequest
{
    /**
     * The newName
     * Meta information extracted from the WSDL
     * - base: xsd:string
     * - maxLength: 50
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: false
     * @var string
     */
    public $newName;
    /**
     * The description
     * Meta information extracted from the WSDL
     * - base: xsd:string
     * - maxLength: 50
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: false
     * @var string
     */
    public $description;
    /**
     * The isActivated
     * Meta information extracted from the WSDL
     * - base: xsd:string
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: false
     * - pattern: (t)|(f)|(true)|(false)|(0)|(1)
     * @var string
     */
    public $isActivated;
    /**
     * The hostDnGroup
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: false
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XFkType
     */
    public $hostDnGroup;
    /**
     * The safSipTrunk
     * Meta information extracted from the WSDL
     * - documentation: Either safSipTrunk, safH323Trunk or both should be configured while adding
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XFkType
     */
    public $safSipTrunk;
    /**
     * The safH323Trunk
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XFkType
     */
    public $safH323Trunk;
    /**
     * Constructor method for UpdateCcdAdvertisingServiceReq
     * @uses UpdateCcdAdvertisingServiceReq::setNewName()
     * @uses UpdateCcdAdvertisingServiceReq::setDescription()
     * @uses UpdateCcdAdvertisingServiceReq::setIsActivated()
     * @uses UpdateCcdAdvertisingServiceReq::setHostDnGroup()
     * @uses UpdateCcdAdvertisingServiceReq::setSafSipTrunk()
     * @uses UpdateCcdAdvertisingServiceReq::setSafH323Trunk()
     * @param string $newName
     * @param string $description
     * @param string $isActivated
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $hostDnGroup
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $safSipTrunk
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $safH323Trunk
     */
    public function __construct($newName = null, $description = null, $isActivated = null, \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $hostDnGroup = null, \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $safSipTrunk = null, \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $safH323Trunk = null)
    {
        $this
            ->setNewName($newName)
            ->setDescription($description)
            ->setIsActivated($isActivated)
            ->setHostDnGroup($hostDnGroup)
            ->setSafSipTrunk($safSipTrunk)
            ->setSafH323Trunk($safH323Trunk);
    }
    /**
     * Get newName value
     * @return string|null
     */
    public function getNewName()
    {
        return $this->newName;
    }
    /**
     * Set newName value
     * @param string $newName
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateCcdAdvertisingServiceReq
     */
    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\UpdateCcdAdvertisingServiceReq
     */
    public function setDescription($description = null)
    {
        $this->description = $description;
        return $this;
    }
    /**
     * Get isActivated value
     * @return string|null
     */
    public function getIsActivated()
    {
        return $this->isActivated;
    }
    /**
     * Set isActivated value
     * @param string $isActivated
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateCcdAdvertisingServiceReq
     */
    public function setIsActivated($isActivated = null)
    {
        $this->isActivated = $isActivated;
        return $this;
    }
    /**
     * Get hostDnGroup value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XFkType|null
     */
    public function getHostDnGroup()
    {
        return $this->hostDnGroup;
    }
    /**
     * Set hostDnGroup value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $hostDnGroup
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateCcdAdvertisingServiceReq
     */
    public function setHostDnGroup(\\Losc\CucmBundle\Model\Webservice\StructType\XFkType $hostDnGroup = null)
    {
        $this->hostDnGroup = $hostDnGroup;
        return $this;
    }
    /**
     * Get safSipTrunk 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 getSafSipTrunk()
    {
        return isset($this->safSipTrunk) ? $this->safSipTrunk : null;
    }
    /**
     * Set safSipTrunk 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 $safSipTrunk
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateCcdAdvertisingServiceReq
     */
    public function setSafSipTrunk(\\Losc\CucmBundle\Model\Webservice\StructType\XFkType $safSipTrunk = null)
    {
        if (is_null($safSipTrunk) || (is_array($safSipTrunk) && empty($safSipTrunk))) {
            unset($this->safSipTrunk);
        } else {
            $this->safSipTrunk = $safSipTrunk;
        }
        return $this;
    }
    /**
     * Get safH323Trunk 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 getSafH323Trunk()
    {
        return isset($this->safH323Trunk) ? $this->safH323Trunk : null;
    }
    /**
     * Set safH323Trunk 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 $safH323Trunk
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateCcdAdvertisingServiceReq
     */
    public function setSafH323Trunk(\\Losc\CucmBundle\Model\Webservice\StructType\XFkType $safH323Trunk = null)
    {
        if (is_null($safH323Trunk) || (is_array($safH323Trunk) && empty($safH323Trunk))) {
            unset($this->safH323Trunk);
        } else {
            $this->safH323Trunk = $safH323Trunk;
        }
        return $this;
    }
}
