@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PushNotificationTemplateResponse extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about 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 |
---|
PushNotificationTemplateResponse() |
Modifier and Type | Method and Description |
---|---|
PushNotificationTemplateResponse |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
PushNotificationTemplateResponse |
clearTagsEntries()
Removes all the entries added into Tags.
|
PushNotificationTemplateResponse |
clone() |
boolean |
equals(Object obj) |
AndroidPushNotificationTemplate |
getADM()
The message template that's used for the ADM (Amazon Device Messaging) channel.
|
APNSPushNotificationTemplate |
getAPNS()
The message template that's used for the APNs (Apple Push Notification service) channel.
|
String |
getArn()
The Amazon Resource Name (ARN) of the message template.
|
AndroidPushNotificationTemplate |
getBaidu()
The message template that's used for the Baidu (Baidu Cloud Push) channel.
|
String |
getCreationDate()
The date, in ISO 8601 format, when the message template was created.
|
DefaultPushNotificationTemplate |
getDefault()
The default message template that's used for push notification channels.
|
String |
getDefaultSubstitutions()
The JSON object that specifies the default values that are used for message variables in the message template.
|
AndroidPushNotificationTemplate |
getGCM()
The message template that's used for the GCM channel, which is used to send notifications through the Firebase
Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
|
String |
getLastModifiedDate()
The date, in ISO 8601 format, when the message template was last modified.
|
String |
getRecommenderId()
The unique identifier for the recommender model that's used by the message template.
|
Map<String,String> |
getTags()
A string-to-string map of key-value pairs that identifies the tags that are associated with the message template.
|
String |
getTemplateDescription()
The custom description of the message template.
|
String |
getTemplateName()
The name of the message template.
|
String |
getTemplateType()
The type of channel that the message template is designed for.
|
String |
getVersion()
The unique identifier, as an integer, for the active version of the message template, or the version of the
template that you specified by using the version parameter in your request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setADM(AndroidPushNotificationTemplate aDM)
The message template that's used for the ADM (Amazon Device Messaging) channel.
|
void |
setAPNS(APNSPushNotificationTemplate aPNS)
The message template that's used for the APNs (Apple Push Notification service) channel.
|
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the message template.
|
void |
setBaidu(AndroidPushNotificationTemplate baidu)
The message template that's used for the Baidu (Baidu Cloud Push) channel.
|
void |
setCreationDate(String creationDate)
The date, in ISO 8601 format, when the message template was created.
|
void |
setDefault(DefaultPushNotificationTemplate defaultValue)
The default message template that's used for push notification channels.
|
void |
setDefaultSubstitutions(String defaultSubstitutions)
The JSON object that specifies the default values that are used for message variables in the message template.
|
void |
setGCM(AndroidPushNotificationTemplate gCM)
The message template that's used for the GCM channel, which is used to send notifications through the Firebase
Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
|
void |
setLastModifiedDate(String lastModifiedDate)
The date, in ISO 8601 format, when the message template was last modified.
|
void |
setRecommenderId(String recommenderId)
The unique identifier for the recommender model that's used by the message template.
|
void |
setTags(Map<String,String> tags)
A string-to-string map of key-value pairs that identifies the tags that are associated with the message template.
|
void |
setTemplateDescription(String templateDescription)
The custom description of the message template.
|
void |
setTemplateName(String templateName)
The name of the message template.
|
void |
setTemplateType(String templateType)
The type of channel that the message template is designed for.
|
void |
setVersion(String version)
The unique identifier, as an integer, for the active version of the message template, or the version of the
template that you specified by using the version parameter in your request.
|
String |
toString()
Returns a string representation of this object.
|
PushNotificationTemplateResponse |
withADM(AndroidPushNotificationTemplate aDM)
The message template that's used for the ADM (Amazon Device Messaging) channel.
|
PushNotificationTemplateResponse |
withAPNS(APNSPushNotificationTemplate aPNS)
The message template that's used for the APNs (Apple Push Notification service) channel.
|
PushNotificationTemplateResponse |
withArn(String arn)
The Amazon Resource Name (ARN) of the message template.
|
PushNotificationTemplateResponse |
withBaidu(AndroidPushNotificationTemplate baidu)
The message template that's used for the Baidu (Baidu Cloud Push) channel.
|
PushNotificationTemplateResponse |
withCreationDate(String creationDate)
The date, in ISO 8601 format, when the message template was created.
|
PushNotificationTemplateResponse |
withDefault(DefaultPushNotificationTemplate defaultValue)
The default message template that's used for push notification channels.
|
PushNotificationTemplateResponse |
withDefaultSubstitutions(String defaultSubstitutions)
The JSON object that specifies the default values that are used for message variables in the message template.
|
PushNotificationTemplateResponse |
withGCM(AndroidPushNotificationTemplate gCM)
The message template that's used for the GCM channel, which is used to send notifications through the Firebase
Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
|
PushNotificationTemplateResponse |
withLastModifiedDate(String lastModifiedDate)
The date, in ISO 8601 format, when the message template was last modified.
|
PushNotificationTemplateResponse |
withRecommenderId(String recommenderId)
The unique identifier for the recommender model that's used by the message template.
|
PushNotificationTemplateResponse |
withTags(Map<String,String> tags)
A string-to-string map of key-value pairs that identifies the tags that are associated with the message template.
|
PushNotificationTemplateResponse |
withTemplateDescription(String templateDescription)
The custom description of the message template.
|
PushNotificationTemplateResponse |
withTemplateName(String templateName)
The name of the message template.
|
PushNotificationTemplateResponse |
withTemplateType(String templateType)
The type of channel that the message template is designed for.
|
PushNotificationTemplateResponse |
withTemplateType(TemplateType templateType)
The type of channel that the message template is designed for.
|
PushNotificationTemplateResponse |
withVersion(String version)
The unique identifier, as an integer, for the active version of the message template, or the version of the
template that you specified by using the version parameter in your request.
|
public void setADM(AndroidPushNotificationTemplate aDM)
The message template that's used for the ADM (Amazon Device Messaging) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
aDM
- The message template that's used 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 that's used for the ADM (Amazon Device Messaging) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
public PushNotificationTemplateResponse withADM(AndroidPushNotificationTemplate aDM)
The message template that's used for the ADM (Amazon Device Messaging) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
aDM
- The message template that's used 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 that's used for the APNs (Apple Push Notification service) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
aPNS
- The message template that's used 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 that's used for the APNs (Apple Push Notification service) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
public PushNotificationTemplateResponse withAPNS(APNSPushNotificationTemplate aPNS)
The message template that's used for the APNs (Apple Push Notification service) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
aPNS
- The message template that's used for the APNs (Apple Push Notification service) channel. This message
template overrides the default template for push notification channels (DefaultPushNotificationTemplate).public void setArn(String arn)
The Amazon Resource Name (ARN) of the message template.
arn
- The Amazon Resource Name (ARN) of the message template.public String getArn()
The Amazon Resource Name (ARN) of the message template.
public PushNotificationTemplateResponse withArn(String arn)
The Amazon Resource Name (ARN) of the message template.
arn
- The Amazon Resource Name (ARN) of the message template.public void setBaidu(AndroidPushNotificationTemplate baidu)
The message template that's used for the Baidu (Baidu Cloud Push) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
baidu
- The message template that's used 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 that's used for the Baidu (Baidu Cloud Push) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
public PushNotificationTemplateResponse withBaidu(AndroidPushNotificationTemplate baidu)
The message template that's used for the Baidu (Baidu Cloud Push) channel. This message template overrides the default template for push notification channels (DefaultPushNotificationTemplate).
baidu
- The message template that's used for the Baidu (Baidu Cloud Push) channel. This message template overrides
the default template for push notification channels (DefaultPushNotificationTemplate).public void setCreationDate(String creationDate)
The date, in ISO 8601 format, when the message template was created.
creationDate
- The date, in ISO 8601 format, when the message template was created.public String getCreationDate()
The date, in ISO 8601 format, when the message template was created.
public PushNotificationTemplateResponse withCreationDate(String creationDate)
The date, in ISO 8601 format, when the message template was created.
creationDate
- The date, in ISO 8601 format, when the message template was created.public void setDefault(DefaultPushNotificationTemplate defaultValue)
The default message template that's used for push notification channels.
defaultValue
- The default message template that's used for push notification channels.public DefaultPushNotificationTemplate getDefault()
The default message template that's used for push notification channels.
public PushNotificationTemplateResponse withDefault(DefaultPushNotificationTemplate defaultValue)
The default message template that's used for push notification channels.
defaultValue
- The default message template that's used for push notification channels.public void setDefaultSubstitutions(String defaultSubstitutions)
The JSON object that specifies the default values that are used 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.
defaultSubstitutions
- The JSON object that specifies the default values that are used 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.public String getDefaultSubstitutions()
The JSON object that specifies the default values that are used 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.
public PushNotificationTemplateResponse withDefaultSubstitutions(String defaultSubstitutions)
The JSON object that specifies the default values that are used 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.
defaultSubstitutions
- The JSON object that specifies the default values that are used 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.public void setGCM(AndroidPushNotificationTemplate gCM)
The message template that's used 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 that's used 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 that's used 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 PushNotificationTemplateResponse withGCM(AndroidPushNotificationTemplate gCM)
The message template that's used 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 that's used 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 setLastModifiedDate(String lastModifiedDate)
The date, in ISO 8601 format, when the message template was last modified.
lastModifiedDate
- The date, in ISO 8601 format, when the message template was last modified.public String getLastModifiedDate()
The date, in ISO 8601 format, when the message template was last modified.
public PushNotificationTemplateResponse withLastModifiedDate(String lastModifiedDate)
The date, in ISO 8601 format, when the message template was last modified.
lastModifiedDate
- The date, in ISO 8601 format, when the message template was last modified.public void setRecommenderId(String recommenderId)
The unique identifier for the recommender model that's used by the message template.
recommenderId
- The unique identifier for the recommender model that's used by the message template.public String getRecommenderId()
The unique identifier for the recommender model that's used by the message template.
public PushNotificationTemplateResponse withRecommenderId(String recommenderId)
The unique identifier for the recommender model that's used by the message template.
recommenderId
- The unique identifier for the recommender model that's used by the message template.public Map<String,String> getTags()
A string-to-string map of key-value pairs that identifies the tags that are associated 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 identifies the tags that are associated 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 identifies the tags that are associated with the message
template. Each tag consists of a required tag key and an associated tag value.public PushNotificationTemplateResponse withTags(Map<String,String> tags)
A string-to-string map of key-value pairs that identifies the tags that are associated 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 identifies the tags that are associated with the message
template. Each tag consists of a required tag key and an associated tag value.public PushNotificationTemplateResponse addTagsEntry(String key, String value)
public PushNotificationTemplateResponse clearTagsEntries()
public void setTemplateDescription(String templateDescription)
The custom description of the message template.
templateDescription
- The custom description of the message template.public String getTemplateDescription()
The custom description of the message template.
public PushNotificationTemplateResponse withTemplateDescription(String templateDescription)
The custom description of the message template.
templateDescription
- The custom description of the message template.public void setTemplateName(String templateName)
The name of the message template.
templateName
- The name of the message template.public String getTemplateName()
The name of the message template.
public PushNotificationTemplateResponse withTemplateName(String templateName)
The name of the message template.
templateName
- The name of the message template.public void setTemplateType(String templateType)
The type of channel that the message template is designed for. For a push notification template, this value is PUSH.
templateType
- The type of channel that the message template is designed for. For a push notification template, this
value is PUSH.TemplateType
public String getTemplateType()
The type of channel that the message template is designed for. For a push notification template, this value is PUSH.
TemplateType
public PushNotificationTemplateResponse withTemplateType(String templateType)
The type of channel that the message template is designed for. For a push notification template, this value is PUSH.
templateType
- The type of channel that the message template is designed for. For a push notification template, this
value is PUSH.TemplateType
public PushNotificationTemplateResponse withTemplateType(TemplateType templateType)
The type of channel that the message template is designed for. For a push notification template, this value is PUSH.
templateType
- The type of channel that the message template is designed for. For a push notification template, this
value is PUSH.TemplateType
public void setVersion(String version)
The unique identifier, as an integer, for the active version of the message template, or the version of the template that you specified by using the version parameter in your request.
version
- The unique identifier, as an integer, for the active version of the message template, or the version of
the template that you specified by using the version parameter in your request.public String getVersion()
The unique identifier, as an integer, for the active version of the message template, or the version of the template that you specified by using the version parameter in your request.
public PushNotificationTemplateResponse withVersion(String version)
The unique identifier, as an integer, for the active version of the message template, or the version of the template that you specified by using the version parameter in your request.
version
- The unique identifier, as an integer, for the active version of the message template, or the version of
the template that you specified by using the version parameter in your request.public String toString()
toString
in class Object
Object.toString()
public PushNotificationTemplateResponse clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.