Class NotifyParameters

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

public final class NotifyParameters extends Object
Properties for generating a Notification.
  • 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.
    • 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.
    • jsonPayload

      public String jsonPayload()
      Get the jsonPayload property: Properties for the notification in json format.
      Returns:
      the jsonPayload value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.