@Generated(value="software.amazon.awssdk:codegen") public final class DefaultPushNotificationMessage extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DefaultPushNotificationMessage.Builder,DefaultPushNotificationMessage>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DefaultPushNotificationMessage.Builder |
| Modifier and Type | Method and Description |
|---|---|
Action |
action()
The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app
launches, or it becomes the foreground app if it has been sent to the background.
|
String |
actionAsString()
The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app
launches, or it becomes the foreground app if it has been sent to the background.
|
String |
body()
The message body of the notification.
|
static DefaultPushNotificationMessage.Builder |
builder() |
Map<String,String> |
data()
The data payload used for a silent push.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends DefaultPushNotificationMessage.Builder> |
serializableBuilderClass() |
Boolean |
silentPush()
Indicates if the message should display on the recipient's device.
|
Map<String,List<String>> |
substitutions()
Default message substitutions.
|
String |
title()
The message title that displays above the message on the user's device.
|
DefaultPushNotificationMessage.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
url()
The URL to open in the user's mobile browser.
|
copypublic Action action()
If the service returns an enum value that is not available in the current SDK version, action will
return Action.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionAsString().
Actionpublic String actionAsString()
If the service returns an enum value that is not available in the current SDK version, action will
return Action.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionAsString().
Actionpublic String body()
public Map<String,String> data()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Boolean silentPush()
public Map<String,List<String>> substitutions()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String title()
public String url()
public DefaultPushNotificationMessage.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<DefaultPushNotificationMessage.Builder,DefaultPushNotificationMessage>public static DefaultPushNotificationMessage.Builder builder()
public static Class<? extends DefaultPushNotificationMessage.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.