Class ManagedRuleGroupDefinition
java.lang.Object
com.azure.resourcemanager.cdn.models.ManagedRuleGroupDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedRuleGroupDefinition>
public final class ManagedRuleGroupDefinition
extends Object
implements com.azure.json.JsonSerializable<ManagedRuleGroupDefinition>
Describes a managed rule group.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedRuleGroupDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Description of the managed rule group.static ManagedRuleGroupDefinitionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedRuleGroupDefinition from the JsonReader.Get the ruleGroupName property: Name of the managed rule group.rules()Get the rules property: List of rules within the managed rule group.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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
-
ManagedRuleGroupDefinition
public ManagedRuleGroupDefinition()Creates an instance of ManagedRuleGroupDefinition class.
-
-
Method Details
-
ruleGroupName
Get the ruleGroupName property: Name of the managed rule group.- Returns:
- the ruleGroupName value.
-
description
Get the description property: Description of the managed rule group.- Returns:
- the description value.
-
rules
Get the rules property: List of rules within the managed rule group.- Returns:
- the rules value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedRuleGroupDefinition>- Throws:
IOException
-
fromJson
public static ManagedRuleGroupDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedRuleGroupDefinition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedRuleGroupDefinition 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 ManagedRuleGroupDefinition.
-