Class SqlRuleAction

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

public final class SqlRuleAction extends Action
Represents set of actions written in SQL language-based syntax that is performed against a ServiceBus.Messaging.BrokeredMessage.
  • Constructor Details

    • SqlRuleAction

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

    • withSqlExpression

      public SqlRuleAction withSqlExpression(String sqlExpression)
      Set the sqlExpression property: SQL expression. e.g. MyProperty='ABC'.
      Overrides:
      withSqlExpression in class Action
      Parameters:
      sqlExpression - the sqlExpression value to set.
      Returns:
      the Action object itself.
    • withCompatibilityLevel

      public SqlRuleAction 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.
      Overrides:
      withCompatibilityLevel in class Action
      Parameters:
      compatibilityLevel - the compatibilityLevel value to set.
      Returns:
      the Action object itself.
    • withRequiresPreprocessing

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

      public void validate()
      Validates the instance.
      Overrides:
      validate in class Action
      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<Action>
      Overrides:
      toJson in class Action
      Throws:
      IOException
    • fromJson

      public static SqlRuleAction fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SqlRuleAction from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SqlRuleAction 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 SqlRuleAction.