<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for LHuntForwardInfoBusy StructType
 * @subpackage Structs
 */
class LHuntForwardInfoBusy extends AbstractStructBase
{
    /**
     * The usePersonalPreferences
     * Meta information extracted from the WSDL
     * - documentation: Use original Called DN forward no-coverage settings
     * - base: xsd:string
     * - maxOccurs: 1
     * - minOccurs: 0
     * - pattern: (t)|(f)|(true)|(false)|(0)|(1)
     * @var string
     */
    public $usePersonalPreferences;
    /**
     * The callingSearchSpaceName
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XFkType
     */
    public $callingSearchSpaceName;
    /**
     * The destination
     * Meta information extracted from the WSDL
     * - base: xsd:string
     * - maxLength: 50
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $destination;
    /**
     * The maxHuntduration
     * Meta information extracted from the WSDL
     * - documentation: Value "-1" in the response means no value has been assigned and internally the CM will use default setting i.e., 1800s.
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $maxHuntduration;
    /**
     * Constructor method for LHuntForwardInfoBusy
     * @uses LHuntForwardInfoBusy::setUsePersonalPreferences()
     * @uses LHuntForwardInfoBusy::setCallingSearchSpaceName()
     * @uses LHuntForwardInfoBusy::setDestination()
     * @uses LHuntForwardInfoBusy::setMaxHuntduration()
     * @param string $usePersonalPreferences
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $callingSearchSpaceName
     * @param string $destination
     * @param string $maxHuntduration
     */
    public function __construct($usePersonalPreferences = null, \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $callingSearchSpaceName = null, $destination = null, $maxHuntduration = null)
    {
        $this
            ->setUsePersonalPreferences($usePersonalPreferences)
            ->setCallingSearchSpaceName($callingSearchSpaceName)
            ->setDestination($destination)
            ->setMaxHuntduration($maxHuntduration);
    }
    /**
     * Get usePersonalPreferences value
     * @return string|null
     */
    public function getUsePersonalPreferences()
    {
        return $this->usePersonalPreferences;
    }
    /**
     * Set usePersonalPreferences value
     * @param string $usePersonalPreferences
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\LHuntForwardInfoBusy
     */
    public function setUsePersonalPreferences($usePersonalPreferences = null)
    {
        $this->usePersonalPreferences = $usePersonalPreferences;
        return $this;
    }
    /**
     * Get callingSearchSpaceName value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XFkType|null
     */
    public function getCallingSearchSpaceName()
    {
        return $this->callingSearchSpaceName;
    }
    /**
     * Set callingSearchSpaceName value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $callingSearchSpaceName
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\LHuntForwardInfoBusy
     */
    public function setCallingSearchSpaceName(\\Losc\CucmBundle\Model\Webservice\StructType\XFkType $callingSearchSpaceName = null)
    {
        $this->callingSearchSpaceName = $callingSearchSpaceName;
        return $this;
    }
    /**
     * Get destination value
     * @return string|null
     */
    public function getDestination()
    {
        return $this->destination;
    }
    /**
     * Set destination value
     * @param string $destination
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\LHuntForwardInfoBusy
     */
    public function setDestination($destination = null)
    {
        $this->destination = $destination;
        return $this;
    }
    /**
     * Get maxHuntduration value
     * @return string|null
     */
    public function getMaxHuntduration()
    {
        return $this->maxHuntduration;
    }
    /**
     * Set maxHuntduration value
     * @param string $maxHuntduration
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\LHuntForwardInfoBusy
     */
    public function setMaxHuntduration($maxHuntduration = null)
    {
        $this->maxHuntduration = $maxHuntduration;
        return $this;
    }
}
