ExclusionManagedRuleGroup Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ExclusionManagedRuleGroup
- com.
Implements
public final class ExclusionManagedRuleGroup
implements JsonSerializable<ExclusionManagedRuleGroup>
Defines a managed rule group to use for exclusion.
Constructor Summary
Constructor | Description |
---|---|
ExclusionManagedRuleGroup() |
Creates an instance of Exclusion |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Exclusion |
fromJson(JsonReader jsonReader)
Reads an instance of Exclusion |
String |
ruleGroupName()
Get the rule |
List<Exclusion |
rules()
Get the rules property: List of rules that will be excluded. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Exclusion |
withRuleGroupName(String ruleGroupName)
Set the rule |
Exclusion |
withRules(List<ExclusionManagedRule> rules)
Set the rules property: List of rules that will be excluded. |
Methods inherited from java.lang.Object
Constructor Details
ExclusionManagedRuleGroup
public ExclusionManagedRuleGroup()
Creates an instance of ExclusionManagedRuleGroup class.
Method Details
fromJson
public static ExclusionManagedRuleGroup fromJson(JsonReader jsonReader)
Reads an instance of ExclusionManagedRuleGroup from the JsonReader.
Parameters:
Returns:
Throws:
ruleGroupName
public String ruleGroupName()
Get the ruleGroupName property: The managed rule group for exclusion.
Returns:
rules
public List
Get the rules property: List of rules that will be excluded. If none specified, all rules in the group will be excluded.
Returns:
toJson
validate
public void validate()
Validates the instance.
withRuleGroupName
public ExclusionManagedRuleGroup withRuleGroupName(String ruleGroupName)
Set the ruleGroupName property: The managed rule group for exclusion.
Parameters:
Returns:
withRules
public ExclusionManagedRuleGroup withRules(List
Set the rules property: List of rules that will be excluded. If none specified, all rules in the group will be excluded.
Parameters:
Returns: