<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GeneralMessageServiceCapabilitiesStructure StructType
 * Meta informations extracted from the WSDL
 * - documentation: Type for General Message Capabilities.
 * @subpackage Structs
 */
class GeneralMessageServiceCapabilitiesStructure extends AbstractCapabilitiesStructure
{
    /**
     * The TopicFiltering
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\TopicFiltering
     */
    public $TopicFiltering;
    /**
     * The RequestPolicy
     * Meta informations extracted from the WSDL
     * - documentation: Request Policiy capabilities.
     * - minOccurs: 0
     * @var \StructType\CapabilityRequestPolicyStructure
     */
    public $RequestPolicy;
    /**
     * The AccessControl
     * Meta informations extracted from the WSDL
     * - documentation: Optional Access control capabilities.
     * - minOccurs: 0
     * @var \StructType\GeneralMessageCapabilityAccessControlStructure
     */
    public $AccessControl;
    /**
     * Constructor method for GeneralMessageServiceCapabilitiesStructure
     * @uses GeneralMessageServiceCapabilitiesStructure::setTopicFiltering()
     * @uses GeneralMessageServiceCapabilitiesStructure::setRequestPolicy()
     * @uses GeneralMessageServiceCapabilitiesStructure::setAccessControl()
     * @param \StructType\TopicFiltering $topicFiltering
     * @param \StructType\CapabilityRequestPolicyStructure $requestPolicy
     * @param \StructType\GeneralMessageCapabilityAccessControlStructure $accessControl
     */
    public function __construct(\StructType\TopicFiltering $topicFiltering = null, \StructType\CapabilityRequestPolicyStructure $requestPolicy = null, \StructType\GeneralMessageCapabilityAccessControlStructure $accessControl = null)
    {
        $this
            ->setTopicFiltering($topicFiltering)
            ->setRequestPolicy($requestPolicy)
            ->setAccessControl($accessControl);
    }
    /**
     * Get TopicFiltering value
     * @return \StructType\TopicFiltering|null
     */
    public function getTopicFiltering()
    {
        return $this->TopicFiltering;
    }
    /**
     * Set TopicFiltering value
     * @param \StructType\TopicFiltering $topicFiltering
     * @return \StructType\GeneralMessageServiceCapabilitiesStructure
     */
    public function setTopicFiltering(\StructType\TopicFiltering $topicFiltering = null)
    {
        $this->TopicFiltering = $topicFiltering;
        return $this;
    }
    /**
     * Get RequestPolicy value
     * @return \StructType\CapabilityRequestPolicyStructure|null
     */
    public function getRequestPolicy()
    {
        return $this->RequestPolicy;
    }
    /**
     * Set RequestPolicy value
     * @param \StructType\CapabilityRequestPolicyStructure $requestPolicy
     * @return \StructType\GeneralMessageServiceCapabilitiesStructure
     */
    public function setRequestPolicy(\StructType\CapabilityRequestPolicyStructure $requestPolicy = null)
    {
        $this->RequestPolicy = $requestPolicy;
        return $this;
    }
    /**
     * Get AccessControl value
     * @return \StructType\GeneralMessageCapabilityAccessControlStructure|null
     */
    public function getAccessControl()
    {
        return $this->AccessControl;
    }
    /**
     * Set AccessControl value
     * @param \StructType\GeneralMessageCapabilityAccessControlStructure $accessControl
     * @return \StructType\GeneralMessageServiceCapabilitiesStructure
     */
    public function setAccessControl(\StructType\GeneralMessageCapabilityAccessControlStructure $accessControl = null)
    {
        $this->AccessControl = $accessControl;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \StructType\GeneralMessageServiceCapabilitiesStructure
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
