<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for UpdateRegionReq StructType
 * @subpackage Structs
 */
class UpdateRegionReq 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 relatedRegions
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\RelatedRegions
     */
    public $relatedRegions;
    /**
     * Constructor method for UpdateRegionReq
     * @uses UpdateRegionReq::setNewName()
     * @uses UpdateRegionReq::setRelatedRegions()
     * @param string $newName
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\RelatedRegions $relatedRegions
     */
    public function __construct($newName = null, \\Losc\CucmBundle\Model\Webservice\StructType\RelatedRegions $relatedRegions = null)
    {
        $this
            ->setNewName($newName)
            ->setRelatedRegions($relatedRegions);
    }
    /**
     * Get newName value
     * @return string|null
     */
    public function getNewName()
    {
        return $this->newName;
    }
    /**
     * Set newName value
     * @param string $newName
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateRegionReq
     */
    public function setNewName($newName = null)
    {
        $this->newName = $newName;
        return $this;
    }
    /**
     * Get relatedRegions value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RelatedRegions|null
     */
    public function getRelatedRegions()
    {
        return $this->relatedRegions;
    }
    /**
     * Set relatedRegions value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\RelatedRegions $relatedRegions
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateRegionReq
     */
    public function setRelatedRegions(\\Losc\CucmBundle\Model\Webservice\StructType\RelatedRegions $relatedRegions = null)
    {
        $this->relatedRegions = $relatedRegions;
        return $this;
    }
}
