_propDict)) { if (is_a($this->_propDict["creationDateTime"], "\DateTime") || is_null($this->_propDict["creationDateTime"])) { return $this->_propDict["creationDateTime"]; } else { $this->_propDict["creationDateTime"] = new \DateTime($this->_propDict["creationDateTime"]); return $this->_propDict["creationDateTime"]; } } return null; } /** * Sets the creationDateTime * DateTime profile was created * * @param \DateTime $val The creationDateTime * * @return DeviceManagementResourceAccessProfileBase */ public function setCreationDateTime($val) { $this->_propDict["creationDateTime"] = $val; return $this; } /** * Gets the description * Profile description * * @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 * Profile description * * @param string $val The description * * @return DeviceManagementResourceAccessProfileBase */ public function setDescription($val) { $this->_propDict["description"] = $val; return $this; } /** * Gets the displayName * Profile display name * * @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 * Profile display name * * @param string $val The displayName * * @return DeviceManagementResourceAccessProfileBase */ public function setDisplayName($val) { $this->_propDict["displayName"] = $val; return $this; } /** * Gets the lastModifiedDateTime * DateTime profile was last modified * * @return \DateTime|null The lastModifiedDateTime */ public function getLastModifiedDateTime() { if (array_key_exists("lastModifiedDateTime", $this->_propDict)) { if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) { return $this->_propDict["lastModifiedDateTime"]; } else { $this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]); return $this->_propDict["lastModifiedDateTime"]; } } return null; } /** * Sets the lastModifiedDateTime * DateTime profile was last modified * * @param \DateTime $val The lastModifiedDateTime * * @return DeviceManagementResourceAccessProfileBase */ public function setLastModifiedDateTime($val) { $this->_propDict["lastModifiedDateTime"] = $val; return $this; } /** * Gets the roleScopeTagIds * Scope Tags * * @return array|null The roleScopeTagIds */ public function getRoleScopeTagIds() { if (array_key_exists("roleScopeTagIds", $this->_propDict)) { return $this->_propDict["roleScopeTagIds"]; } else { return null; } } /** * Sets the roleScopeTagIds * Scope Tags * * @param string[] $val The roleScopeTagIds * * @return DeviceManagementResourceAccessProfileBase */ public function setRoleScopeTagIds($val) { $this->_propDict["roleScopeTagIds"] = $val; return $this; } /** * Gets the version * Version of the profile * * @return int|null The version */ public function getVersion() { if (array_key_exists("version", $this->_propDict)) { return $this->_propDict["version"]; } else { return null; } } /** * Sets the version * Version of the profile * * @param int $val The version * * @return DeviceManagementResourceAccessProfileBase */ public function setVersion($val) { $this->_propDict["version"] = intval($val); return $this; } /** * Gets the assignments * The list of assignments for the device configuration profile. * * @return array|null The assignments */ public function getAssignments() { if (array_key_exists("assignments", $this->_propDict)) { return $this->_propDict["assignments"]; } else { return null; } } /** * Sets the assignments * The list of assignments for the device configuration profile. * * @param DeviceManagementResourceAccessProfileAssignment[] $val The assignments * * @return DeviceManagementResourceAccessProfileBase */ public function setAssignments($val) { $this->_propDict["assignments"] = $val; return $this; } }