code: def set_triggered_by_event(self, value):
          
          if value is None or not isinstance(value, bool):
              raise TypeError("TriggeredByEvent must be set to a bool")
          else:
              self.__triggered_by_event = value
docs: Setter for 'triggered_by_event' field.
          :param value - a new value of 'triggered_by_event' field. Must be a boolean type. Does not accept None value.