ManagedRulesDefinition Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ManagedRulesDefinition
- com.
Implements
public final class ManagedRulesDefinition
implements JsonSerializable<ManagedRulesDefinition>
Allow to exclude some variable satisfy the condition for the WAF check.
Constructor Summary
Constructor | Description |
---|---|
ManagedRulesDefinition() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Exception |
exceptions()
Get the exceptions property: The exceptions that are applied on the policy. |
List<Owasp |
exclusions()
Get the exclusions property: The Exclusions that are applied on the policy. |
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
List<Managed |
managedRuleSets()
Get the managed |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Managed |
withExceptions(List<ExceptionEntry> exceptions)
Set the exceptions property: The exceptions that are applied on the policy. |
Managed |
withExclusions(List<OwaspCrsExclusionEntry> exclusions)
Set the exclusions property: The Exclusions that are applied on the policy. |
Managed |
withManagedRuleSets(List<ManagedRuleSet> managedRuleSets)
Set the managed |
Methods inherited from java.lang.Object
Constructor Details
ManagedRulesDefinition
public ManagedRulesDefinition()
Creates an instance of ManagedRulesDefinition class.
Method Details
exceptions
public List
Get the exceptions property: The exceptions that are applied on the policy.
Returns:
exclusions
public List
Get the exclusions property: The Exclusions that are applied on the policy.
Returns:
fromJson
public static ManagedRulesDefinition fromJson(JsonReader jsonReader)
Reads an instance of ManagedRulesDefinition from the JsonReader.
Parameters:
Returns:
Throws:
managedRuleSets
public List
Get the managedRuleSets property: The managed rule sets that are associated with the policy.
Returns:
toJson
validate
public void validate()
Validates the instance.
withExceptions
public ManagedRulesDefinition withExceptions(List
Set the exceptions property: The exceptions that are applied on the policy.
Parameters:
Returns:
withExclusions
public ManagedRulesDefinition withExclusions(List
Set the exclusions property: The Exclusions that are applied on the policy.
Parameters:
Returns:
withManagedRuleSets
public ManagedRulesDefinition withManagedRuleSets(List
Set the managedRuleSets property: The managed rule sets that are associated with the policy.
Parameters:
Returns:
Applies to
Azure SDK for Java