AllowlistCustomAlertRule Class

public class AllowlistCustomAlertRule
extends ListCustomAlertRule

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

Constructor Summary

Constructor Description
AllowlistCustomAlertRule()

Creates an instance of AllowlistCustomAlertRule class.

Method Summary

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

Get the allowlistValues property: The values to allow.

void validate()

Validates the instance.

AllowlistCustomAlertRule withAllowlistValues(List<String> allowlistValues)

Set the allowlistValues property: The values to allow.

AllowlistCustomAlertRule 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

AllowlistCustomAlertRule

public AllowlistCustomAlertRule()

Creates an instance of AllowlistCustomAlertRule class.

Method Details

allowlistValues

public List allowlistValues()

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

Returns:

the allowlistValues value.

validate

public void validate()

Validates the instance.

Overrides:

AllowlistCustomAlertRule.validate()

withAllowlistValues

public AllowlistCustomAlertRule withAllowlistValues(List allowlistValues)

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

Parameters:

allowlistValues - the allowlistValues value to set.

Returns:

the AllowlistCustomAlertRule object itself.

withIsEnabled

public AllowlistCustomAlertRule withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Overrides:

AllowlistCustomAlertRule.withIsEnabled(boolean isEnabled)

Parameters:

isEnabled

Applies to