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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the emailAddress property: The email address registered for the Azure mobile app.static AzureAppPushReceiver
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AzureAppPushReceiver from the JsonReader.name()
Get the name property: The name of the Azure mobile app push receiver.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withEmailAddress
(String emailAddress) Set the emailAddress property: The email address registered for the Azure mobile app.Set the name property: The name of the Azure mobile app push receiver.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AzureAppPushReceiver
public AzureAppPushReceiver()Creates an instance of AzureAppPushReceiver class.
-
-
Method Details
-
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
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
Get the emailAddress property: The email address registered for the Azure mobile app.- Returns:
- the emailAddress value.
-
withEmailAddress
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
- Specified by:
toJson
in interfacecom.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.
-