@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PushNotificationTemplateRequest extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the content and settings for a message template that can be used in messages that are sent through a push notification channel.
| Constructor and Description |
|---|
PushNotificationTemplateRequest() |
| Modifier and Type | Method and Description |
|---|---|
PushNotificationTemplateRequest |
addTagsEntry(String key,
String value) |
PushNotificationTemplateRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
PushNotificationTemplateRequest |
clone() |
boolean |
equals(Object obj) |
AndroidPushNotificationTemplate |
getADM()
The message template to use for the ADM (Amazon Device Messaging) channel.
|
APNSPushNotificationTemplate |
getAPNS()
The message template to use for the APNs (Apple Push Notification service) channel.
|
AndroidPushNotificationTemplate |
getBaidu()
The message template to use for the Baidu (Baidu Cloud Push) channel.
|
DefaultPushNotificationTemplate |
getDefault()
The default message template to use for push notification channels.
|
AndroidPushNotificationTemplate |
getGCM()
The message template to use for the GCM channel, which is used to send notifications through the Firebase Cloud
Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
|
Map<String,String> |
getTags()
A string-to-string map of key-value pairs that defines the tags to associate with the message template.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setADM(AndroidPushNotificationTemplate aDM)
The message template to use for the ADM (Amazon Device Messaging) channel.
|
void |
setAPNS(APNSPushNotificationTemplate aPNS)
The message template to use for the APNs (Apple Push Notification service) channel.
|
void |
setBaidu(AndroidPushNotificationTemplate baidu)
The message template to use for the Baidu (Baidu Cloud Push) channel.
|
void |
setDefault(DefaultPushNotificationTemplate defaultValue)
The default message template to use for push notification channels.
|
void |
setGCM(AndroidPushNotificationTemplate gCM)
The message template to use for the GCM channel, which is used to send notifications through the Firebase Cloud
Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
|
void |
setTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the message template.
|
String |
toString()
Returns a string representation of this object.
|
PushNotificationTemplateRequest |
withADM(AndroidPushNotificationTemplate aDM)
The message template to use for the ADM (Amazon Device Messaging) channel.
|
PushNotificationTemplateRequest |
withAPNS(APNSPushNotificationTemplate aPNS)
The message template to use for the APNs (Apple Push Notification service) channel.
|
PushNotificationTemplateRequest |
withBaidu(AndroidPushNotificationTemplate baidu)
The message template to use for the Baidu (Baidu Cloud Push) channel.
|
PushNotificationTemplateRequest |
withDefault(DefaultPushNotificationTemplate defaultValue)
The default message template to use for push notification channels.
|
PushNotificationTemplateRequest |
withGCM(AndroidPushNotificationTemplate gCM)
The message template to use for the GCM channel, which is used to send notifications through the Firebase Cloud
Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
|
PushNotificationTemplateRequest |
withTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the message template.
|
public void setADM(AndroidPushNotificationTemplate aDM)
The message template to use for the ADM (Amazon Device Messaging) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
aDM - The message template to use for the ADM (Amazon Device Messaging) channel. This message template overrides
the default template for push notification channels (DefaultPushNotificationTemplate).public AndroidPushNotificationTemplate getADM()
The message template to use for the ADM (Amazon Device Messaging) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
public PushNotificationTemplateRequest withADM(AndroidPushNotificationTemplate aDM)
The message template to use for the ADM (Amazon Device Messaging) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
aDM - The message template to use for the ADM (Amazon Device Messaging) channel. This message template overrides
the default template for push notification channels (DefaultPushNotificationTemplate).public void setAPNS(APNSPushNotificationTemplate aPNS)
The message template to use for the APNs (Apple Push Notification service) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
aPNS - The message template to use for the APNs (Apple Push Notification service) channel. This message template
overrides the default template for push notification channels (DefaultPushNotificationTemplate).public APNSPushNotificationTemplate getAPNS()
The message template to use for the APNs (Apple Push Notification service) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
public PushNotificationTemplateRequest withAPNS(APNSPushNotificationTemplate aPNS)
The message template to use for the APNs (Apple Push Notification service) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
aPNS - The message template to use for the APNs (Apple Push Notification service) channel. This message template
overrides the default template for push notification channels (DefaultPushNotificationTemplate).public void setBaidu(AndroidPushNotificationTemplate baidu)
The message template to use for the Baidu (Baidu Cloud Push) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
baidu - The message template to use for the Baidu (Baidu Cloud Push) channel. This message template overrides the
default template for push notification channels (DefaultPushNotificationTemplate).public AndroidPushNotificationTemplate getBaidu()
The message template to use for the Baidu (Baidu Cloud Push) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
public PushNotificationTemplateRequest withBaidu(AndroidPushNotificationTemplate baidu)
The message template to use for the Baidu (Baidu Cloud Push) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
baidu - The message template to use for the Baidu (Baidu Cloud Push) channel. This message template overrides the
default template for push notification channels (DefaultPushNotificationTemplate).public void setDefault(DefaultPushNotificationTemplate defaultValue)
The default message template to use for push notification channels.
defaultValue - The default message template to use for push notification channels.public DefaultPushNotificationTemplate getDefault()
The default message template to use for push notification channels.
public PushNotificationTemplateRequest withDefault(DefaultPushNotificationTemplate defaultValue)
The default message template to use for push notification channels.
defaultValue - The default message template to use for push notification channels.public void setGCM(AndroidPushNotificationTemplate gCM)
The message template to use for the GCM channel, which is used to send notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
gCM - The message template to use for the GCM channel, which is used to send notifications through the Firebase
Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. This message template overrides the
default template for push notification channels (DefaultPushNotificationTemplate).public AndroidPushNotificationTemplate getGCM()
The message template to use for the GCM channel, which is used to send notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
public PushNotificationTemplateRequest withGCM(AndroidPushNotificationTemplate gCM)
The message template to use for the GCM channel, which is used to send notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
gCM - The message template to use for the GCM channel, which is used to send notifications through the Firebase
Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. This message template overrides the
default template for push notification channels (DefaultPushNotificationTemplate).public Map<String,String> getTags()
A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
public void setTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
tags - A string-to-string map of key-value pairs that defines the tags to associate with the message template.
Each tag consists of a required tag key and an associated tag value.public PushNotificationTemplateRequest withTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
tags - A string-to-string map of key-value pairs that defines the tags to associate with the message template.
Each tag consists of a required tag key and an associated tag value.public PushNotificationTemplateRequest addTagsEntry(String key, String value)
public PushNotificationTemplateRequest clearTagsEntries()
public String toString()
toString in class ObjectObject.toString()public PushNotificationTemplateRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.