DenylistCustomAlertRule Class

public final class DenylistCustomAlertRule
extends ListCustomAlertRule

A custom alert rule that checks if a value (depends on the custom alert type) is denied.

Constructor Summary

Constructor Description
DenylistCustomAlertRule()

Creates an instance of DenylistCustomAlertRule class.

Method Summary

Modifier and Type Method and Description
List<String> denylistValues()

Get the denylistValues property: The values to deny.

static DenylistCustomAlertRule fromJson(JsonReader jsonReader)

Reads an instance of DenylistCustomAlertRule 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.

DenylistCustomAlertRule withDenylistValues(List<String> denylistValues)

Set the denylistValues property: The values to deny.

DenylistCustomAlertRule withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Methods inherited from CustomAlertRule

Methods inherited from ListCustomAlertRule

Methods inherited from java.lang.Object

Constructor Details

DenylistCustomAlertRule

public DenylistCustomAlertRule()

Creates an instance of DenylistCustomAlertRule class.

Method Details

denylistValues

public List<String> denylistValues()

Get the denylistValues property: The values to deny. The format of the values depends on the rule type.

Returns:

the denylistValues value.

fromJson

public static DenylistCustomAlertRule fromJson(JsonReader jsonReader)

Reads an instance of DenylistCustomAlertRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DenylistCustomAlertRule 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:

DenylistCustomAlertRule.ruleType()

Returns:

the ruleType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DenylistCustomAlertRule.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DenylistCustomAlertRule.validate()

withDenylistValues

public DenylistCustomAlertRule withDenylistValues(List<String> denylistValues)

Set the denylistValues property: The values to deny. The format of the values depends on the rule type.

Parameters:

denylistValues - the denylistValues value to set.

Returns:

the DenylistCustomAlertRule object itself.

withIsEnabled

public DenylistCustomAlertRule withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Overrides:

DenylistCustomAlertRule.withIsEnabled(boolean isEnabled)

Parameters:

isEnabled

Applies to