_propDict)) { if (is_a($this->_propDict["intendedPurpose"], "\Beta\Microsoft\Graph\Model\IntendedPurpose") || is_null($this->_propDict["intendedPurpose"])) { return $this->_propDict["intendedPurpose"]; } else { $this->_propDict["intendedPurpose"] = new IntendedPurpose($this->_propDict["intendedPurpose"]); return $this->_propDict["intendedPurpose"]; } } return null; } /** * Sets the intendedPurpose * Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc. Possible values are: unassigned, smimeEncryption, smimeSigning, vpn, wifi. * * @param IntendedPurpose $val The intendedPurpose * * @return WindowsPhone81ImportedPFXCertificateProfile */ public function setIntendedPurpose($val) { $this->_propDict["intendedPurpose"] = $val; return $this; } /** * Gets the managedDeviceCertificateStates * Certificate state for devices. This collection can contain a maximum of 2147483647 elements. * * @return array|null The managedDeviceCertificateStates */ public function getManagedDeviceCertificateStates() { if (array_key_exists("managedDeviceCertificateStates", $this->_propDict)) { return $this->_propDict["managedDeviceCertificateStates"]; } else { return null; } } /** * Sets the managedDeviceCertificateStates * Certificate state for devices. This collection can contain a maximum of 2147483647 elements. * * @param ManagedDeviceCertificateState[] $val The managedDeviceCertificateStates * * @return WindowsPhone81ImportedPFXCertificateProfile */ public function setManagedDeviceCertificateStates($val) { $this->_propDict["managedDeviceCertificateStates"] = $val; return $this; } }