Class SqlRuleAction

java.lang.Object
com.azure.resourcemanager.servicebus.models.Action
com.azure.resourcemanager.servicebus.models.SqlRuleAction

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()
  • 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.