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>
Represents set of actions written in SQL language-based syntax that is performed against a
ServiceBus.Messaging.BrokeredMessage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SqlRuleActionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SqlRuleAction from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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 com.azure.resourcemanager.servicebus.models.Action
compatibilityLevel, requiresPreprocessing, sqlExpressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SqlRuleAction
public SqlRuleAction()Creates an instance of SqlRuleAction class.
-
-
Method Details
-
withSqlExpression
Set the sqlExpression property: SQL expression. e.g. MyProperty='ABC'.- Overrides:
withSqlExpressionin classAction- Parameters:
sqlExpression- the sqlExpression value to set.- Returns:
- the Action object itself.
-
withCompatibilityLevel
Set the compatibilityLevel property: This property is reserved for future use. An integer value showing the compatibility level, currently hard-coded to 20.- Overrides:
withCompatibilityLevelin classAction- Parameters:
compatibilityLevel- the compatibilityLevel value to set.- Returns:
- the Action object itself.
-
withRequiresPreprocessing
Set the requiresPreprocessing property: Value that indicates whether the rule action requires preprocessing.- Overrides:
withRequiresPreprocessingin classAction- Parameters:
requiresPreprocessing- the requiresPreprocessing value to set.- Returns:
- the Action object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classAction- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Action>- Overrides:
toJsonin classAction- Throws:
IOException
-
fromJson
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.
-