Class AzureFirewallApplicationRule

java.lang.Object
com.azure.resourcemanager.network.models.AzureFirewallApplicationRule
All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureFirewallApplicationRule>

public final class AzureFirewallApplicationRule extends Object implements com.azure.json.JsonSerializable<AzureFirewallApplicationRule>
Properties of an application rule.
  • Constructor Details

    • AzureFirewallApplicationRule

      public AzureFirewallApplicationRule()
      Creates an instance of AzureFirewallApplicationRule class.
  • Method Details

    • name

      public String name()
      Get the name property: Name of the application rule.
      Returns:
      the name value.
    • withName

      public AzureFirewallApplicationRule withName(String name)
      Set the name property: Name of the application rule.
      Parameters:
      name - the name value to set.
      Returns:
      the AzureFirewallApplicationRule object itself.
    • description

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

      public AzureFirewallApplicationRule withDescription(String description)
      Set the description property: Description of the rule.
      Parameters:
      description - the description value to set.
      Returns:
      the AzureFirewallApplicationRule object itself.
    • sourceAddresses

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

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

      Get the protocols property: Array of ApplicationRuleProtocols.
      Returns:
      the protocols value.
    • withProtocols

      Set the protocols property: Array of ApplicationRuleProtocols.
      Parameters:
      protocols - the protocols value to set.
      Returns:
      the AzureFirewallApplicationRule object itself.
    • targetFqdns

      public List<String> targetFqdns()
      Get the targetFqdns property: List of FQDNs for this rule.
      Returns:
      the targetFqdns value.
    • withTargetFqdns

      public AzureFirewallApplicationRule withTargetFqdns(List<String> targetFqdns)
      Set the targetFqdns property: List of FQDNs for this rule.
      Parameters:
      targetFqdns - the targetFqdns value to set.
      Returns:
      the AzureFirewallApplicationRule object itself.
    • fqdnTags

      public List<String> fqdnTags()
      Get the fqdnTags property: List of FQDN Tags for this rule.
      Returns:
      the fqdnTags value.
    • withFqdnTags

      public AzureFirewallApplicationRule withFqdnTags(List<String> fqdnTags)
      Set the fqdnTags property: List of FQDN Tags for this rule.
      Parameters:
      fqdnTags - the fqdnTags value to set.
      Returns:
      the AzureFirewallApplicationRule object itself.
    • sourceIpGroups

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

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

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AzureFirewallApplicationRule>
      Throws:
      IOException
    • fromJson

      public static AzureFirewallApplicationRule fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AzureFirewallApplicationRule from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AzureFirewallApplicationRule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the AzureFirewallApplicationRule.