NotificationsSource Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.NotificationsSource

Implements

public class NotificationsSource
implements JsonSerializable<NotificationsSource>

A valid notification source type.

Constructor Summary

Constructor Description
NotificationsSource()

Creates an instance of NotificationsSource class.

Method Summary

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

Reads an instance of NotificationsSource from the JsonReader.

SourceType sourceType()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

NotificationsSource

public NotificationsSource()

Creates an instance of NotificationsSource class.

Method Details

fromJson

public static NotificationsSource fromJson(JsonReader jsonReader)

Reads an instance of NotificationsSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

sourceType

public SourceType sourceType()

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

Returns:

the sourceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to