FirewallPolicyIntrusionDetection Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetection

Implements

public final class FirewallPolicyIntrusionDetection
implements JsonSerializable<FirewallPolicyIntrusionDetection>

Configuration for intrusion detection mode and rules.

Constructor Summary

Constructor Description
FirewallPolicyIntrusionDetection()

Creates an instance of FirewallPolicyIntrusionDetection class.

Method Summary

Modifier and Type Method and Description
FirewallPolicyIntrusionDetectionConfiguration configuration()

Get the configuration property: Intrusion detection configuration properties.

static FirewallPolicyIntrusionDetection fromJson(JsonReader jsonReader)

Reads an instance of FirewallPolicyIntrusionDetection from the JsonReader.

FirewallPolicyIntrusionDetectionStateType mode()

Get the mode property: Intrusion detection general state.

FirewallPolicyIntrusionDetectionProfileType profile()

Get the profile property: IDPS profile name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FirewallPolicyIntrusionDetection withConfiguration(FirewallPolicyIntrusionDetectionConfiguration configuration)

Set the configuration property: Intrusion detection configuration properties.

FirewallPolicyIntrusionDetection withMode(FirewallPolicyIntrusionDetectionStateType mode)

Set the mode property: Intrusion detection general state.

FirewallPolicyIntrusionDetection withProfile(FirewallPolicyIntrusionDetectionProfileType profile)

Set the profile property: IDPS profile name.

Methods inherited from java.lang.Object

Constructor Details

FirewallPolicyIntrusionDetection

public FirewallPolicyIntrusionDetection()

Creates an instance of FirewallPolicyIntrusionDetection class.

Method Details

configuration

public FirewallPolicyIntrusionDetectionConfiguration configuration()

Get the configuration property: Intrusion detection configuration properties.

Returns:

the configuration value.

fromJson

public static FirewallPolicyIntrusionDetection fromJson(JsonReader jsonReader)

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.

mode

public FirewallPolicyIntrusionDetectionStateType 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.

profile

public FirewallPolicyIntrusionDetectionProfileType 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

withMode

public FirewallPolicyIntrusionDetection withMode(FirewallPolicyIntrusionDetectionStateType mode)

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.

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.

Applies to