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 Summary
ConstructorsConstructorDescriptionCreates an instance of FirewallPolicyIntrusionDetection class. -
Method Summary
Modifier and TypeMethodDescriptionGet the configuration property: Intrusion detection configuration properties.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FirewallPolicyIntrusionDetection from the JsonReader.mode()Get the mode property: Intrusion detection general state.profile()Get the profile property: IDPS profile name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withConfiguration(FirewallPolicyIntrusionDetectionConfiguration configuration) Set the configuration property: Intrusion detection configuration properties.Set the mode property: Intrusion detection general state.Set the profile property: IDPS profile name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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
public FirewallPolicyIntrusionDetection withProfile(FirewallPolicyIntrusionDetectionProfileType profile) 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
public FirewallPolicyIntrusionDetection withConfiguration(FirewallPolicyIntrusionDetectionConfiguration configuration) 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
- Specified by:
toJsonin interfacecom.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.
-