public final class ApplicationRule extends FirewallPolicyRule
| Constructor and Description |
|---|
ApplicationRule() |
| Modifier and Type | Method and 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.
|
void |
validate()
Validates the instance.
|
ApplicationRule |
withDestinationAddresses(List<String> destinationAddresses)
Set the destinationAddresses property: List of destination IP addresses or Service Tags.
|
ApplicationRule |
withFqdnTags(List<String> fqdnTags)
Set the fqdnTags property: List of FQDN Tags for this rule.
|
ApplicationRule |
withProtocols(List<FirewallPolicyRuleApplicationProtocol> protocols)
Set the protocols property: Array of Application Protocols.
|
ApplicationRule |
withSourceAddresses(List<String> sourceAddresses)
Set the sourceAddresses property: List of source IP addresses for this rule.
|
ApplicationRule |
withSourceIpGroups(List<String> sourceIpGroups)
Set the sourceIpGroups property: List of source IpGroups for this rule.
|
ApplicationRule |
withTargetFqdns(List<String> targetFqdns)
Set the targetFqdns property: List of FQDNs for this rule.
|
description, name, withDescription, withNamepublic List<String> sourceAddresses()
public ApplicationRule withSourceAddresses(List<String> sourceAddresses)
sourceAddresses - the sourceAddresses value to set.public List<String> destinationAddresses()
public ApplicationRule withDestinationAddresses(List<String> destinationAddresses)
destinationAddresses - the destinationAddresses value to set.public List<FirewallPolicyRuleApplicationProtocol> protocols()
public ApplicationRule withProtocols(List<FirewallPolicyRuleApplicationProtocol> protocols)
protocols - the protocols value to set.public List<String> targetFqdns()
public ApplicationRule withTargetFqdns(List<String> targetFqdns)
targetFqdns - the targetFqdns value to set.public List<String> fqdnTags()
public ApplicationRule withFqdnTags(List<String> fqdnTags)
fqdnTags - the fqdnTags value to set.public List<String> sourceIpGroups()
public ApplicationRule withSourceIpGroups(List<String> sourceIpGroups)
sourceIpGroups - the sourceIpGroups value to set.public void validate()
validate in class FirewallPolicyRuleIllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.