@Generated(value="software.amazon.awssdk:codegen") public final class Message extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Message.Builder,Message>
Modifier and Type | Class and Description |
---|---|
static interface |
Message.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.
|
static Message.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
imageIconUrl()
The URL that points to the icon image for the push notification icon, for example, the app icon.
|
String |
imageSmallIconUrl()
The URL that points to the small icon image for the push notification icon, for example, the app icon.
|
String |
imageUrl()
The URL that points to an image used in the push notification.
|
String |
jsonBody()
The JSON payload used for a silent push.
|
String |
mediaUrl()
A URL that refers to the location of an image or video that you want to display in the push notification.
|
String |
rawContent()
The Raw JSON formatted string to be used as the payload.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Message.Builder> |
serializableBuilderClass() |
Boolean |
silentPush()
Indicates if the message should display on the users device.
|
Integer |
timeToLive()
This parameter specifies how long (in seconds) the message should be kept if the service is unable to deliver the
notification the first time.
|
String |
title()
The message title that displays above the message on the user's device.
|
Message.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.
|
copy
public 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()
.
Action
public 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()
.
Action
public String body()
public String imageIconUrl()
public String imageSmallIconUrl()
public String imageUrl()
public String jsonBody()
public String mediaUrl()
public String rawContent()
public Boolean silentPush()
public Integer timeToLive()
public String title()
public String url()
public Message.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Message.Builder,Message>
public static Message.Builder builder()
public static Class<? extends Message.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.