Partilhar via


AzureAppPushReceiver Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.AzureAppPushReceiver

Implements

public final class AzureAppPushReceiver
implements JsonSerializable<AzureAppPushReceiver>

The Azure mobile App push notification receiver.

Constructor Summary

Constructor Description
AzureAppPushReceiver()

Creates an instance of AzureAppPushReceiver class.

Method Summary

Modifier and Type Method and Description
String emailAddress()

Get the emailAddress property: The email address registered for the Azure mobile app.

static AzureAppPushReceiver fromJson(JsonReader jsonReader)

Reads an instance of AzureAppPushReceiver from the JsonReader.

String name()

Get the name property: The name of the Azure mobile app push receiver.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureAppPushReceiver withEmailAddress(String emailAddress)

Set the emailAddress property: The email address registered for the Azure mobile app.

AzureAppPushReceiver withName(String name)

Set the name property: The name of the Azure mobile app push receiver.

Methods inherited from java.lang.Object

Constructor Details

AzureAppPushReceiver

public AzureAppPushReceiver()

Creates an instance of AzureAppPushReceiver class.

Method Details

emailAddress

public String emailAddress()

Get the emailAddress property: The email address registered for the Azure mobile app.

Returns:

the emailAddress value.

fromJson

public static AzureAppPushReceiver fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to