_propDict)) { if (is_a($this->_propDict["createdBy"], "\Microsoft\Graph\Model\AppIdentity") || is_null($this->_propDict["createdBy"])) { return $this->_propDict["createdBy"]; } else { $this->_propDict["createdBy"] = new AppIdentity($this->_propDict["createdBy"]); return $this->_propDict["createdBy"]; } } return null; } /** * Sets the createdBy * The application that created the printTaskDefinition. Read-only. * * @param AppIdentity $val The createdBy * * @return PrintTaskDefinition */ public function setCreatedBy($val) { $this->_propDict["createdBy"] = $val; return $this; } /** * Gets the displayName * The name of the printTaskDefinition. * * @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 name of the printTaskDefinition. * * @param string $val The displayName * * @return PrintTaskDefinition */ public function setDisplayName($val) { $this->_propDict["displayName"] = $val; return $this; } /** * Gets the tasks * A list of tasks that have been created based on this definition. The list includes currently running tasks and recently completed tasks. Read-only. * * @return array|null The tasks */ public function getTasks() { if (array_key_exists("tasks", $this->_propDict)) { return $this->_propDict["tasks"]; } else { return null; } } /** * Sets the tasks * A list of tasks that have been created based on this definition. The list includes currently running tasks and recently completed tasks. Read-only. * * @param PrintTask[] $val The tasks * * @return PrintTaskDefinition */ public function setTasks($val) { $this->_propDict["tasks"] = $val; return $this; } }