Class FirewallPolicyIntrusionDetection

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

public final class FirewallPolicyIntrusionDetection extends Object implements com.azure.json.JsonSerializable<FirewallPolicyIntrusionDetection>
Configuration for intrusion detection mode and rules.
  • Constructor Details

    • FirewallPolicyIntrusionDetection

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

    • mode

      Get the mode property: Intrusion detection general state. When attached to a parent policy, the firewall's effective IDPS mode is the stricter mode of the two.
      Returns:
      the mode value.
    • withMode

      Set the mode property: Intrusion detection general state. When attached to a parent policy, the firewall's effective IDPS mode is the stricter mode of the two.
      Parameters:
      mode - the mode value to set.
      Returns:
      the FirewallPolicyIntrusionDetection object itself.
    • profile

      Get the profile property: IDPS profile name. When attached to a parent policy, the firewall's effective profile is the profile name of the parent policy.
      Returns:
      the profile value.
    • withProfile

      Set the profile property: IDPS profile name. When attached to a parent policy, the firewall's effective profile is the profile name of the parent policy.
      Parameters:
      profile - the profile value to set.
      Returns:
      the FirewallPolicyIntrusionDetection object itself.
    • configuration

      Get the configuration property: Intrusion detection configuration properties.
      Returns:
      the configuration value.
    • withConfiguration

      Set the configuration property: Intrusion detection configuration properties.
      Parameters:
      configuration - the configuration value to set.
      Returns:
      the FirewallPolicyIntrusionDetection 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<FirewallPolicyIntrusionDetection>
      Throws:
      IOException
    • fromJson

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