Package com.sendly.models
Class SendBatchRequest
java.lang.Object
com.sendly.models.SendBatchRequest
Request object for sending a batch of SMS messages.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for SendBatchRequest. -
Constructor Summary
ConstructorsConstructorDescriptionSendBatchRequest(List<BatchMessageItem> messages) Create a new send batch request.SendBatchRequest(List<BatchMessageItem> messages, String from) Create a new send batch request with sender ID.SendBatchRequest(List<BatchMessageItem> messages, String from, String messageType) Create a new send batch request with sender ID and message type. -
Method Summary
Modifier and TypeMethodDescriptionstatic SendBatchRequest.Builderbuilder()Create a builder for SendBatchRequest.getFrom()
-
Constructor Details
-
SendBatchRequest
Create a new send batch request.- Parameters:
messages- List of messages to send
-
SendBatchRequest
Create a new send batch request with sender ID.- Parameters:
messages- List of messages to sendfrom- Optional sender ID (applies to all messages)
-
SendBatchRequest
Create a new send batch request with sender ID and message type.- Parameters:
messages- List of messages to sendfrom- Optional sender ID (applies to all messages)messageType- Message type: "marketing" (default, subject to quiet hours) or "transactional" (24/7)
-
-
Method Details
-
getMessages
-
getFrom
-
getMessageType
-
builder
Create a builder for SendBatchRequest.
-