_propDict)) { return $this->_propDict["cellularDataBlocked"]; } else { return null; } } /** * Sets the cellularDataBlocked * If set to true, corresponding managed apps will not be allowed to use cellular data at any time. * * @param bool $val The value of the cellularDataBlocked * * @return IosNetworkUsageRule */ public function setCellularDataBlocked($val) { $this->_propDict["cellularDataBlocked"] = $val; return $this; } /** * Gets the cellularDataBlockWhenRoaming * If set to true, corresponding managed apps will not be allowed to use cellular data when roaming. * * @return bool|null The cellularDataBlockWhenRoaming */ public function getCellularDataBlockWhenRoaming() { if (array_key_exists("cellularDataBlockWhenRoaming", $this->_propDict)) { return $this->_propDict["cellularDataBlockWhenRoaming"]; } else { return null; } } /** * Sets the cellularDataBlockWhenRoaming * If set to true, corresponding managed apps will not be allowed to use cellular data when roaming. * * @param bool $val The value of the cellularDataBlockWhenRoaming * * @return IosNetworkUsageRule */ public function setCellularDataBlockWhenRoaming($val) { $this->_propDict["cellularDataBlockWhenRoaming"] = $val; return $this; } /** * Gets the managedApps * Information about the managed apps that this rule is going to apply to. This collection can contain a maximum of 500 elements. * * @return AppListItem|null The managedApps */ public function getManagedApps() { if (array_key_exists("managedApps", $this->_propDict)) { if (is_a($this->_propDict["managedApps"], "\Microsoft\Graph\Model\AppListItem") || is_null($this->_propDict["managedApps"])) { return $this->_propDict["managedApps"]; } else { $this->_propDict["managedApps"] = new AppListItem($this->_propDict["managedApps"]); return $this->_propDict["managedApps"]; } } return null; } /** * Sets the managedApps * Information about the managed apps that this rule is going to apply to. This collection can contain a maximum of 500 elements. * * @param AppListItem $val The value to assign to the managedApps * * @return IosNetworkUsageRule The IosNetworkUsageRule */ public function setManagedApps($val) { $this->_propDict["managedApps"] = $val; return $this; } }