class_docstr: A Python class representation of a Search Expression object.
  
  A sample search expression defined in here:
  https://boto3.amazonaws.com/v1/documentation/api/1.12.8/reference/services/sagemaker.html#SageMaker.Client.search
class_docstr_tok: ["A","Python","class","representation","of","a","Search","Expression","object",".","A","sample","search","expression","defined","in","here",":","https",":","\/\/boto3.amazonaws.com\/v1\/documentation\/api\/1.12.8\/reference\/services\/sagemaker.html","#","SageMaker.Client.search"]
docstr: Construct a Search Expression object
  
  Args:
      filters (List[Filter]): list of Filter objects
      nested_filters (List[NestedFilter]): list of Nested Filters objects
      sub_expressions (List[SearchExpression]): list of Search Expression objects
      boolean_operator (BooleanOperator): one of the boolean operator enums
docstr_tok: ["Construct","a","Search","Expression","object","Args",":","filters","(","List","[","Filter","]",")",":","list","of","Filter","objects","nested_filters","(","List","[","NestedFilter","]",")",":","list","of","Nested","Filters","objects","sub_expressions","(","List","[","SearchExpression","]",")",":","list","of","Search","Expression","objects","boolean_operator","(","BooleanOperator",")",":","one","of","the","boolean","operator","enums"]
code: def __init__(
      self,
      filters=None,
      nested_filters=None,
      sub_expressions=None,
      boolean_operator=BooleanOperator.AND,
      **kwargs,
  ):
      """Construct a Search Expression object
  
      Args:
          filters (List[Filter]): list of Filter objects
          nested_filters (List[NestedFilter]): list of Nested Filters objects
          sub_expressions (List[SearchExpression]): list of Search Expression objects
          boolean_operator (BooleanOperator): one of the boolean operator enums
      """
      super().__init__(**kwargs)
      if (
          filters is None
          and nested_filters is None
          and sub_expressions is None
      ):
          raise ValueError(
              "You must specify at least one subexpression, filter, or nested filter"
          )
      self.filters = (
          None
          if filters is None
          else list(map(lambda x: x.to_boto(), filters))
      )
      self.nested_filters = (
          None
          if nested_filters is None
          else list(map(lambda x: x.to_boto(), nested_filters))
      )
      self.sub_expressions = (
          None
          if sub_expressions is None
          else list(map(lambda x: x.to_boto(), sub_expressions))
      )
      self.operator = boolean_operator.value
  
file_path: sagemaker-python-sdk/src/sagemaker/utilities/search_expression.py
imports: from __future__ import absolute_import
  from enum import Enum, unique
  from sagemaker.apiutils._base_types import ApiObject
label_desc: Use image node_id 1 to create a new SearchExpression object from inherited base classes: SearchObject with example: obj = SearchExpression(filters, nested_filters, sub_expressions, boolean_operator)