Class NotificationCreator
- java.lang.Object
-
- com.twilio.base.Creator<Notification>
-
- com.twilio.rest.notify.v1.service.NotificationCreator
-
public class NotificationCreator extends Creator<Notification>
-
-
Constructor Summary
Constructors Constructor Description NotificationCreator(String pathServiceSid)
-
Method Summary
-
Methods inherited from class com.twilio.base.Creator
create, createAsync, createAsync
-
-
-
-
Constructor Detail
-
NotificationCreator
public NotificationCreator(String pathServiceSid)
-
-
Method Detail
-
setBody
public NotificationCreator setBody(String body)
-
setPriority
public NotificationCreator setPriority(Notification.Priority priority)
-
setTtl
public NotificationCreator setTtl(Integer ttl)
-
setTitle
public NotificationCreator setTitle(String title)
-
setSound
public NotificationCreator setSound(String sound)
-
setAction
public NotificationCreator setAction(String action)
-
setData
public NotificationCreator setData(Map<String,Object> data)
-
setApn
public NotificationCreator setApn(Map<String,Object> apn)
-
setGcm
public NotificationCreator setGcm(Map<String,Object> gcm)
-
setSms
public NotificationCreator setSms(Map<String,Object> sms)
-
setFacebookMessenger
public NotificationCreator setFacebookMessenger(Map<String,Object> facebookMessenger)
-
setFcm
public NotificationCreator setFcm(Map<String,Object> fcm)
-
setSegment
public NotificationCreator setSegment(List<String> segment)
-
setSegment
public NotificationCreator setSegment(String segment)
-
setAlexa
public NotificationCreator setAlexa(Map<String,Object> alexa)
-
setToBinding
public NotificationCreator setToBinding(List<String> toBinding)
-
setToBinding
public NotificationCreator setToBinding(String toBinding)
-
setDeliveryCallbackUrl
public NotificationCreator setDeliveryCallbackUrl(String deliveryCallbackUrl)
-
setIdentity
public NotificationCreator setIdentity(List<String> identity)
-
setIdentity
public NotificationCreator setIdentity(String identity)
-
setTag
public NotificationCreator setTag(List<String> tag)
-
setTag
public NotificationCreator setTag(String tag)
-
create
public Notification create(TwilioRestClient client)
Description copied from class:Creator
Execute a request using specified client.- Specified by:
create
in classCreator<Notification>
- Parameters:
client
- client used to make request- Returns:
- Requested object
-
-