_propDict)) { if (is_a($this->_propDict["gracePeriodBeforeAccessRemoval"], "\DateInterval") || is_null($this->_propDict["gracePeriodBeforeAccessRemoval"])) { return $this->_propDict["gracePeriodBeforeAccessRemoval"]; } else { $this->_propDict["gracePeriodBeforeAccessRemoval"] = new \DateInterval($this->_propDict["gracePeriodBeforeAccessRemoval"]); return $this->_propDict["gracePeriodBeforeAccessRemoval"]; } } return null; } /** * Sets the gracePeriodBeforeAccessRemoval * The duration for which access must be retained before the target's access is revoked once they leave the allowed target scope. * * @param \DateInterval $val The value to assign to the gracePeriodBeforeAccessRemoval * * @return AccessPackageAutomaticRequestSettings The AccessPackageAutomaticRequestSettings */ public function setGracePeriodBeforeAccessRemoval($val) { $this->_propDict["gracePeriodBeforeAccessRemoval"] = $val; return $this; } /** * Gets the removeAccessWhenTargetLeavesAllowedTargets * Indicates whether automatic assignment must be removed for targets who move out of the allowed target scope. * * @return bool|null The removeAccessWhenTargetLeavesAllowedTargets */ public function getRemoveAccessWhenTargetLeavesAllowedTargets() { if (array_key_exists("removeAccessWhenTargetLeavesAllowedTargets", $this->_propDict)) { return $this->_propDict["removeAccessWhenTargetLeavesAllowedTargets"]; } else { return null; } } /** * Sets the removeAccessWhenTargetLeavesAllowedTargets * Indicates whether automatic assignment must be removed for targets who move out of the allowed target scope. * * @param bool $val The value of the removeAccessWhenTargetLeavesAllowedTargets * * @return AccessPackageAutomaticRequestSettings */ public function setRemoveAccessWhenTargetLeavesAllowedTargets($val) { $this->_propDict["removeAccessWhenTargetLeavesAllowedTargets"] = $val; return $this; } /** * Gets the requestAccessForAllowedTargets * If set to true, automatic assignments will be created for targets in the allowed target scope. * * @return bool|null The requestAccessForAllowedTargets */ public function getRequestAccessForAllowedTargets() { if (array_key_exists("requestAccessForAllowedTargets", $this->_propDict)) { return $this->_propDict["requestAccessForAllowedTargets"]; } else { return null; } } /** * Sets the requestAccessForAllowedTargets * If set to true, automatic assignments will be created for targets in the allowed target scope. * * @param bool $val The value of the requestAccessForAllowedTargets * * @return AccessPackageAutomaticRequestSettings */ public function setRequestAccessForAllowedTargets($val) { $this->_propDict["requestAccessForAllowedTargets"] = $val; return $this; } }