Class FirewallPolicyRuleCollection
java.lang.Object
com.azure.resourcemanager.network.models.FirewallPolicyRuleCollection
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FirewallPolicyRuleCollection>
- Direct Known Subclasses:
FirewallPolicyFilterRuleCollection,FirewallPolicyNatRuleCollection
public class FirewallPolicyRuleCollection
extends Object
implements com.azure.json.JsonSerializable<FirewallPolicyRuleCollection>
Properties of the rule collection.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FirewallPolicyRuleCollection class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FirewallPolicyRuleCollectionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FirewallPolicyRuleCollection from the JsonReader.name()Get the name property: The name of the rule collection.priority()Get the priority property: Priority of the Firewall Policy Rule Collection resource.Get the ruleCollectionType property: The type of the rule collection.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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.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
-
FirewallPolicyRuleCollection
public FirewallPolicyRuleCollection()Creates an instance of FirewallPolicyRuleCollection class.
-
-
Method Details
-
ruleCollectionType
Get the ruleCollectionType property: The type of the rule collection.- Returns:
- the ruleCollectionType value.
-
name
Get the name property: The name of the rule collection.- Returns:
- the name value.
-
withName
Set the name property: The name of the rule collection.- Parameters:
name- the name value to set.- Returns:
- the FirewallPolicyRuleCollection object itself.
-
priority
Get the priority property: Priority of the Firewall Policy Rule Collection resource.- Returns:
- the priority value.
-
withPriority
Set the priority property: Priority of the Firewall Policy Rule Collection resource.- Parameters:
priority- the priority value to set.- Returns:
- the FirewallPolicyRuleCollection 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<FirewallPolicyRuleCollection>- Throws:
IOException
-
fromJson
public static FirewallPolicyRuleCollection fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FirewallPolicyRuleCollection from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FirewallPolicyRuleCollection 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 FirewallPolicyRuleCollection.
-