StructuredPojo
, ToCopyableBuilder<GCMMessage.Builder,GCMMessage>
@Generated("software.amazon.awssdk:codegen") public class GCMMessage extends Object implements StructuredPojo, ToCopyableBuilder<GCMMessage.Builder,GCMMessage>
Modifier and Type | Class | Description |
---|---|---|
static interface |
GCMMessage.Builder |
Modifier and Type | Method | Description |
---|---|---|
String |
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 |
body() |
The message body of the notification, the email body or the text message.
|
static GCMMessage.Builder |
builder() |
|
String |
collapseKey() |
This parameter identifies a group of messages (e.g., with collapse_key: "Updates Available") that can be
collapsed, so that only the last message gets sent when delivery can be resumed.
|
Map<String,String> |
data() |
The data payload used for a silent push.
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
String |
iconReference() |
The icon image name of the asset saved in your application.
|
String |
imageIconUrl() |
The URL that points to an image used as the large icon to the notification content view.
|
String |
imageUrl() |
The URL that points to an image used in the push notification.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
rawContent() |
The Raw JSON formatted string to be used as the payload.
|
String |
restrictedPackageName() |
This parameter specifies the package name of the application where the registration tokens must match in order to
receive the message.
|
static Class<? extends GCMMessage.Builder> |
serializableBuilderClass() |
|
Boolean |
silentPush() |
Indicates if the message should display on the users device.
|
String |
smallImageIconUrl() |
The URL that points to an image used as the small icon for the notification which will be used to represent the
notification in the status bar and content view
|
String |
sound() |
Indicates a sound to play when the device receives the notification.
|
Map<String,List<String>> |
substitutions() |
Default message substitutions.
|
String |
title() |
The message title that displays above the message on the user's device.
|
GCMMessage.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.
|
public String action()
Action
public String body()
public String collapseKey()
public Map<String,String> data()
public String iconReference()
public String imageIconUrl()
public String imageUrl()
public String rawContent()
public String restrictedPackageName()
public Boolean silentPush()
public String smallImageIconUrl()
public String sound()
public Map<String,List<String>> substitutions()
public String title()
public String url()
public GCMMessage.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GCMMessage.Builder,GCMMessage>
public static GCMMessage.Builder builder()
public static Class<? extends GCMMessage.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.