Event Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. models. Event
- com.
Implements
public final class Event
implements JsonSerializable<Event>
An event to be notified for.
Constructor Summary
| Constructor | Description |
|---|---|
| Event() |
Creates an instance of Event class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Notification |
eventName()
Get the event |
| static Event |
fromJson(JsonReader jsonReader)
Reads an instance of Event from the Json |
|
Json |
toJson(JsonWriter jsonWriter) |
| Event |
withEventName(NotificationChannelEventType eventName)
Set the event |
Methods inherited from java.lang.Object
Constructor Details
Event
public Event()
Creates an instance of Event class.
Method Details
eventName
public NotificationChannelEventType eventName()
Get the eventName property: The event type for which this notification is enabled (i.e. AutoShutdown, Cost).
Returns:
fromJson
public static Event fromJson(JsonReader jsonReader)
Reads an instance of Event from the JsonReader.
Parameters:
Returns:
Throws:
toJson
withEventName
public Event withEventName(NotificationChannelEventType eventName)
Set the eventName property: The event type for which this notification is enabled (i.e. AutoShutdown, Cost).
Parameters:
Returns: