AlertRuleAllOfCondition Class

  • java.lang.Object
    • com.azure.resourcemanager.alertsmanagement.models.AlertRuleAllOfCondition

Implements

public final class AlertRuleAllOfCondition
implements JsonSerializable<AlertRuleAllOfCondition>

An Activity Log Alert rule condition that is met when all its member conditions are met.

Constructor Summary

Constructor Description
AlertRuleAllOfCondition()

Creates an instance of AlertRuleAllOfCondition class.

Method Summary

Modifier and Type Method and Description
List<AlertRuleAnyOfOrLeafCondition> allOf()

Get the allOf property: The list of Activity Log Alert rule conditions.

static AlertRuleAllOfCondition fromJson(JsonReader jsonReader)

Reads an instance of AlertRuleAllOfCondition from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AlertRuleAllOfCondition withAllOf(List<AlertRuleAnyOfOrLeafCondition> allOf)

Set the allOf property: The list of Activity Log Alert rule conditions.

Methods inherited from java.lang.Object

Constructor Details

AlertRuleAllOfCondition

public AlertRuleAllOfCondition()

Creates an instance of AlertRuleAllOfCondition class.

Method Details

allOf

public List<AlertRuleAnyOfOrLeafCondition> allOf()

Get the allOf property: The list of Activity Log Alert rule conditions.

Returns:

the allOf value.

fromJson

public static AlertRuleAllOfCondition fromJson(JsonReader jsonReader)

Reads an instance of AlertRuleAllOfCondition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AlertRuleAllOfCondition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllOf

public AlertRuleAllOfCondition withAllOf(List<AlertRuleAnyOfOrLeafCondition> allOf)

Set the allOf property: The list of Activity Log Alert rule conditions.

Parameters:

allOf - the allOf value to set.

Returns:

the AlertRuleAllOfCondition object itself.

Applies to