Class ApplicationRule
- java.lang.Object
-
- com.azure.resourcemanager.network.models.FirewallPolicyRule
-
- com.azure.resourcemanager.network.models.ApplicationRule
-
public final class ApplicationRule extends FirewallPolicyRule
Rule of type application.
-
-
Constructor Summary
Constructors Constructor Description ApplicationRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>destinationAddresses()Get the destinationAddresses property: List of destination IP addresses or Service Tags.List<String>fqdnTags()Get the fqdnTags property: List of FQDN Tags for this rule.List<FirewallPolicyRuleApplicationProtocol>protocols()Get the protocols property: Array of Application Protocols.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.List<String>targetUrls()Get the targetUrls property: List of Urls for this rule condition.BooleanterminateTls()Get the terminateTls property: Terminate TLS connections for this rule.voidvalidate()Validates the instance.List<String>webCategories()Get the webCategories property: List of destination azure web categories.ApplicationRulewithDescription(String description)Set the description property: Description of the rule.ApplicationRulewithDestinationAddresses(List<String> destinationAddresses)Set the destinationAddresses property: List of destination IP addresses or Service Tags.ApplicationRulewithFqdnTags(List<String> fqdnTags)Set the fqdnTags property: List of FQDN Tags for this rule.ApplicationRulewithName(String name)Set the name property: Name of the rule.ApplicationRulewithProtocols(List<FirewallPolicyRuleApplicationProtocol> protocols)Set the protocols property: Array of Application Protocols.ApplicationRulewithSourceAddresses(List<String> sourceAddresses)Set the sourceAddresses property: List of source IP addresses for this rule.ApplicationRulewithSourceIpGroups(List<String> sourceIpGroups)Set the sourceIpGroups property: List of source IpGroups for this rule.ApplicationRulewithTargetFqdns(List<String> targetFqdns)Set the targetFqdns property: List of FQDNs for this rule.ApplicationRulewithTargetUrls(List<String> targetUrls)Set the targetUrls property: List of Urls for this rule condition.ApplicationRulewithTerminateTls(Boolean terminateTls)Set the terminateTls property: Terminate TLS connections for this rule.ApplicationRulewithWebCategories(List<String> webCategories)Set the webCategories property: List of destination azure web categories.-
Methods inherited from class com.azure.resourcemanager.network.models.FirewallPolicyRule
description, name
-
-
-
-
Method Detail
-
sourceAddresses
public List<String> sourceAddresses()
Get the sourceAddresses property: List of source IP addresses for this rule.- Returns:
- the sourceAddresses value.
-
withSourceAddresses
public ApplicationRule 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 ApplicationRule object itself.
-
destinationAddresses
public List<String> destinationAddresses()
Get the destinationAddresses property: List of destination IP addresses or Service Tags.- Returns:
- the destinationAddresses value.
-
withDestinationAddresses
public ApplicationRule withDestinationAddresses(List<String> destinationAddresses)
Set the destinationAddresses property: List of destination IP addresses or Service Tags.- Parameters:
destinationAddresses- the destinationAddresses value to set.- Returns:
- the ApplicationRule object itself.
-
protocols
public List<FirewallPolicyRuleApplicationProtocol> protocols()
Get the protocols property: Array of Application Protocols.- Returns:
- the protocols value.
-
withProtocols
public ApplicationRule withProtocols(List<FirewallPolicyRuleApplicationProtocol> protocols)
Set the protocols property: Array of Application Protocols.- Parameters:
protocols- the protocols value to set.- Returns:
- the ApplicationRule object itself.
-
targetFqdns
public List<String> targetFqdns()
Get the targetFqdns property: List of FQDNs for this rule.- Returns:
- the targetFqdns value.
-
withTargetFqdns
public ApplicationRule withTargetFqdns(List<String> targetFqdns)
Set the targetFqdns property: List of FQDNs for this rule.- Parameters:
targetFqdns- the targetFqdns value to set.- Returns:
- the ApplicationRule object itself.
-
targetUrls
public List<String> targetUrls()
Get the targetUrls property: List of Urls for this rule condition.- Returns:
- the targetUrls value.
-
withTargetUrls
public ApplicationRule withTargetUrls(List<String> targetUrls)
Set the targetUrls property: List of Urls for this rule condition.- Parameters:
targetUrls- the targetUrls value to set.- Returns:
- the ApplicationRule object itself.
-
fqdnTags
public List<String> fqdnTags()
Get the fqdnTags property: List of FQDN Tags for this rule.- Returns:
- the fqdnTags value.
-
withFqdnTags
public ApplicationRule withFqdnTags(List<String> fqdnTags)
Set the fqdnTags property: List of FQDN Tags for this rule.- Parameters:
fqdnTags- the fqdnTags value to set.- Returns:
- the ApplicationRule object itself.
-
sourceIpGroups
public List<String> sourceIpGroups()
Get the sourceIpGroups property: List of source IpGroups for this rule.- Returns:
- the sourceIpGroups value.
-
withSourceIpGroups
public ApplicationRule withSourceIpGroups(List<String> sourceIpGroups)
Set the sourceIpGroups property: List of source IpGroups for this rule.- Parameters:
sourceIpGroups- the sourceIpGroups value to set.- Returns:
- the ApplicationRule object itself.
-
terminateTls
public Boolean terminateTls()
Get the terminateTls property: Terminate TLS connections for this rule.- Returns:
- the terminateTls value.
-
withTerminateTls
public ApplicationRule withTerminateTls(Boolean terminateTls)
Set the terminateTls property: Terminate TLS connections for this rule.- Parameters:
terminateTls- the terminateTls value to set.- Returns:
- the ApplicationRule object itself.
-
webCategories
public List<String> webCategories()
Get the webCategories property: List of destination azure web categories.- Returns:
- the webCategories value.
-
withWebCategories
public ApplicationRule withWebCategories(List<String> webCategories)
Set the webCategories property: List of destination azure web categories.- Parameters:
webCategories- the webCategories value to set.- Returns:
- the ApplicationRule object itself.
-
withName
public ApplicationRule withName(String name)
Set the name property: Name of the rule.- Overrides:
withNamein classFirewallPolicyRule- Parameters:
name- the name value to set.- Returns:
- the FirewallPolicyRule object itself.
-
withDescription
public ApplicationRule withDescription(String description)
Set the description property: Description of the rule.- Overrides:
withDescriptionin classFirewallPolicyRule- Parameters:
description- the description value to set.- Returns:
- the FirewallPolicyRule object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classFirewallPolicyRule- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-