<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for RSNMPCommunityString1 StructType
 * @subpackage Structs
 */
class RSNMPCommunityString1 extends AbstractStructBase
{
    /**
     * The accessPrivilege
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $accessPrivilege;
    /**
     * The ArrayOfHosts
     * @var \\Losc\CucmBundle\Model\Webservice\ArrayType\RArrayOfHosts
     */
    public $ArrayOfHosts;
    /**
     * Constructor method for RSNMPCommunityString1
     * @uses RSNMPCommunityString1::setAccessPrivilege()
     * @uses RSNMPCommunityString1::setArrayOfHosts()
     * @param string $accessPrivilege
     * @param \\Losc\CucmBundle\Model\Webservice\ArrayType\RArrayOfHosts $arrayOfHosts
     */
    public function __construct($accessPrivilege = null, \\Losc\CucmBundle\Model\Webservice\ArrayType\RArrayOfHosts $arrayOfHosts = null)
    {
        $this
            ->setAccessPrivilege($accessPrivilege)
            ->setArrayOfHosts($arrayOfHosts);
    }
    /**
     * Get accessPrivilege value
     * @return string|null
     */
    public function getAccessPrivilege()
    {
        return $this->accessPrivilege;
    }
    /**
     * Set accessPrivilege value
     * @param string $accessPrivilege
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RSNMPCommunityString1
     */
    public function setAccessPrivilege($accessPrivilege = null)
    {
        $this->accessPrivilege = $accessPrivilege;
        return $this;
    }
    /**
     * Get ArrayOfHosts value
     * @return \\Losc\CucmBundle\Model\Webservice\ArrayType\RArrayOfHosts|null
     */
    public function getArrayOfHosts()
    {
        return $this->ArrayOfHosts;
    }
    /**
     * Set ArrayOfHosts value
     * @param \\Losc\CucmBundle\Model\Webservice\ArrayType\RArrayOfHosts $arrayOfHosts
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RSNMPCommunityString1
     */
    public function setArrayOfHosts(\\Losc\CucmBundle\Model\Webservice\ArrayType\RArrayOfHosts $arrayOfHosts = null)
    {
        $this->ArrayOfHosts = $arrayOfHosts;
        return $this;
    }
}
