Action Class

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

Implements

public class Action
implements 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

Constructor Description
Action()

Creates an instance of Action class.

Method Summary

Modifier and Type Method and Description
Integer compatibilityLevel()

Get the compatibilityLevel property: This property is reserved for future use.

static Action fromJson(JsonReader jsonReader)

Reads an instance of Action from the JsonReader.

Boolean requiresPreprocessing()

Get the requiresPreprocessing property: Value that indicates whether the rule action requires preprocessing.

String sqlExpression()

Get the sqlExpression property: SQL expression.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Action withCompatibilityLevel(Integer compatibilityLevel)

Set the compatibilityLevel property: This property is reserved for future use.

Action withRequiresPreprocessing(Boolean requiresPreprocessing)

Set the requiresPreprocessing property: Value that indicates whether the rule action requires preprocessing.

Action withSqlExpression(String sqlExpression)

Set the sqlExpression property: SQL expression.

Methods inherited from java.lang.Object

Constructor Details

Action

public Action()

Creates an instance of Action class.

Method Details

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.

fromJson

public static Action fromJson(JsonReader jsonReader)

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.

requiresPreprocessing

public Boolean requiresPreprocessing()

Get the requiresPreprocessing property: Value that indicates whether the rule action requires preprocessing.

Returns:

the requiresPreprocessing value.

sqlExpression

public String sqlExpression()

Get the sqlExpression property: SQL expression. e.g. MyProperty='ABC'.

Returns:

the sqlExpression value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

Applies to