<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def interface_type(self, ift):
 """ Set the CoRE Link Format if attribute of the resource. :param ift: the CoRE Link Format if attribute """

        if not isinstance(ift, str):
            ift = str(ift)
        self._attributes["if"] = ift