Class AzureAppPushReceiver

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

public final class AzureAppPushReceiver extends Object implements com.azure.json.JsonSerializable<AzureAppPushReceiver>
The Azure mobile App push notification receiver.
  • Constructor Details

    • AzureAppPushReceiver

      public AzureAppPushReceiver()
      Creates an instance of AzureAppPushReceiver class.
  • Method Details

    • name

      public String name()
      Get the name property: The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group.
      Returns:
      the name value.
    • withName

      public AzureAppPushReceiver withName(String name)
      Set the name property: The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group.
      Parameters:
      name - the name value to set.
      Returns:
      the AzureAppPushReceiver object itself.
    • emailAddress

      public String emailAddress()
      Get the emailAddress property: The email address registered for the Azure mobile app.
      Returns:
      the emailAddress value.
    • withEmailAddress

      public AzureAppPushReceiver withEmailAddress(String emailAddress)
      Set the emailAddress property: The email address registered for the Azure mobile app.
      Parameters:
      emailAddress - the emailAddress value to set.
      Returns:
      the AzureAppPushReceiver 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<AzureAppPushReceiver>
      Throws:
      IOException
    • fromJson

      public static AzureAppPushReceiver fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AzureAppPushReceiver from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AzureAppPushReceiver if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the AzureAppPushReceiver.