Class FirewallPolicyNatRuleCollection
java.lang.Object
com.azure.resourcemanager.network.models.FirewallPolicyRuleCollection
com.azure.resourcemanager.network.models.FirewallPolicyNatRuleCollection
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FirewallPolicyRuleCollection>
Firewall Policy NAT Rule Collection.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FirewallPolicyNatRuleCollection class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: The action type of a Nat rule collection.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FirewallPolicyNatRuleCollection 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 Nat 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 com.azure.resourcemanager.network.models.FirewallPolicyRuleCollection
name, priorityMethods 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
-
FirewallPolicyNatRuleCollection
public FirewallPolicyNatRuleCollection()Creates an instance of FirewallPolicyNatRuleCollection 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 Nat rule collection.- Returns:
- the action value.
-
withAction
Set the action property: The action type of a Nat rule collection.- Parameters:
action- the action value to set.- Returns:
- the FirewallPolicyNatRuleCollection 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 FirewallPolicyNatRuleCollection 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 FirewallPolicyNatRuleCollection fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FirewallPolicyNatRuleCollection from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FirewallPolicyNatRuleCollection 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 FirewallPolicyNatRuleCollection.
-