Class FirewallPolicyNatRuleCollection
java.lang.Object
com.azure.resourcemanager.network.models.FirewallPolicyRuleCollection
com.azure.resourcemanager.network.models.FirewallPolicyNatRuleCollection
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.Get the ruleCollectionType property: The type of the rule collection.rules()Get the rules property: List of rules included in a rule collection.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, priority
-
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.
-