_propDict)) { if (is_a($this->_propDict["accessType"], "\Microsoft\Graph\Model\CrossTenantAccessPolicyTargetConfigurationAccessType") || is_null($this->_propDict["accessType"])) { return $this->_propDict["accessType"]; } else { $this->_propDict["accessType"] = new CrossTenantAccessPolicyTargetConfigurationAccessType($this->_propDict["accessType"]); return $this->_propDict["accessType"]; } } return null; } /** * Sets the accessType * Defines whether access is allowed or blocked. The possible values are: allowed, blocked, unknownFutureValue. * * @param CrossTenantAccessPolicyTargetConfigurationAccessType $val The value to assign to the accessType * * @return CrossTenantAccessPolicyTargetConfiguration The CrossTenantAccessPolicyTargetConfiguration */ public function setAccessType($val) { $this->_propDict["accessType"] = $val; return $this; } /** * Gets the targets * Specifies whether to target users, groups, or applications with this rule. * * @return CrossTenantAccessPolicyTarget|null The targets */ public function getTargets() { if (array_key_exists("targets", $this->_propDict)) { if (is_a($this->_propDict["targets"], "\Microsoft\Graph\Model\CrossTenantAccessPolicyTarget") || is_null($this->_propDict["targets"])) { return $this->_propDict["targets"]; } else { $this->_propDict["targets"] = new CrossTenantAccessPolicyTarget($this->_propDict["targets"]); return $this->_propDict["targets"]; } } return null; } /** * Sets the targets * Specifies whether to target users, groups, or applications with this rule. * * @param CrossTenantAccessPolicyTarget $val The value to assign to the targets * * @return CrossTenantAccessPolicyTargetConfiguration The CrossTenantAccessPolicyTargetConfiguration */ public function setTargets($val) { $this->_propDict["targets"] = $val; return $this; } }