ManagedRuleSet Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ManagedRuleSet
- com.
Implements
public final class ManagedRuleSet
implements JsonSerializable<ManagedRuleSet>
Defines a managed rule set.
Constructor Summary
Constructor | Description |
---|---|
ManagedRuleSet() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
List<Managed |
ruleGroupOverrides()
Get the rule |
String |
ruleSetType()
Get the rule |
String |
ruleSetVersion()
Get the rule |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Managed |
withRuleGroupOverrides(List<ManagedRuleGroupOverride> ruleGroupOverrides)
Set the rule |
Managed |
withRuleSetType(String ruleSetType)
Set the rule |
Managed |
withRuleSetVersion(String ruleSetVersion)
Set the rule |
Methods inherited from java.lang.Object
Constructor Details
ManagedRuleSet
public ManagedRuleSet()
Creates an instance of ManagedRuleSet class.
Method Details
fromJson
public static ManagedRuleSet fromJson(JsonReader jsonReader)
Reads an instance of ManagedRuleSet from the JsonReader.
Parameters:
Returns:
Throws:
ruleGroupOverrides
public List
Get the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set.
Returns:
ruleSetType
public String ruleSetType()
Get the ruleSetType property: Defines the rule set type to use.
Returns:
ruleSetVersion
public String ruleSetVersion()
Get the ruleSetVersion property: Defines the version of the rule set to use.
Returns:
toJson
validate
public void validate()
Validates the instance.
withRuleGroupOverrides
public ManagedRuleSet withRuleGroupOverrides(List
Set the ruleGroupOverrides property: Defines the rule group overrides to apply to the rule set.
Parameters:
Returns:
withRuleSetType
public ManagedRuleSet withRuleSetType(String ruleSetType)
Set the ruleSetType property: Defines the rule set type to use.
Parameters:
Returns:
withRuleSetVersion
public ManagedRuleSet withRuleSetVersion(String ruleSetVersion)
Set the ruleSetVersion property: Defines the version of the rule set to use.
Parameters:
Returns:
Applies to
Azure SDK for Java