Class FirewallPolicyThreatIntelWhitelist

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

public final class FirewallPolicyThreatIntelWhitelist extends Object implements com.azure.json.JsonSerializable<FirewallPolicyThreatIntelWhitelist>
ThreatIntel Whitelist for Firewall Policy.
  • Constructor Details

    • FirewallPolicyThreatIntelWhitelist

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

    • ipAddresses

      public List<String> ipAddresses()
      Get the ipAddresses property: List of IP addresses for the ThreatIntel Whitelist.
      Returns:
      the ipAddresses value.
    • withIpAddresses

      public FirewallPolicyThreatIntelWhitelist withIpAddresses(List<String> ipAddresses)
      Set the ipAddresses property: List of IP addresses for the ThreatIntel Whitelist.
      Parameters:
      ipAddresses - the ipAddresses value to set.
      Returns:
      the FirewallPolicyThreatIntelWhitelist object itself.
    • fqdns

      public List<String> fqdns()
      Get the fqdns property: List of FQDNs for the ThreatIntel Whitelist.
      Returns:
      the fqdns value.
    • withFqdns

      public FirewallPolicyThreatIntelWhitelist withFqdns(List<String> fqdns)
      Set the fqdns property: List of FQDNs for the ThreatIntel Whitelist.
      Parameters:
      fqdns - the fqdns value to set.
      Returns:
      the FirewallPolicyThreatIntelWhitelist 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<FirewallPolicyThreatIntelWhitelist>
      Throws:
      IOException
    • fromJson

      public static FirewallPolicyThreatIntelWhitelist fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of FirewallPolicyThreatIntelWhitelist from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of FirewallPolicyThreatIntelWhitelist 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 FirewallPolicyThreatIntelWhitelist.