NotificationsSourceAlert Class

public final class NotificationsSourceAlert
extends NotificationsSource

Alert notification source.

Constructor Summary

Constructor Description
NotificationsSourceAlert()

Creates an instance of NotificationsSourceAlert class.

Method Summary

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

Reads an instance of NotificationsSourceAlert from the JsonReader.

MinimalSeverity minimalSeverity()

Get the minimalSeverity property: Defines the minimal alert severity which will be sent as email notifications.

SourceType sourceType()

Get the sourceType property: The source type that will trigger the notification.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NotificationsSourceAlert withMinimalSeverity(MinimalSeverity minimalSeverity)

Set the minimalSeverity property: Defines the minimal alert severity which will be sent as email notifications.

Methods inherited from NotificationsSource

Methods inherited from java.lang.Object

Constructor Details

NotificationsSourceAlert

public NotificationsSourceAlert()

Creates an instance of NotificationsSourceAlert class.

Method Details

fromJson

public static NotificationsSourceAlert fromJson(JsonReader jsonReader)

Reads an instance of NotificationsSourceAlert from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the NotificationsSourceAlert.

minimalSeverity

public MinimalSeverity minimalSeverity()

Get the minimalSeverity property: Defines the minimal alert severity which will be sent as email notifications.

Returns:

the minimalSeverity value.

sourceType

public SourceType sourceType()

Get the sourceType property: The source type that will trigger the notification.

Overrides:

NotificationsSourceAlert.sourceType()

Returns:

the sourceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

NotificationsSourceAlert.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

NotificationsSourceAlert.validate()

withMinimalSeverity

public NotificationsSourceAlert withMinimalSeverity(MinimalSeverity minimalSeverity)

Set the minimalSeverity property: Defines the minimal alert severity which will be sent as email notifications.

Parameters:

minimalSeverity - the minimalSeverity value to set.

Returns:

the NotificationsSourceAlert object itself.

Applies to