ExclusionManagedRuleSet Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ExclusionManagedRuleSet
- com.
Implements
public final class ExclusionManagedRuleSet
implements JsonSerializable<ExclusionManagedRuleSet>
Defines a managed rule set for Exclusions.
Constructor Summary
Constructor | Description |
---|---|
ExclusionManagedRuleSet() |
Creates an instance of Exclusion |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Exclusion |
fromJson(JsonReader jsonReader)
Reads an instance of Exclusion |
List<Exclusion |
ruleGroups()
Get the rule |
String |
ruleSetType()
Get the rule |
String |
ruleSetVersion()
Get the rule |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Exclusion |
withRuleGroups(List<ExclusionManagedRuleGroup> ruleGroups)
Set the rule |
Exclusion |
withRuleSetType(String ruleSetType)
Set the rule |
Exclusion |
withRuleSetVersion(String ruleSetVersion)
Set the rule |
Methods inherited from java.lang.Object
Constructor Details
ExclusionManagedRuleSet
public ExclusionManagedRuleSet()
Creates an instance of ExclusionManagedRuleSet class.
Method Details
fromJson
public static ExclusionManagedRuleSet fromJson(JsonReader jsonReader)
Reads an instance of ExclusionManagedRuleSet from the JsonReader.
Parameters:
Returns:
Throws:
ruleGroups
public List
Get the ruleGroups property: Defines the rule groups 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.
withRuleGroups
public ExclusionManagedRuleSet withRuleGroups(List
Set the ruleGroups property: Defines the rule groups to apply to the rule set.
Parameters:
Returns:
withRuleSetType
public ExclusionManagedRuleSet withRuleSetType(String ruleSetType)
Set the ruleSetType property: Defines the rule set type to use.
Parameters:
Returns:
withRuleSetVersion
public ExclusionManagedRuleSet withRuleSetVersion(String ruleSetVersion)
Set the ruleSetVersion property: Defines the version of the rule set to use.
Parameters:
Returns: