@Generated(value="software.amazon.awssdk:codegen") public final class APNSMessage extends Object implements SdkPojo, Serializable, ToCopyableBuilder<APNSMessage.Builder,APNSMessage>
Modifier and Type | Class and Description |
---|---|
static interface |
APNSMessage.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.
|
Integer |
badge()
Include this key when you want the system to modify the badge of your app icon.
|
String |
body()
The message body of the notification.
|
static APNSMessage.Builder |
builder() |
String |
category()
Provide this key with a string value that represents the notification's type.
|
String |
collapseId()
An ID that, if assigned to multiple messages, causes APNs to coalesce the messages into a single push
notification instead of delivering each message individually.
|
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() |
String |
mediaUrl()
A URL that refers to the location of an image or video that you want to display in the push notification.
|
String |
preferredAuthenticationMethod()
The preferred authentication method, either "CERTIFICATE" or "TOKEN"
|
String |
priority()
The message priority.
|
String |
rawContent()
The Raw JSON formatted string to be used as the payload.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends APNSMessage.Builder> |
serializableBuilderClass() |
Boolean |
silentPush()
Indicates if the message should display on the users device.
|
String |
sound()
Include this key when you want the system to play a sound.
|
Map<String,List<String>> |
substitutions()
Default message substitutions.
|
String |
threadId()
Provide this key with a string value that represents the app-specific identifier for grouping notifications.
|
Integer |
timeToLive()
The length of time (in seconds) that APNs stores and attempts to deliver the message.
|
String |
title()
The message title that displays above the message on the user's device.
|
APNSMessage.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 Integer badge()
public String body()
public String category()
public String collapseId()
public Map<String,String> data()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String mediaUrl()
public String preferredAuthenticationMethod()
public String priority()
public String rawContent()
public Boolean silentPush()
public String sound()
public Map<String,List<String>> substitutions()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String threadId()
public Integer timeToLive()
public String title()
public String url()
public APNSMessage.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<APNSMessage.Builder,APNSMessage>
public static APNSMessage.Builder builder()
public static Class<? extends APNSMessage.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.