Setter method for latch_detection_config, mapped from YANG variable /latch_detection_config (container)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_latch_detection_config is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_latch_detection_config() directly.

def _set_latch_detection_config(self, v, load=False):
    """
    Setter method for latch_detection_config, mapped from YANG variable /latch_detection_config (container)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_latch_detection_config is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_latch_detection_config() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=latch_detection_config.latch_detection_config, is_container='container', presence=False, yang_name="latch-detection-config", rest_name="latch-detection", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'linecard latch screw detection', u'alt-name': u'latch-detection', u'display-when': u'((/local-node/swbd-number = "2000") or (/local-node/swbd-number = "2001"))'}}, namespace='urn:brocade.com:mgmt:brocade-linecard-management', defining_module='brocade-linecard-management', yang_type='container', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """latch_detection_config must be of a type compatible with container""",
          'defined-type': "container",
          'generated-type': """YANGDynClass(base=latch_detection_config.latch_detection_config, is_container='container', presence=False, yang_name="latch-detection-config", rest_name="latch-detection", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'linecard latch screw detection', u'alt-name': u'latch-detection', u'display-when': u'((/local-node/swbd-number = "2000") or (/local-node/swbd-number = "2001"))'}}, namespace='urn:brocade.com:mgmt:brocade-linecard-management', defining_module='brocade-linecard-management', yang_type='container', is_config=True)""",
        })

    self.__latch_detection_config = t
    if hasattr(self, '_set'):
      self._set()