Class AzureFirewallNetworkRule

java.lang.Object
com.microsoft.azure.management.network.AzureFirewallNetworkRule

public class AzureFirewallNetworkRule extends Object
Properties of the network rule.
  • Constructor Details

    • AzureFirewallNetworkRule

      public AzureFirewallNetworkRule()
  • Method Details

    • name

      public String name()
      Get name of the network rule.
      Returns:
      the name value
    • withName

      public AzureFirewallNetworkRule withName(String name)
      Set name of the network rule.
      Parameters:
      name - the name value to set
      Returns:
      the AzureFirewallNetworkRule object itself.
    • description

      public String description()
      Get description of the rule.
      Returns:
      the description value
    • withDescription

      public AzureFirewallNetworkRule withDescription(String description)
      Set description of the rule.
      Parameters:
      description - the description value to set
      Returns:
      the AzureFirewallNetworkRule object itself.
    • protocols

      Get array of AzureFirewallNetworkRuleProtocols.
      Returns:
      the protocols value
    • withProtocols

      Set array of AzureFirewallNetworkRuleProtocols.
      Parameters:
      protocols - the protocols value to set
      Returns:
      the AzureFirewallNetworkRule object itself.
    • sourceAddresses

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

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

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

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

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

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

      public List<String> destinationFqdns()
      Get list of destination FQDNs.
      Returns:
      the destinationFqdns value
    • withDestinationFqdns

      public AzureFirewallNetworkRule withDestinationFqdns(List<String> destinationFqdns)
      Set list of destination FQDNs.
      Parameters:
      destinationFqdns - the destinationFqdns value to set
      Returns:
      the AzureFirewallNetworkRule object itself.
    • sourceIpGroups

      public List<String> sourceIpGroups()
      Get list of source IpGroups for this rule.
      Returns:
      the sourceIpGroups value
    • withSourceIpGroups

      public AzureFirewallNetworkRule withSourceIpGroups(List<String> sourceIpGroups)
      Set list of source IpGroups for this rule.
      Parameters:
      sourceIpGroups - the sourceIpGroups value to set
      Returns:
      the AzureFirewallNetworkRule object itself.
    • destinationIpGroups

      public List<String> destinationIpGroups()
      Get list of destination IpGroups for this rule.
      Returns:
      the destinationIpGroups value
    • withDestinationIpGroups

      public AzureFirewallNetworkRule withDestinationIpGroups(List<String> destinationIpGroups)
      Set list of destination IpGroups for this rule.
      Parameters:
      destinationIpGroups - the destinationIpGroups value to set
      Returns:
      the AzureFirewallNetworkRule object itself.