AutomationRuleSet Class

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

Implements

public final class AutomationRuleSet
implements JsonSerializable<AutomationRuleSet>

A rule set which evaluates all its rules upon an event interception. Only when all the included rules in the rule set will be evaluated as 'true', will the event trigger the defined actions.

Constructor Summary

Constructor Description
AutomationRuleSet()

Creates an instance of AutomationRuleSet class.

Method Summary

Modifier and Type Method and Description
static AutomationRuleSet fromJson(JsonReader jsonReader)

Reads an instance of AutomationRuleSet from the JsonReader.

List<AutomationTriggeringRule> rules()

Get the rules property: The rules property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutomationRuleSet withRules(List<AutomationTriggeringRule> rules)

Set the rules property: The rules property.

Methods inherited from java.lang.Object

Constructor Details

AutomationRuleSet

public AutomationRuleSet()

Creates an instance of AutomationRuleSet class.

Method Details

fromJson

public static AutomationRuleSet fromJson(JsonReader jsonReader)

Reads an instance of AutomationRuleSet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AutomationRuleSet 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 AutomationRuleSet.

rules

public List<AutomationTriggeringRule> rules()

Get the rules property: The rules property.

Returns:

the rules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRules

public AutomationRuleSet withRules(List<AutomationTriggeringRule> rules)

Set the rules property: The rules property.

Parameters:

rules - the rules value to set.

Returns:

the AutomationRuleSet object itself.

Applies to