Class NetworkRuleCondition

java.lang.Object
com.microsoft.azure.management.network.FirewallPolicyRuleCondition
com.microsoft.azure.management.network.NetworkRuleCondition

public class NetworkRuleCondition extends FirewallPolicyRuleCondition
Rule condition of type network.
  • Constructor Details

    • NetworkRuleCondition

      public NetworkRuleCondition()
  • Method Details

    • ipProtocols

      Get array of FirewallPolicyRuleConditionNetworkProtocols.
      Returns:
      the ipProtocols value
    • withIpProtocols

      Set array of FirewallPolicyRuleConditionNetworkProtocols.
      Parameters:
      ipProtocols - the ipProtocols value to set
      Returns:
      the NetworkRuleCondition object itself.
    • sourceAddresses

      public List<String> sourceAddresses()
      Get list of source IP addresses for this rule.
      Returns:
      the sourceAddresses value
    • withSourceAddresses

      public NetworkRuleCondition withSourceAddresses(List<String> sourceAddresses)
      Set list of source IP addresses for this rule.
      Parameters:
      sourceAddresses - the sourceAddresses value to set
      Returns:
      the NetworkRuleCondition object itself.
    • destinationAddresses

      public List<String> destinationAddresses()
      Get list of destination IP addresses or Service Tags.
      Returns:
      the destinationAddresses value
    • withDestinationAddresses

      public NetworkRuleCondition withDestinationAddresses(List<String> destinationAddresses)
      Set list of destination IP addresses or Service Tags.
      Parameters:
      destinationAddresses - the destinationAddresses value to set
      Returns:
      the NetworkRuleCondition object itself.
    • destinationPorts

      public List<String> destinationPorts()
      Get list of destination ports.
      Returns:
      the destinationPorts value
    • withDestinationPorts

      public NetworkRuleCondition withDestinationPorts(List<String> destinationPorts)
      Set list of destination ports.
      Parameters:
      destinationPorts - the destinationPorts value to set
      Returns:
      the NetworkRuleCondition object itself.