<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def endpoints(self):
 """ Gets the Endpoints API client. Returns: Endpoints: """

        if not self.__endpoints:
            self.__endpoints = Endpoints(self.__connection)
        return self.__endpoints