AutomationTriggeringRule Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. AutomationTriggeringRule
- com.
Implements
public final class AutomationTriggeringRule
implements JsonSerializable<AutomationTriggeringRule>
A rule which is evaluated upon event interception. The rule is configured by comparing a specific value from the event model to an expected value. This comparison is done by using one of the supported operators set.
Constructor Summary
| Constructor | Description |
|---|---|
| AutomationTriggeringRule() |
Creates an instance of Automation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
expectedValue()
Get the expected |
|
static
Automation |
fromJson(JsonReader jsonReader)
Reads an instance of Automation |
| Operator |
operator()
Get the operator property: A valid comparer operator to use. |
| String |
propertyJPath()
Get the property |
|
Property |
propertyType()
Get the property |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Automation |
withExpectedValue(String expectedValue)
Set the expected |
|
Automation |
withOperator(Operator operator)
Set the operator property: A valid comparer operator to use. |
|
Automation |
withPropertyJPath(String propertyJPath)
Set the property |
|
Automation |
withPropertyType(PropertyType propertyType)
Set the property |
Methods inherited from java.lang.Object
Constructor Details
AutomationTriggeringRule
public AutomationTriggeringRule()
Creates an instance of AutomationTriggeringRule class.
Method Details
expectedValue
public String expectedValue()
Get the expectedValue property: The expected value.
Returns:
fromJson
public static AutomationTriggeringRule fromJson(JsonReader jsonReader)
Reads an instance of AutomationTriggeringRule from the JsonReader.
Parameters:
Returns:
Throws:
operator
public Operator operator()
Get the operator property: A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType.
Returns:
propertyJPath
public String propertyJPath()
Get the propertyJPath property: The JPath of the entity model property that should be checked.
Returns:
propertyType
public PropertyType propertyType()
Get the propertyType property: The data type of the compared operands (string, integer, floating point number or a boolean [true/false]].
Returns:
toJson
validate
public void validate()
Validates the instance.
withExpectedValue
public AutomationTriggeringRule withExpectedValue(String expectedValue)
Set the expectedValue property: The expected value.
Parameters:
Returns:
withOperator
public AutomationTriggeringRule withOperator(Operator operator)
Set the operator property: A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType.
Parameters:
Returns:
withPropertyJPath
public AutomationTriggeringRule withPropertyJPath(String propertyJPath)
Set the propertyJPath property: The JPath of the entity model property that should be checked.
Parameters:
Returns:
withPropertyType
public AutomationTriggeringRule withPropertyType(PropertyType propertyType)
Set the propertyType property: The data type of the compared operands (string, integer, floating point number or a boolean [true/false]].
Parameters:
Returns: