Class ExclusionManagedRuleGroup
java.lang.Object
com.azure.resourcemanager.network.models.ExclusionManagedRuleGroup
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExclusionManagedRuleGroup>
public final class ExclusionManagedRuleGroup
extends Object
implements com.azure.json.JsonSerializable<ExclusionManagedRuleGroup>
Defines a managed rule group to use for exclusion.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ExclusionManagedRuleGroup class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExclusionManagedRuleGroupfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExclusionManagedRuleGroup from the JsonReader.Get the ruleGroupName property: The managed rule group for exclusion.rules()Get the rules property: List of rules that will be excluded.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withRuleGroupName(String ruleGroupName) Set the ruleGroupName property: The managed rule group for exclusion.withRules(List<ExclusionManagedRule> rules) Set the rules property: List of rules that will be excluded.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ExclusionManagedRuleGroup
public ExclusionManagedRuleGroup()Creates an instance of ExclusionManagedRuleGroup class.
-
-
Method Details
-
ruleGroupName
Get the ruleGroupName property: The managed rule group for exclusion.- Returns:
- the ruleGroupName value.
-
withRuleGroupName
Set the ruleGroupName property: The managed rule group for exclusion.- Parameters:
ruleGroupName- the ruleGroupName value to set.- Returns:
- the ExclusionManagedRuleGroup object itself.
-
rules
Get the rules property: List of rules that will be excluded. If none specified, all rules in the group will be excluded.- Returns:
- the rules value.
-
withRules
Set the rules property: List of rules that will be excluded. If none specified, all rules in the group will be excluded.- Parameters:
rules- the rules value to set.- Returns:
- the ExclusionManagedRuleGroup object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ExclusionManagedRuleGroup>- Throws:
IOException
-
fromJson
public static ExclusionManagedRuleGroup fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ExclusionManagedRuleGroup from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExclusionManagedRuleGroup if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ExclusionManagedRuleGroup.
-