Class Notification
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.notify.v1.service.Notification
-
- All Implemented Interfaces:
Serializable
public class Notification extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotification.Priority
-
Method Summary
-
-
-
Method Detail
-
creator
public static NotificationCreator creator(String pathServiceSid)
-
fromJson
public static Notification fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Notification object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Notification object represented by the provided JSON
-
fromJson
public static Notification fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Notification object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Notification object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getServiceSid
public final String getServiceSid()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getPriority
public final Notification.Priority getPriority()
-
getTtl
public final Integer getTtl()
-
getTitle
public final String getTitle()
-
getBody
public final String getBody()
-
getSound
public final String getSound()
-
getAction
public final String getAction()
-
-