<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AddCredentialPolicyReq StructType
 * @subpackage Structs
 */
class AddCredentialPolicyReq extends APIRequest
{
    /**
     * The credentialPolicy
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XCredentialPolicy
     */
    public $credentialPolicy;
    /**
     * Constructor method for AddCredentialPolicyReq
     * @uses AddCredentialPolicyReq::setCredentialPolicy()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XCredentialPolicy $credentialPolicy
     */
    public function __construct(\\Losc\CucmBundle\Model\Webservice\StructType\XCredentialPolicy $credentialPolicy = null)
    {
        $this
            ->setCredentialPolicy($credentialPolicy);
    }
    /**
     * Get credentialPolicy value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XCredentialPolicy|null
     */
    public function getCredentialPolicy()
    {
        return $this->credentialPolicy;
    }
    /**
     * Set credentialPolicy value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XCredentialPolicy $credentialPolicy
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AddCredentialPolicyReq
     */
    public function setCredentialPolicy(\\Losc\CucmBundle\Model\Webservice\StructType\XCredentialPolicy $credentialPolicy = null)
    {
        $this->credentialPolicy = $credentialPolicy;
        return $this;
    }
}
