Package io.sendon.sms.request
Class SmsBuilder
java.lang.Object
io.sendon.sms.request.SmsBuilder
Builder class for constructing SMS message details.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the sender's phone number.setIsAd(boolean isAd) Sets whether the message is an advertisement.setMessage(String message) Sets the message content.setReservation(Reservation reservation) Sets the reservation details for scheduling.Sets the list of recipients.
-
Field Details
-
from
-
to
-
message
-
isAd
public boolean isAd -
reservation
-
-
Constructor Details
-
SmsBuilder
public SmsBuilder()
-
-
Method Details
-
setFrom
Sets the sender's phone number.- Parameters:
from- The sender's phone number.- Returns:
- The current instance of
SmsBuilder.
-
setTo
Sets the list of recipients.- Parameters:
to- The list of recipients. Can beList<String>,List<ToWithName>, orList<ToWithBucket>.- Returns:
- The current instance of
SmsBuilder.
-
setMessage
Sets the message content.- Parameters:
message- The message content.- Returns:
- The current instance of
SmsBuilder.
-
setIsAd
Sets whether the message is an advertisement.- Parameters:
isAd-trueif the message is an advertisement, otherwisefalse.- Returns:
- The current instance of
SmsBuilder.
-
setReservation
Sets the reservation details for scheduling.- Parameters:
reservation- The reservation details.- Returns:
- The current instance of
SmsBuilder.
-