_propDict)) { if (is_a($this->_propDict["metadataToAdd"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\KeyValuePair") || is_null($this->_propDict["metadataToAdd"])) { return $this->_propDict["metadataToAdd"]; } else { $this->_propDict["metadataToAdd"] = new KeyValuePair($this->_propDict["metadataToAdd"]); return $this->_propDict["metadataToAdd"]; } } return null; } /** * Sets the metadataToAdd * A collection of key-value pairs that should be added to the file. * * @param KeyValuePair $val The value to assign to the metadataToAdd * * @return MetadataAction The MetadataAction */ public function setMetadataToAdd($val) { $this->_propDict["metadataToAdd"] = $val; return $this; } /** * Gets the metadataToRemove * A collection of strings that indicate which keys to remove from the file metadata. * * @return string|null The metadataToRemove */ public function getMetadataToRemove() { if (array_key_exists("metadataToRemove", $this->_propDict)) { return $this->_propDict["metadataToRemove"]; } else { return null; } } /** * Sets the metadataToRemove * A collection of strings that indicate which keys to remove from the file metadata. * * @param string $val The value of the metadataToRemove * * @return MetadataAction */ public function setMetadataToRemove($val) { $this->_propDict["metadataToRemove"] = $val; return $this; } }