ProcessNotAllowed Class

public final class ProcessNotAllowed
extends AllowlistCustomAlertRule

Execution of a process that isn't allowed. Allow list consists of process names to allow.

Constructor Summary

Constructor Description
ProcessNotAllowed()

Creates an instance of ProcessNotAllowed class.

Method Summary

Modifier and Type Method and Description
static ProcessNotAllowed fromJson(JsonReader jsonReader)

Reads an instance of ProcessNotAllowed from the JsonReader.

String ruleType()

Get the ruleType property: The type of the custom alert rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ProcessNotAllowed withAllowlistValues(List<String> allowlistValues)

Set the allowlistValues property: The values to allow.

ProcessNotAllowed withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Methods inherited from AllowlistCustomAlertRule

Methods inherited from CustomAlertRule

Methods inherited from ListCustomAlertRule

Methods inherited from java.lang.Object

Constructor Details

ProcessNotAllowed

public ProcessNotAllowed()

Creates an instance of ProcessNotAllowed class.

Method Details

fromJson

public static ProcessNotAllowed fromJson(JsonReader jsonReader)

Reads an instance of ProcessNotAllowed from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ProcessNotAllowed if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

ruleType

public String ruleType()

Get the ruleType property: The type of the custom alert rule.

Overrides:

ProcessNotAllowed.ruleType()

Returns:

the ruleType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ProcessNotAllowed.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ProcessNotAllowed.validate()

withAllowlistValues

public ProcessNotAllowed withAllowlistValues(List<String> allowlistValues)

Set the allowlistValues property: The values to allow. The format of the values depends on the rule type.

Overrides:

ProcessNotAllowed.withAllowlistValues(List<String> allowlistValues)

Parameters:

allowlistValues

withIsEnabled

public ProcessNotAllowed withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Overrides:

ProcessNotAllowed.withIsEnabled(boolean isEnabled)

Parameters:

isEnabled

Applies to