ListCustomAlertRule Class

public class ListCustomAlertRule
extends CustomAlertRule

A List custom alert rule.

Constructor Summary

Constructor Description
ListCustomAlertRule()

Creates an instance of ListCustomAlertRule class.

Method Summary

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

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

ValueType valueType()

Get the valueType property: The value type of the items in the list.

ListCustomAlertRule withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Methods inherited from CustomAlertRule

Methods inherited from java.lang.Object

Constructor Details

ListCustomAlertRule

public ListCustomAlertRule()

Creates an instance of ListCustomAlertRule class.

Method Details

fromJson

public static ListCustomAlertRule fromJson(JsonReader jsonReader)

Reads an instance of ListCustomAlertRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ListCustomAlertRule.ruleType()

Returns:

the ruleType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ListCustomAlertRule.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ListCustomAlertRule.validate()

valueType

public ValueType valueType()

Get the valueType property: The value type of the items in the list.

Returns:

the valueType value.

withIsEnabled

public ListCustomAlertRule withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Overrides:

ListCustomAlertRule.withIsEnabled(boolean isEnabled)

Parameters:

isEnabled

Applies to