NotifyParameters Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. models. NotifyParameters
- com.
Implements
public final class NotifyParameters
implements JsonSerializable<NotifyParameters>
Properties for generating a Notification.
Constructor Summary
| Constructor | Description |
|---|---|
| NotifyParameters() |
Creates an instance of Notify |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Notification |
eventName()
Get the event |
|
static
Notify |
fromJson(JsonReader jsonReader)
Reads an instance of Notify |
| String |
jsonPayload()
Get the json |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Notify |
withEventName(NotificationChannelEventType eventName)
Set the event |
|
Notify |
withJsonPayload(String jsonPayload)
Set the json |
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:
fromJson
public static NotifyParameters fromJson(JsonReader jsonReader)
Reads an instance of NotifyParameters from the JsonReader.
Parameters:
Returns:
Throws:
jsonPayload
public String jsonPayload()
Get the jsonPayload property: Properties for the notification in json format.
Returns:
toJson
withEventName
public NotifyParameters withEventName(NotificationChannelEventType eventName)
Set the eventName property: The type of event (i.e. AutoShutdown, Cost).
Parameters:
Returns:
withJsonPayload
public NotifyParameters withJsonPayload(String jsonPayload)
Set the jsonPayload property: Properties for the notification in json format.
Parameters:
Returns: