@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)
Add a single Tags entry
|
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.
|
String |
getRecommenderId()
The unique identifier for the recommender model to use for the message template.
|
Map<String,String> |
getTags()
|
String |
getTemplateDescription()
A custom description of the message template.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
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 |
setRecommenderId(String recommenderId)
The unique identifier for the recommender model to use for the message template.
|
void |
setTags(Map<String,String> tags)
|
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 |
withRecommenderId(String recommenderId)
The unique identifier for the recommender model to use for the message template.
|
PushNotificationTemplateRequest |
withTags(Map<String,String> tags)
|
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 void setRecommenderId(String recommenderId)
The unique identifier for the recommender model to use for the message template. Amazon Pinpoint uses this value to determine how to retrieve and process data from a recommender model when it sends messages that use the template, if the template contains message variables for recommendation data.
recommenderId
- The unique identifier for the recommender model to use for the message template. Amazon Pinpoint uses this
value to determine how to retrieve and process data from a recommender model when it sends messages that
use the template, if the template contains message variables for recommendation data.public String getRecommenderId()
The unique identifier for the recommender model to use for the message template. Amazon Pinpoint uses this value to determine how to retrieve and process data from a recommender model when it sends messages that use the template, if the template contains message variables for recommendation data.
public PushNotificationTemplateRequest withRecommenderId(String recommenderId)
The unique identifier for the recommender model to use for the message template. Amazon Pinpoint uses this value to determine how to retrieve and process data from a recommender model when it sends messages that use the template, if the template contains message variables for recommendation data.
recommenderId
- The unique identifier for the recommender model to use for the message template. Amazon Pinpoint uses this
value to determine how to retrieve and process data from a recommender model when it sends messages that
use the template, if the template contains message variables for recommendation data.public Map<String,String> getTags()
As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.
(Deprecated) 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)
As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.
(Deprecated) 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
- As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags
is not processed and an error code is not returned. To manage tags we recommend using either Tags in the
API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.public PushNotificationTemplateRequest withTags(Map<String,String> tags)
As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.
(Deprecated) 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
- As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags
is not processed and an error code is not returned. To manage tags we recommend using either Tags in the
API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.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)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.