Package io.sendon.sms.request
Class LmsBuilder
java.lang.Object
io.sendon.sms.request.LmsBuilder
Builder class for constructing LMS 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 title of the message.Sets the list of recipients.
-
Field Details
-
from
-
to
-
title
-
message
-
isAd
public boolean isAd -
reservation
-
-
Constructor Details
-
LmsBuilder
public LmsBuilder()
-
-
Method Details
-
setFrom
Sets the sender's phone number.- Parameters:
from- The sender's phone number.- Returns:
- The current instance of
LmsBuilder.
-
setTo
Sets the list of recipients.- Parameters:
to- The list of recipients. Can beList<String>,List<ToWithName>, orList<ToWithBucket>.- Returns:
- The current instance of
LmsBuilder.
-
setTitle
Sets the title of the message.- Parameters:
title- The title of the message.- Returns:
- The current instance of
LmsBuilder.
-
setMessage
Sets the message content.- Parameters:
message- The message content.- Returns:
- The current instance of
LmsBuilder.
-
setIsAd
Sets whether the message is an advertisement.- Parameters:
isAd-trueif the message is an advertisement, otherwisefalse.- Returns:
- The current instance of
LmsBuilder.
-
setReservation
Sets the reservation details for scheduling.- Parameters:
reservation- The reservation details.- Returns:
- The current instance of
LmsBuilder.
-