AutomationTriggeringRule Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.AutomationTriggeringRule

public final class 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 AutomationTriggeringRule class.

Method Summary

Modifier and Type Method and Description
String expectedValue()

Get the expectedValue property: The expected value.

Operator operator()

Get the operator property: A valid comparer operator to use.

String propertyJPath()

Get the propertyJPath property: The JPath of the entity model property that should be checked.

PropertyType propertyType()

Get the propertyType property: The data type of the compared operands (string, integer, floating point number or a boolean [true/false]].

void validate()

Validates the instance.

AutomationTriggeringRule withExpectedValue(String expectedValue)

Set the expectedValue property: The expected value.

AutomationTriggeringRule withOperator(Operator operator)

Set the operator property: A valid comparer operator to use.

AutomationTriggeringRule withPropertyJPath(String propertyJPath)

Set the propertyJPath property: The JPath of the entity model property that should be checked.

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]].

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:

the expectedValue value.

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:

the operator value.

propertyJPath

public String propertyJPath()

Get the propertyJPath property: The JPath of the entity model property that should be checked.

Returns:

the propertyJPath value.

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:

the propertyType value.

validate

public void validate()

Validates the instance.

withExpectedValue

public AutomationTriggeringRule withExpectedValue(String expectedValue)

Set the expectedValue property: The expected value.

Parameters:

expectedValue - the expectedValue value to set.

Returns:

the AutomationTriggeringRule object itself.

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:

operator - the operator value to set.

Returns:

the AutomationTriggeringRule object itself.

withPropertyJPath

public AutomationTriggeringRule withPropertyJPath(String propertyJPath)

Set the propertyJPath property: The JPath of the entity model property that should be checked.

Parameters:

propertyJPath - the propertyJPath value to set.

Returns:

the AutomationTriggeringRule object itself.

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:

propertyType - the propertyType value to set.

Returns:

the AutomationTriggeringRule object itself.

Applies to