Class FirewallPolicyRule
- java.lang.Object
-
- com.azure.resourcemanager.network.models.FirewallPolicyRule
-
- Direct Known Subclasses:
ApplicationRule,NatRule,NetworkRule
public class FirewallPolicyRule extends Object
Properties of a rule.
-
-
Constructor Summary
Constructors Constructor Description FirewallPolicyRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()Get the description property: Description of the rule.Stringname()Get the name property: Name of the rule.voidvalidate()Validates the instance.FirewallPolicyRulewithDescription(String description)Set the description property: Description of the rule.FirewallPolicyRulewithName(String name)Set the name property: Name of the rule.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of the rule.- Returns:
- the name value.
-
withName
public FirewallPolicyRule withName(String name)
Set the name property: Name of the rule.- Parameters:
name- the name value to set.- Returns:
- the FirewallPolicyRule object itself.
-
description
public String description()
Get the description property: Description of the rule.- Returns:
- the description value.
-
withDescription
public FirewallPolicyRule withDescription(String description)
Set the description property: Description of the rule.- Parameters:
description- the description value to set.- Returns:
- the FirewallPolicyRule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-