ScheduledQueryRuleCriteria Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.ScheduledQueryRuleCriteria

Implements

public final class ScheduledQueryRuleCriteria
implements JsonSerializable<ScheduledQueryRuleCriteria>

The rule criteria that defines the conditions of the scheduled query rule.

Constructor Summary

Constructor Description
ScheduledQueryRuleCriteria()

Creates an instance of ScheduledQueryRuleCriteria class.

Method Summary

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

Get the allOf property: A list of conditions to evaluate against the specified scopes.

static ScheduledQueryRuleCriteria fromJson(JsonReader jsonReader)

Reads an instance of ScheduledQueryRuleCriteria from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScheduledQueryRuleCriteria withAllOf(List<Condition> allOf)

Set the allOf property: A list of conditions to evaluate against the specified scopes.

Methods inherited from java.lang.Object

Constructor Details

ScheduledQueryRuleCriteria

public ScheduledQueryRuleCriteria()

Creates an instance of ScheduledQueryRuleCriteria class.

Method Details

allOf

public List allOf()

Get the allOf property: A list of conditions to evaluate against the specified scopes.

Returns:

the allOf value.

fromJson

public static ScheduledQueryRuleCriteria fromJson(JsonReader jsonReader)

Reads an instance of ScheduledQueryRuleCriteria from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ScheduledQueryRuleCriteria.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllOf

public ScheduledQueryRuleCriteria withAllOf(List allOf)

Set the allOf property: A list of conditions to evaluate against the specified scopes.

Parameters:

allOf - the allOf value to set.

Returns:

the ScheduledQueryRuleCriteria object itself.

Applies to