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.

static AllowlistCustomAlertRule fromJson(JsonReader jsonReader)

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

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<String> allowlistValues()

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

Returns:

the allowlistValues value.

fromJson

public static AllowlistCustomAlertRule fromJson(JsonReader jsonReader)

Reads an instance of AllowlistCustomAlertRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

AllowlistCustomAlertRule.ruleType()

Returns:

the ruleType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AllowlistCustomAlertRule.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

AllowlistCustomAlertRule.validate()

withAllowlistValues

public AllowlistCustomAlertRule withAllowlistValues(List<String> 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