NotificationsSourceAttackPath Class

public final class NotificationsSourceAttackPath
extends NotificationsSource

Attack path notification source.

Constructor Summary

Constructor Description
NotificationsSourceAttackPath()

Creates an instance of NotificationsSourceAttackPath class.

Method Summary

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

Reads an instance of NotificationsSourceAttackPath from the JsonReader.

MinimalRiskLevel minimalRiskLevel()

Get the minimalRiskLevel property: Defines the minimal attach path risk level 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.

NotificationsSourceAttackPath withMinimalRiskLevel(MinimalRiskLevel minimalRiskLevel)

Set the minimalRiskLevel property: Defines the minimal attach path risk level which will be sent as email notifications.

Methods inherited from NotificationsSource

Methods inherited from java.lang.Object

Constructor Details

NotificationsSourceAttackPath

public NotificationsSourceAttackPath()

Creates an instance of NotificationsSourceAttackPath class.

Method Details

fromJson

public static NotificationsSourceAttackPath fromJson(JsonReader jsonReader)

Reads an instance of NotificationsSourceAttackPath from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NotificationsSourceAttackPath 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 NotificationsSourceAttackPath.

minimalRiskLevel

public MinimalRiskLevel minimalRiskLevel()

Get the minimalRiskLevel property: Defines the minimal attach path risk level which will be sent as email notifications.

Returns:

the minimalRiskLevel value.

sourceType

public SourceType sourceType()

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

Overrides:

NotificationsSourceAttackPath.sourceType()

Returns:

the sourceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

NotificationsSourceAttackPath.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

NotificationsSourceAttackPath.validate()

withMinimalRiskLevel

public NotificationsSourceAttackPath withMinimalRiskLevel(MinimalRiskLevel minimalRiskLevel)

Set the minimalRiskLevel property: Defines the minimal attach path risk level which will be sent as email notifications.

Parameters:

minimalRiskLevel - the minimalRiskLevel value to set.

Returns:

the NotificationsSourceAttackPath object itself.

Applies to