NotifyParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.models.NotifyParameters

Implements

public final class NotifyParameters
implements JsonSerializable<NotifyParameters>

Properties for generating a Notification.

Constructor Summary

Constructor Description
NotifyParameters()

Creates an instance of NotifyParameters class.

Method Summary

Modifier and Type Method and Description
NotificationChannelEventType eventName()

Get the eventName property: The type of event (i.e.

static NotifyParameters fromJson(JsonReader jsonReader)

Reads an instance of NotifyParameters from the JsonReader.

String jsonPayload()

Get the jsonPayload property: Properties for the notification in json format.

JsonWriter toJson(JsonWriter jsonWriter)
NotifyParameters withEventName(NotificationChannelEventType eventName)

Set the eventName property: The type of event (i.e.

NotifyParameters withJsonPayload(String jsonPayload)

Set the jsonPayload property: Properties for the notification in json format.

Methods inherited from java.lang.Object

Constructor Details

NotifyParameters

public NotifyParameters()

Creates an instance of NotifyParameters class.

Method Details

eventName

public NotificationChannelEventType eventName()

Get the eventName property: The type of event (i.e. AutoShutdown, Cost).

Returns:

the eventName value.

fromJson

public static NotifyParameters fromJson(JsonReader jsonReader)

Reads an instance of NotifyParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

jsonPayload

public String jsonPayload()

Get the jsonPayload property: Properties for the notification in json format.

Returns:

the jsonPayload value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withEventName

public NotifyParameters withEventName(NotificationChannelEventType eventName)

Set the eventName property: The type of event (i.e. AutoShutdown, Cost).

Parameters:

eventName - the eventName value to set.

Returns:

the NotifyParameters object itself.

withJsonPayload

public NotifyParameters withJsonPayload(String jsonPayload)

Set the jsonPayload property: Properties for the notification in json format.

Parameters:

jsonPayload - the jsonPayload value to set.

Returns:

the NotifyParameters object itself.

Applies to