Class NotifyParameters
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.NotifyParameters
Properties for generating a Notification.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the eventName property: The type of event (i.e.Get the jsonPayload property: Properties for the notification in json format.void
validate()
Validates the instance.withEventName
(NotificationChannelEventType eventName) Set the eventName property: The type of event (i.e.withJsonPayload
(String jsonPayload) Set the jsonPayload property: Properties for the notification in json format.
-
Constructor Details
-
NotifyParameters
public NotifyParameters()Creates an instance of NotifyParameters class.
-
-
Method Details
-
eventName
Get the eventName property: The type of event (i.e. AutoShutdown, Cost).- Returns:
- the eventName value.
-
withEventName
Set the eventName property: The type of event (i.e. AutoShutdown, Cost).- Parameters:
eventName
- the eventName value to set.- Returns:
- the NotifyParameters object itself.
-
jsonPayload
Get the jsonPayload property: Properties for the notification in json format.- Returns:
- the jsonPayload value.
-
withJsonPayload
Set the jsonPayload property: Properties for the notification in json format.- Parameters:
jsonPayload
- the jsonPayload value to set.- Returns:
- the NotifyParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-