public static class SmsPayload.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SmsPayload |
build()
Build an SmsPayload object.
|
SmsPayload.Builder |
setAlert(java.lang.String alert)
Set the sms alert. sms templates cannot be used with the payload alert.
|
SmsPayload.Builder |
setPushExpiry(PushExpiry pushExpiry)
Set the push expiry.
|
SmsPayload.Builder |
setSmsTemplate(SmsTemplate smsTemplate)
Set the sms template.
|
public SmsPayload.Builder setAlert(java.lang.String alert)
alert
- Stringpublic SmsPayload.Builder setPushExpiry(PushExpiry pushExpiry)
pushExpiry
- PushExpirypublic SmsPayload.Builder setSmsTemplate(SmsTemplate smsTemplate)
smsTemplate
- SmsTemplatepublic SmsPayload build()
1. alert and template cannot both be set.
java.lang.IllegalArgumentException
- if alert and template are both set.