public class Notification extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Notification.Priority |
Modifier and Type | Method and Description |
---|---|
static NotificationCreator |
creator(String pathServiceSid)
Create a NotificationCreator to execute create.
|
boolean |
equals(Object o) |
static Notification |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Notification object using the provided
ObjectMapper.
|
static Notification |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Notification object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
String |
getAction()
Returns The actions to display for the notification.
|
Map<String,Object> |
getAlexa()
Returns Deprecated.
|
Map<String,Object> |
getApn()
Returns The APNS-specific payload that overrides corresponding attributes in
a generic payload for APNS Bindings.
|
String |
getBody()
Returns The notification body text.
|
Map<String,Object> |
getData()
Returns The custom key-value pairs of the notification's payload.
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT when the resource was created.
|
Map<String,Object> |
getFacebookMessenger()
Returns Deprecated.
|
Map<String,Object> |
getFcm()
Returns The FCM-specific payload that overrides corresponding attributes in
generic payload for FCM Bindings.
|
Map<String,Object> |
getGcm()
Returns The GCM-specific payload that overrides corresponding attributes in
generic payload for GCM Bindings.
|
List<String> |
getIdentities()
Returns The list of identity values of the Users to notify.
|
Notification.Priority |
getPriority()
Returns The priority of the notification.
|
List<String> |
getSegments()
Returns The list of Segments to notify.
|
String |
getServiceSid()
Returns The SID of the Service that the resource is associated with.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
Map<String,Object> |
getSms()
Returns The SMS-specific payload that overrides corresponding attributes in
generic payload for SMS Bindings.
|
String |
getSound()
Returns The name of the sound to be played for the notification.
|
List<String> |
getTags()
Returns The tags that select the Bindings to notify.
|
String |
getTitle()
Returns The notification title.
|
Integer |
getTtl()
Returns How long, in seconds, the notification is valid.
|
int |
hashCode() |
public static NotificationCreator creator(String pathServiceSid)
pathServiceSid
- The SID of the Service to create the resource underpublic static Notification fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Notification fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getAccountSid()
public final String getServiceSid()
public final ZonedDateTime getDateCreated()
public final List<String> getIdentities()
public final List<String> getTags()
public final List<String> getSegments()
public final Notification.Priority getPriority()
public final Integer getTtl()
public final String getTitle()
public final String getBody()
public final String getSound()
public final String getAction()
public final Map<String,Object> getData()
public final Map<String,Object> getApn()
public final Map<String,Object> getGcm()
public final Map<String,Object> getFcm()
public final Map<String,Object> getSms()
public final Map<String,Object> getFacebookMessenger()
Copyright © 2019 Twilio, Inc. All Rights Reserved.