_propDict)) { if (is_a($this->_propDict["category"], "\Beta\Microsoft\Graph\ManagedTenants\Model\ManagementCategory") || is_null($this->_propDict["category"])) { return $this->_propDict["category"]; } else { $this->_propDict["category"] = new ManagementCategory($this->_propDict["category"]); return $this->_propDict["category"]; } } return null; } /** * Sets the category * The category for the management action. Possible values are: custom, devices, identity, unknownFutureValue. Optional. Read-only. * * @param ManagementCategory $val The category * * @return ManagementAction */ public function setCategory($val) { $this->_propDict["category"] = $val; return $this; } /** * Gets the description * The description for the management action. Optional. Read-only. * * @return string|null The description */ public function getDescription() { if (array_key_exists("description", $this->_propDict)) { return $this->_propDict["description"]; } else { return null; } } /** * Sets the description * The description for the management action. Optional. Read-only. * * @param string $val The description * * @return ManagementAction */ public function setDescription($val) { $this->_propDict["description"] = $val; return $this; } /** * Gets the displayName * The display name for the management action. Optional. Read-only. * * @return string|null The displayName */ public function getDisplayName() { if (array_key_exists("displayName", $this->_propDict)) { return $this->_propDict["displayName"]; } else { return null; } } /** * Sets the displayName * The display name for the management action. Optional. Read-only. * * @param string $val The displayName * * @return ManagementAction */ public function setDisplayName($val) { $this->_propDict["displayName"] = $val; return $this; } /** * Gets the referenceTemplateId * The reference for the management template used to generate the management action. Required. Read-only. * * @return string|null The referenceTemplateId */ public function getReferenceTemplateId() { if (array_key_exists("referenceTemplateId", $this->_propDict)) { return $this->_propDict["referenceTemplateId"]; } else { return null; } } /** * Sets the referenceTemplateId * The reference for the management template used to generate the management action. Required. Read-only. * * @param string $val The referenceTemplateId * * @return ManagementAction */ public function setReferenceTemplateId($val) { $this->_propDict["referenceTemplateId"] = $val; return $this; } /** * Gets the referenceTemplateVersion * * @return int|null The referenceTemplateVersion */ public function getReferenceTemplateVersion() { if (array_key_exists("referenceTemplateVersion", $this->_propDict)) { return $this->_propDict["referenceTemplateVersion"]; } else { return null; } } /** * Sets the referenceTemplateVersion * * @param int $val The referenceTemplateVersion * * @return ManagementAction */ public function setReferenceTemplateVersion($val) { $this->_propDict["referenceTemplateVersion"] = intval($val); return $this; } /** * Gets the workloadActions * The collection of workload actions associated with the management action. Required. Read-only. * * @return array|null The workloadActions */ public function getWorkloadActions() { if (array_key_exists("workloadActions", $this->_propDict)) { return $this->_propDict["workloadActions"]; } else { return null; } } /** * Sets the workloadActions * The collection of workload actions associated with the management action. Required. Read-only. * * @param WorkloadAction[] $val The workloadActions * * @return ManagementAction */ public function setWorkloadActions($val) { $this->_propDict["workloadActions"] = $val; return $this; } }