Class NetworkRuleCondition
java.lang.Object
com.microsoft.azure.management.network.FirewallPolicyRuleCondition
com.microsoft.azure.management.network.NetworkRuleCondition
Rule condition of type network.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet list of destination IP addresses or Service Tags.Get list of destination ports.Get array of FirewallPolicyRuleConditionNetworkProtocols.Get list of source IP addresses for this rule.withDestinationAddresses
(List<String> destinationAddresses) Set list of destination IP addresses or Service Tags.withDestinationPorts
(List<String> destinationPorts) Set list of destination ports.withIpProtocols
(List<FirewallPolicyRuleConditionNetworkProtocol> ipProtocols) Set array of FirewallPolicyRuleConditionNetworkProtocols.withSourceAddresses
(List<String> sourceAddresses) Set list of source IP addresses for this rule.Methods inherited from class com.microsoft.azure.management.network.FirewallPolicyRuleCondition
description, name, withDescription, withName
-
Constructor Details
-
NetworkRuleCondition
public NetworkRuleCondition()
-
-
Method Details
-
ipProtocols
Get array of FirewallPolicyRuleConditionNetworkProtocols.- Returns:
- the ipProtocols value
-
withIpProtocols
public NetworkRuleCondition withIpProtocols(List<FirewallPolicyRuleConditionNetworkProtocol> ipProtocols) Set array of FirewallPolicyRuleConditionNetworkProtocols.- Parameters:
ipProtocols
- the ipProtocols value to set- Returns:
- the NetworkRuleCondition object itself.
-
sourceAddresses
Get list of source IP addresses for this rule.- Returns:
- the sourceAddresses value
-
withSourceAddresses
Set list of source IP addresses for this rule.- Parameters:
sourceAddresses
- the sourceAddresses value to set- Returns:
- the NetworkRuleCondition object itself.
-
destinationAddresses
Get list of destination IP addresses or Service Tags.- Returns:
- the destinationAddresses value
-
withDestinationAddresses
Set list of destination IP addresses or Service Tags.- Parameters:
destinationAddresses
- the destinationAddresses value to set- Returns:
- the NetworkRuleCondition object itself.
-
destinationPorts
Get list of destination ports.- Returns:
- the destinationPorts value
-
withDestinationPorts
Set list of destination ports.- Parameters:
destinationPorts
- the destinationPorts value to set- Returns:
- the NetworkRuleCondition object itself.
-