@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.
|
String |
getDefaultSubstitutions()
A JSON object that specifies the default values to use for message variables in the message template.
|
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.
|
String |
getTemplateDescription()
A custom description of 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 |
setDefaultSubstitutions(String defaultSubstitutions)
A JSON object that specifies the default values to use for message variables in the message template.
|
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.
|
void |
setTemplateDescription(String templateDescription)
A custom description of 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 |
withDefaultSubstitutions(String defaultSubstitutions)
A JSON object that specifies the default values to use for message variables in the message template.
|
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.
|
PushNotificationTemplateRequest |
withTemplateDescription(String templateDescription)
A custom description of 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 setDefaultSubstitutions(String defaultSubstitutions)
A JSON object that specifies the default values to use for message variables in the message template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.
defaultSubstitutions
- A JSON object that specifies the default values to use for message variables in the message template. This
object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding
value defines the default value for that variable. When you create a message that's based on the template,
you can override these defaults with message-specific and address-specific variables and values.public String getDefaultSubstitutions()
A JSON object that specifies the default values to use for message variables in the message template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.
public PushNotificationTemplateRequest withDefaultSubstitutions(String defaultSubstitutions)
A JSON object that specifies the default values to use for message variables in the message template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.
defaultSubstitutions
- A JSON object that specifies the default values to use for message variables in the message template. This
object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding
value defines the default value for that variable. When you create a message that's based on the template,
you can override these defaults with message-specific and address-specific variables and values.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 void setTemplateDescription(String templateDescription)
A custom description of the message template.
templateDescription
- A custom description of the message template.public String getTemplateDescription()
A custom description of the message template.
public PushNotificationTemplateRequest withTemplateDescription(String templateDescription)
A custom description of the message template.
templateDescription
- A custom description of the message template.public String toString()
toString
in class Object
Object.toString()
public PushNotificationTemplateRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2019. All rights reserved.