Class Condition
java.lang.Object
com.azure.resourcemanager.alertsmanagement.models.Condition
Condition to trigger an alert processing rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfield()
Get the field property: Field for a given condition.operator()
Get the operator property: Operator for a given condition.void
validate()
Validates the instance.values()
Get the values property: List of values to match for a given condition.Set the field property: Field for a given condition.withOperator
(Operator operator) Set the operator property: Operator for a given condition.withValues
(List<String> values) Set the values property: List of values to match for a given condition.
-
Constructor Details
-
Condition
public Condition()
-
-
Method Details
-
field
Get the field property: Field for a given condition.- Returns:
- the field value.
-
withField
Set the field property: Field for a given condition.- Parameters:
field
- the field value to set.- Returns:
- the Condition object itself.
-
operator
Get the operator property: Operator for a given condition.- Returns:
- the operator value.
-
withOperator
Set the operator property: Operator for a given condition.- Parameters:
operator
- the operator value to set.- Returns:
- the Condition object itself.
-
values
Get the values property: List of values to match for a given condition.- Returns:
- the values value.
-
withValues
Set the values property: List of values to match for a given condition.- Parameters:
values
- the values value to set.- Returns:
- the Condition object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-