<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for UpdateSNMPCommunityStringReq StructType
 * @subpackage Structs
 */
class UpdateSNMPCommunityStringReq extends APIRequest
{
    /**
     * The communityName
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $communityName;
    /**
     * The newValues
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\RSNMPCommunityString1
     */
    public $newValues;
    /**
     * Constructor method for UpdateSNMPCommunityStringReq
     * @uses UpdateSNMPCommunityStringReq::setCommunityName()
     * @uses UpdateSNMPCommunityStringReq::setNewValues()
     * @param string $communityName
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\RSNMPCommunityString1 $newValues
     */
    public function __construct($communityName = null, \\Losc\CucmBundle\Model\Webservice\StructType\RSNMPCommunityString1 $newValues = null)
    {
        $this
            ->setCommunityName($communityName)
            ->setNewValues($newValues);
    }
    /**
     * Get communityName value
     * @return string|null
     */
    public function getCommunityName()
    {
        return $this->communityName;
    }
    /**
     * Set communityName value
     * @param string $communityName
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateSNMPCommunityStringReq
     */
    public function setCommunityName($communityName = null)
    {
        $this->communityName = $communityName;
        return $this;
    }
    /**
     * Get newValues value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RSNMPCommunityString1|null
     */
    public function getNewValues()
    {
        return $this->newValues;
    }
    /**
     * Set newValues value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\RSNMPCommunityString1 $newValues
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\UpdateSNMPCommunityStringReq
     */
    public function setNewValues(\\Losc\CucmBundle\Model\Webservice\StructType\RSNMPCommunityString1 $newValues = null)
    {
        $this->newValues = $newValues;
        return $this;
    }
}
