public final class NetworkRule extends FirewallPolicyRule
| Constructor and Description |
|---|
NetworkRule() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
destinationAddresses()
Get the destinationAddresses property: List of destination IP addresses or Service Tags.
|
List<String> |
destinationFqdns()
Get the destinationFqdns property: List of destination FQDNs.
|
List<String> |
destinationIpGroups()
Get the destinationIpGroups property: List of destination IpGroups for this rule.
|
List<String> |
destinationPorts()
Get the destinationPorts property: List of destination ports.
|
List<FirewallPolicyRuleNetworkProtocol> |
ipProtocols()
Get the ipProtocols property: Array of FirewallPolicyRuleNetworkProtocols.
|
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.
|
void |
validate()
Validates the instance.
|
NetworkRule |
withDestinationAddresses(List<String> destinationAddresses)
Set the destinationAddresses property: List of destination IP addresses or Service Tags.
|
NetworkRule |
withDestinationFqdns(List<String> destinationFqdns)
Set the destinationFqdns property: List of destination FQDNs.
|
NetworkRule |
withDestinationIpGroups(List<String> destinationIpGroups)
Set the destinationIpGroups property: List of destination IpGroups for this rule.
|
NetworkRule |
withDestinationPorts(List<String> destinationPorts)
Set the destinationPorts property: List of destination ports.
|
NetworkRule |
withIpProtocols(List<FirewallPolicyRuleNetworkProtocol> ipProtocols)
Set the ipProtocols property: Array of FirewallPolicyRuleNetworkProtocols.
|
NetworkRule |
withSourceAddresses(List<String> sourceAddresses)
Set the sourceAddresses property: List of source IP addresses for this rule.
|
NetworkRule |
withSourceIpGroups(List<String> sourceIpGroups)
Set the sourceIpGroups property: List of source IpGroups for this rule.
|
description, name, withDescription, withNamepublic List<FirewallPolicyRuleNetworkProtocol> ipProtocols()
public NetworkRule withIpProtocols(List<FirewallPolicyRuleNetworkProtocol> ipProtocols)
ipProtocols - the ipProtocols value to set.public List<String> sourceAddresses()
public NetworkRule withSourceAddresses(List<String> sourceAddresses)
sourceAddresses - the sourceAddresses value to set.public List<String> destinationAddresses()
public NetworkRule withDestinationAddresses(List<String> destinationAddresses)
destinationAddresses - the destinationAddresses value to set.public List<String> destinationPorts()
public NetworkRule withDestinationPorts(List<String> destinationPorts)
destinationPorts - the destinationPorts value to set.public List<String> sourceIpGroups()
public NetworkRule withSourceIpGroups(List<String> sourceIpGroups)
sourceIpGroups - the sourceIpGroups value to set.public List<String> destinationIpGroups()
public NetworkRule withDestinationIpGroups(List<String> destinationIpGroups)
destinationIpGroups - the destinationIpGroups value to set.public List<String> destinationFqdns()
public NetworkRule withDestinationFqdns(List<String> destinationFqdns)
destinationFqdns - the destinationFqdns value to set.public void validate()
validate in class FirewallPolicyRuleIllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.