Class NotifyParameters

java.lang.Object
com.azure.resourcemanager.devtestlabs.models.NotifyParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<NotifyParameters>

public final class NotifyParameters extends Object implements com.azure.json.JsonSerializable<NotifyParameters>
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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<NotifyParameters>
      Throws:
      IOException
    • fromJson

      public static NotifyParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.