Condition Class
- java.
lang. Object - com.
azure. resourcemanager. alertsmanagement. models. Condition
- com.
Implements
public final class Condition
implements JsonSerializable<Condition>
Condition to trigger an alert processing rule.
Constructor Summary
| Constructor | Description |
|---|---|
| Condition() |
Creates an instance of Condition class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Field |
field()
Get the field property: Field for a given condition. |
| static Condition |
fromJson(JsonReader jsonReader)
Reads an instance of Condition from the Json |
| Operator |
operator()
Get the operator property: Operator for a given condition. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| List<String> |
values()
Get the values property: List of values to match for a given condition. |
| Condition |
withField(Field field)
Set the field property: Field for a given condition. |
| Condition |
withOperator(Operator operator)
Set the operator property: Operator for a given condition. |
| Condition |
withValues(List<String> values)
Set the values property: List of values to match for a given condition. |
Methods inherited from java.lang.Object
Constructor Details
Condition
public Condition()
Creates an instance of Condition class.
Method Details
field
public Field field()
Get the field property: Field for a given condition.
Returns:
fromJson
public static Condition fromJson(JsonReader jsonReader)
Reads an instance of Condition from the JsonReader.
Parameters:
Returns:
Throws:
operator
public Operator operator()
Get the operator property: Operator for a given condition.
Returns:
toJson
validate
public void validate()
Validates the instance.
values
public List<String> values()
Get the values property: List of values to match for a given condition.
Returns:
withField
public Condition withField(Field field)
Set the field property: Field for a given condition.
Parameters:
Returns:
withOperator
public Condition withOperator(Operator operator)
Set the operator property: Operator for a given condition.
Parameters:
Returns:
withValues
public Condition withValues(List<String> values)
Set the values property: List of values to match for a given condition.
Parameters:
Returns: