Class SqlFilter

java.lang.Object
com.azure.resourcemanager.servicebus.models.SqlFilter
All Implemented Interfaces:
com.azure.json.JsonSerializable<SqlFilter>

public final class SqlFilter extends Object implements com.azure.json.JsonSerializable<SqlFilter>
Represents a filter which is a composition of an expression and an action that is executed in the pub/sub pipeline.
  • Constructor Details

    • SqlFilter

      public SqlFilter()
      Creates an instance of SqlFilter class.
  • Method Details

    • sqlExpression

      public String sqlExpression()
      Get the sqlExpression property: The SQL expression. e.g. MyProperty='ABC'.
      Returns:
      the sqlExpression value.
    • withSqlExpression

      public SqlFilter withSqlExpression(String sqlExpression)
      Set the sqlExpression property: The SQL expression. e.g. MyProperty='ABC'.
      Parameters:
      sqlExpression - the sqlExpression value to set.
      Returns:
      the SqlFilter object itself.
    • compatibilityLevel

      public Integer compatibilityLevel()
      Get the compatibilityLevel property: This property is reserved for future use. An integer value showing the compatibility level, currently hard-coded to 20.
      Returns:
      the compatibilityLevel value.
    • withCompatibilityLevel

      public SqlFilter withCompatibilityLevel(Integer compatibilityLevel)
      Set the compatibilityLevel property: This property is reserved for future use. An integer value showing the compatibility level, currently hard-coded to 20.
      Parameters:
      compatibilityLevel - the compatibilityLevel value to set.
      Returns:
      the SqlFilter object itself.
    • requiresPreprocessing

      public Boolean requiresPreprocessing()
      Get the requiresPreprocessing property: Value that indicates whether the rule action requires preprocessing.
      Returns:
      the requiresPreprocessing value.
    • withRequiresPreprocessing

      public SqlFilter withRequiresPreprocessing(Boolean requiresPreprocessing)
      Set the requiresPreprocessing property: Value that indicates whether the rule action requires preprocessing.
      Parameters:
      requiresPreprocessing - the requiresPreprocessing value to set.
      Returns:
      the SqlFilter object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<SqlFilter>
      Throws:
      IOException
    • fromJson

      public static SqlFilter fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SqlFilter from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SqlFilter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the SqlFilter.