Class FirewallPolicyFilterRuleCollection
java.lang.Object
com.azure.resourcemanager.network.models.FirewallPolicyRuleCollection
com.azure.resourcemanager.network.models.FirewallPolicyFilterRuleCollection
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FirewallPolicyRuleCollection>
Firewall Policy Filter Rule Collection.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FirewallPolicyFilterRuleCollection class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: The action type of a Filter rule collection.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FirewallPolicyFilterRuleCollection from the JsonReader.Get the ruleCollectionType property: The type of the rule collection.rules()Get the rules property: List of rules included in a rule collection.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the action property: The action type of a Filter rule collection.Set the name property: The name of the rule collection.withPriority(Integer priority) Set the priority property: Priority of the Firewall Policy Rule Collection resource.withRules(List<FirewallPolicyRule> rules) Set the rules property: List of rules included in a rule collection.Methods inherited from class FirewallPolicyRuleCollection
name, priorityMethods inherited from class 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
-
FirewallPolicyFilterRuleCollection
public FirewallPolicyFilterRuleCollection()Creates an instance of FirewallPolicyFilterRuleCollection class.
-
-
Method Details
-
ruleCollectionType
Get the ruleCollectionType property: The type of the rule collection.- Overrides:
ruleCollectionTypein classFirewallPolicyRuleCollection- Returns:
- the ruleCollectionType value.
-
action
Get the action property: The action type of a Filter rule collection.- Returns:
- the action value.
-
withAction
public FirewallPolicyFilterRuleCollection withAction(FirewallPolicyFilterRuleCollectionAction action) Set the action property: The action type of a Filter rule collection.- Parameters:
action- the action value to set.- Returns:
- the FirewallPolicyFilterRuleCollection object itself.
-
rules
Get the rules property: List of rules included in a rule collection.- Returns:
- the rules value.
-
withRules
Set the rules property: List of rules included in a rule collection.- Parameters:
rules- the rules value to set.- Returns:
- the FirewallPolicyFilterRuleCollection object itself.
-
withName
Set the name property: The name of the rule collection.- Overrides:
withNamein classFirewallPolicyRuleCollection- Parameters:
name- the name value to set.- Returns:
- the FirewallPolicyRuleCollection object itself.
-
withPriority
Set the priority property: Priority of the Firewall Policy Rule Collection resource.- Overrides:
withPriorityin classFirewallPolicyRuleCollection- Parameters:
priority- the priority value to set.- Returns:
- the FirewallPolicyRuleCollection object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classFirewallPolicyRuleCollection- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<FirewallPolicyRuleCollection>- Overrides:
toJsonin classFirewallPolicyRuleCollection- Throws:
IOException
-
fromJson
public static FirewallPolicyFilterRuleCollection fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FirewallPolicyFilterRuleCollection from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FirewallPolicyFilterRuleCollection 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 FirewallPolicyFilterRuleCollection.
-