_propDict)) { if (is_a($this->_propDict["action"], "\Beta\Microsoft\Graph\Model\AndroidPermissionActionType") || is_null($this->_propDict["action"])) { return $this->_propDict["action"]; } else { $this->_propDict["action"] = new AndroidPermissionActionType($this->_propDict["action"]); return $this->_propDict["action"]; } } return null; } /** * Sets the action * Type of Android permission action. Possible values are: prompt, autoGrant, autoDeny. * * @param AndroidPermissionActionType $val The value to assign to the action * * @return AndroidPermissionAction The AndroidPermissionAction */ public function setAction($val) { $this->_propDict["action"] = $val; return $this; } /** * Gets the permission * Android permission string, defined in the official Android documentation. Example 'android.permission.READ_CONTACTS'. * * @return string|null The permission */ public function getPermission() { if (array_key_exists("permission", $this->_propDict)) { return $this->_propDict["permission"]; } else { return null; } } /** * Sets the permission * Android permission string, defined in the official Android documentation. Example 'android.permission.READ_CONTACTS'. * * @param string $val The value of the permission * * @return AndroidPermissionAction */ public function setPermission($val) { $this->_propDict["permission"] = $val; return $this; } }