diff --git a/charms/reactive/endpoints.py b/charms/reactive/endpoints.py
index <HASH>..<HASH> 100644
--- a/charms/reactive/endpoints.py
+++ b/charms/reactive/endpoints.py
@@ -451,8 +451,8 @@ class RelatedUnit:
     """
     def __init__(self, relation, unit_name, data=None):
         self._relation = relation
-        self.unit_name = unit_name
-        self.application_name = unit_name.split('/')[0]
+        self._unit_name = unit_name
+        self._application_name = unit_name.split('/')[0]
         self._data = data
 
     @property
@@ -463,6 +463,20 @@ class RelatedUnit:
         return self._relation
 
     @property
+    def unit_name(self):
+        """
+        The name of this unit.
+        """
+        return self._unit_name
+
+    @property
+    def application_name(self):
+        """
+        The name of the application to which this unit belongs.
+        """
+        return self._application_name
+
+    @property
     def received(self):
         """
         A :class:`~charms.reactive.endpoints.JSONUnitDataView` of the data
Fix documentation of unit_name and application_name on RelatedUnit (#<I>)

Make them properties so that they're immutable and show up in the docs.