class_docstr: The consistency level
class_docstr_tok: ["The","consistency","level"]
code: def _to_j_consistency_level(self):
      JConsistencyLevel = (
          get_gateway().jvm.com.datastax.driver.core.ConsistencyLevel
      )
      return getattr(JConsistencyLevel, self.name)
  
imports: from enum import Enum
  from pyflink.common import Duration
  from pyflink.java_gateway import get_gateway
label_desc: Use image node_id 1 for calling the ConsistencyLevel obj's underlying member method code with example usage: obj._to_j_consistency_level() and returns: getattr