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

    YANG Description: Configure CoS Thresholds

def _set_cos_threshold(self, v, load=False):
    """
    Setter method for cos_threshold, mapped from YANG variable /interface/gigabitethernet/qos/rcv_queue/cos_threshold (container)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_cos_threshold is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_cos_threshold() directly.

    YANG Description: Configure CoS Thresholds
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=cos_threshold.cos_threshold, is_container='container', presence=False, yang_name="cos-threshold", rest_name="cos-threshold", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure CoS Thresholds', u'cli-sequence-commands': None, u'cli-full-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos', defining_module='brocade-qos', yang_type='container', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """cos_threshold must be of a type compatible with container""",
          'defined-type': "container",
          'generated-type': """YANGDynClass(base=cos_threshold.cos_threshold, is_container='container', presence=False, yang_name="cos-threshold", rest_name="cos-threshold", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure CoS Thresholds', u'cli-sequence-commands': None, u'cli-full-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos', defining_module='brocade-qos', yang_type='container', is_config=True)""",
        })

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