Class ManagedRuleSet
java.lang.Object
com.azure.resourcemanager.network.models.ManagedRuleSet
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedRuleSet>
public final class ManagedRuleSet
extends Object
implements com.azure.json.JsonSerializable<ManagedRuleSet>
Defines a managed rule set.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ManagedRuleSetfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedRuleSet from the JsonReader.Get the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set.Get the ruleSetType property: Defines the rule set type to use.Get the ruleSetVersion property: Defines the version of the rule set to use.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withRuleGroupOverrides(List<ManagedRuleGroupOverride> ruleGroupOverrides) Set the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set.withRuleSetType(String ruleSetType) Set the ruleSetType property: Defines the rule set type to use.withRuleSetVersion(String ruleSetVersion) Set the ruleSetVersion property: Defines the version of the rule set to use.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
-
ManagedRuleSet
public ManagedRuleSet()Creates an instance of ManagedRuleSet class.
-
-
Method Details
-
ruleSetType
Get the ruleSetType property: Defines the rule set type to use.- Returns:
- the ruleSetType value.
-
withRuleSetType
Set the ruleSetType property: Defines the rule set type to use.- Parameters:
ruleSetType- the ruleSetType value to set.- Returns:
- the ManagedRuleSet object itself.
-
ruleSetVersion
Get the ruleSetVersion property: Defines the version of the rule set to use.- Returns:
- the ruleSetVersion value.
-
withRuleSetVersion
Set the ruleSetVersion property: Defines the version of the rule set to use.- Parameters:
ruleSetVersion- the ruleSetVersion value to set.- Returns:
- the ManagedRuleSet object itself.
-
ruleGroupOverrides
Get the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set.- Returns:
- the ruleGroupOverrides value.
-
withRuleGroupOverrides
Set the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set.- Parameters:
ruleGroupOverrides- the ruleGroupOverrides value to set.- Returns:
- the ManagedRuleSet 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<ManagedRuleSet>- Throws:
IOException
-
fromJson
Reads an instance of ManagedRuleSet from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedRuleSet 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 ManagedRuleSet.
-