Class MessageCreator
- java.lang.Object
-
- com.twilio.base.Creator<Message>
-
- com.twilio.rest.api.v2010.account.MessageCreator
-
-
Constructor Summary
Constructors Constructor Description MessageCreator(PhoneNumber to, PhoneNumber from, String body)
MessageCreator(PhoneNumber to, PhoneNumber from, List<URI> mediaUrl)
MessageCreator(PhoneNumber to, String messagingServiceSid, String body)
MessageCreator(PhoneNumber to, String messagingServiceSid, List<URI> mediaUrl)
MessageCreator(String pathAccountSid, PhoneNumber to, PhoneNumber from, String body)
MessageCreator(String pathAccountSid, PhoneNumber to, PhoneNumber from, List<URI> mediaUrl)
MessageCreator(String pathAccountSid, PhoneNumber to, String messagingServiceSid, String body)
MessageCreator(String pathAccountSid, PhoneNumber to, String messagingServiceSid, List<URI> mediaUrl)
-
Method Summary
-
Methods inherited from class com.twilio.base.Creator
create, createAsync, createAsync
-
-
-
-
Constructor Detail
-
MessageCreator
public MessageCreator(PhoneNumber to, PhoneNumber from, String body)
-
MessageCreator
public MessageCreator(String pathAccountSid, PhoneNumber to, PhoneNumber from, String body)
-
MessageCreator
public MessageCreator(PhoneNumber to, PhoneNumber from, List<URI> mediaUrl)
-
MessageCreator
public MessageCreator(String pathAccountSid, PhoneNumber to, PhoneNumber from, List<URI> mediaUrl)
-
MessageCreator
public MessageCreator(PhoneNumber to, String messagingServiceSid, String body)
-
MessageCreator
public MessageCreator(String pathAccountSid, PhoneNumber to, String messagingServiceSid, String body)
-
MessageCreator
public MessageCreator(PhoneNumber to, String messagingServiceSid, List<URI> mediaUrl)
-
MessageCreator
public MessageCreator(String pathAccountSid, PhoneNumber to, String messagingServiceSid, List<URI> mediaUrl)
-
-
Method Detail
-
setTo
public MessageCreator setTo(PhoneNumber to)
-
setTo
public MessageCreator setTo(String to)
-
setStatusCallback
public MessageCreator setStatusCallback(URI statusCallback)
-
setStatusCallback
public MessageCreator setStatusCallback(String statusCallback)
-
setApplicationSid
public MessageCreator setApplicationSid(String applicationSid)
-
setMaxPrice
public MessageCreator setMaxPrice(BigDecimal maxPrice)
-
setProvideFeedback
public MessageCreator setProvideFeedback(Boolean provideFeedback)
-
setAttempt
public MessageCreator setAttempt(Integer attempt)
-
setValidityPeriod
public MessageCreator setValidityPeriod(Integer validityPeriod)
-
setForceDelivery
public MessageCreator setForceDelivery(Boolean forceDelivery)
-
setContentRetention
public MessageCreator setContentRetention(Message.ContentRetention contentRetention)
-
setAddressRetention
public MessageCreator setAddressRetention(Message.AddressRetention addressRetention)
-
setSmartEncoded
public MessageCreator setSmartEncoded(Boolean smartEncoded)
-
setPersistentAction
public MessageCreator setPersistentAction(List<String> persistentAction)
-
setPersistentAction
public MessageCreator setPersistentAction(String persistentAction)
-
setShortenUrls
public MessageCreator setShortenUrls(Boolean shortenUrls)
-
setScheduleType
public MessageCreator setScheduleType(Message.ScheduleType scheduleType)
-
setSendAt
public MessageCreator setSendAt(ZonedDateTime sendAt)
-
setSendAsMms
public MessageCreator setSendAsMms(Boolean sendAsMms)
-
setContentVariables
public MessageCreator setContentVariables(String contentVariables)
-
setRiskCheck
public MessageCreator setRiskCheck(Message.RiskCheck riskCheck)
-
setFrom
public MessageCreator setFrom(PhoneNumber from)
-
setFrom
public MessageCreator setFrom(String from)
-
setMessagingServiceSid
public MessageCreator setMessagingServiceSid(String messagingServiceSid)
-
setBody
public MessageCreator setBody(String body)
-
setMediaUrl
public MessageCreator setMediaUrl(List<URI> mediaUrl)
-
setMediaUrl
public MessageCreator setMediaUrl(URI mediaUrl)
-
setMediaUrl
public MessageCreator setMediaUrl(String mediaUrl)
-
setContentSid
public MessageCreator setContentSid(String contentSid)
-
-