Class AzureFirewallApplicationRule
- java.lang.Object
-
- com.azure.resourcemanager.network.models.AzureFirewallApplicationRule
-
public final class AzureFirewallApplicationRule extends Object
Properties of an application rule.
-
-
Constructor Summary
Constructors Constructor Description AzureFirewallApplicationRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()Get the description property: Description of the rule.List<String>fqdnTags()Get the fqdnTags property: List of FQDN Tags for this rule.Stringname()Get the name property: Name of the application rule.List<AzureFirewallApplicationRuleProtocol>protocols()Get the protocols property: Array of ApplicationRuleProtocols.List<String>sourceAddresses()Get the sourceAddresses property: List of source IP addresses for this rule.List<String>sourceIpGroups()Get the sourceIpGroups property: List of source IpGroups for this rule.List<String>targetFqdns()Get the targetFqdns property: List of FQDNs for this rule.voidvalidate()Validates the instance.AzureFirewallApplicationRulewithDescription(String description)Set the description property: Description of the rule.AzureFirewallApplicationRulewithFqdnTags(List<String> fqdnTags)Set the fqdnTags property: List of FQDN Tags for this rule.AzureFirewallApplicationRulewithName(String name)Set the name property: Name of the application rule.AzureFirewallApplicationRulewithProtocols(List<AzureFirewallApplicationRuleProtocol> protocols)Set the protocols property: Array of ApplicationRuleProtocols.AzureFirewallApplicationRulewithSourceAddresses(List<String> sourceAddresses)Set the sourceAddresses property: List of source IP addresses for this rule.AzureFirewallApplicationRulewithSourceIpGroups(List<String> sourceIpGroups)Set the sourceIpGroups property: List of source IpGroups for this rule.AzureFirewallApplicationRulewithTargetFqdns(List<String> targetFqdns)Set the targetFqdns property: List of FQDNs for this rule.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of the application rule.- Returns:
- the name value.
-
withName
public AzureFirewallApplicationRule withName(String name)
Set the name property: Name of the application rule.- Parameters:
name- the name value to set.- Returns:
- the AzureFirewallApplicationRule object itself.
-
description
public String description()
Get the description property: Description of the rule.- Returns:
- the description value.
-
withDescription
public AzureFirewallApplicationRule withDescription(String description)
Set the description property: Description of the rule.- Parameters:
description- the description value to set.- Returns:
- the AzureFirewallApplicationRule object itself.
-
sourceAddresses
public List<String> sourceAddresses()
Get the sourceAddresses property: List of source IP addresses for this rule.- Returns:
- the sourceAddresses value.
-
withSourceAddresses
public AzureFirewallApplicationRule withSourceAddresses(List<String> sourceAddresses)
Set the sourceAddresses property: List of source IP addresses for this rule.- Parameters:
sourceAddresses- the sourceAddresses value to set.- Returns:
- the AzureFirewallApplicationRule object itself.
-
protocols
public List<AzureFirewallApplicationRuleProtocol> protocols()
Get the protocols property: Array of ApplicationRuleProtocols.- Returns:
- the protocols value.
-
withProtocols
public AzureFirewallApplicationRule withProtocols(List<AzureFirewallApplicationRuleProtocol> protocols)
Set the protocols property: Array of ApplicationRuleProtocols.- Parameters:
protocols- the protocols value to set.- Returns:
- the AzureFirewallApplicationRule object itself.
-
targetFqdns
public List<String> targetFqdns()
Get the targetFqdns property: List of FQDNs for this rule.- Returns:
- the targetFqdns value.
-
withTargetFqdns
public AzureFirewallApplicationRule withTargetFqdns(List<String> targetFqdns)
Set the targetFqdns property: List of FQDNs for this rule.- Parameters:
targetFqdns- the targetFqdns value to set.- Returns:
- the AzureFirewallApplicationRule object itself.
-
fqdnTags
public List<String> fqdnTags()
Get the fqdnTags property: List of FQDN Tags for this rule.- Returns:
- the fqdnTags value.
-
withFqdnTags
public AzureFirewallApplicationRule withFqdnTags(List<String> fqdnTags)
Set the fqdnTags property: List of FQDN Tags for this rule.- Parameters:
fqdnTags- the fqdnTags value to set.- Returns:
- the AzureFirewallApplicationRule object itself.
-
sourceIpGroups
public List<String> sourceIpGroups()
Get the sourceIpGroups property: List of source IpGroups for this rule.- Returns:
- the sourceIpGroups value.
-
withSourceIpGroups
public AzureFirewallApplicationRule withSourceIpGroups(List<String> sourceIpGroups)
Set the sourceIpGroups property: List of source IpGroups for this rule.- Parameters:
sourceIpGroups- the sourceIpGroups value to set.- Returns:
- the AzureFirewallApplicationRule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-