@Generated(value="software.amazon.awssdk:codegen") public final class Message extends Object implements StructuredPojo, 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.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
mediaUrl()
The URL that points to the media resource, for example a .mp4 or .gif file.
|
String |
rawContent()
The Raw JSON formatted string to be used as the payload.
|
static Class<? extends Message.Builder> |
serializableBuilderClass() |
Boolean |
silentPush()
Indicates if the message should display on the users device.
|
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 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()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.