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

public class Action extends Object implements com.azure.json.JsonSerializable<Action>
Represents the filter actions which are allowed for the transformation of a message that have been matched by a filter expression.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of Action class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the compatibilityLevel property: This property is reserved for future use.
    static Action
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of Action from the JsonReader.
    Get the requiresPreprocessing property: Value that indicates whether the rule action requires preprocessing.
    Get the sqlExpression property: SQL expression. e.g.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withCompatibilityLevel(Integer compatibilityLevel)
    Set the compatibilityLevel property: This property is reserved for future use.
    withRequiresPreprocessing(Boolean requiresPreprocessing)
    Set the requiresPreprocessing property: Value that indicates whether the rule action requires preprocessing.
    withSqlExpression(String sqlExpression)
    Set the sqlExpression property: SQL expression. e.g.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • Action

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

    • sqlExpression

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

      public Action withSqlExpression(String sqlExpression)
      Set the sqlExpression property: SQL expression. e.g. MyProperty='ABC'.
      Parameters:
      sqlExpression - the sqlExpression value to set.
      Returns:
      the Action 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 Action 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 Action 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 Action 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 Action 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<Action>
      Throws:
      IOException
    • fromJson

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