Package com.sinch.sdk.domains.sms.models
Class BatchText
- java.lang.Object
-
- com.sinch.sdk.domains.sms.models.Batch<String>
-
- com.sinch.sdk.domains.sms.models.BatchText
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBatchText.Builder-
Nested classes/interfaces inherited from class com.sinch.sdk.domains.sms.models.Batch
Batch.BatchBuilder<T>
-
-
Constructor Summary
Constructors Constructor Description BatchText(String id, Collection<String> to, String from, Boolean canceled, String body, Instant createdAt, Instant modifiedAt, DeliveryReportType deliveryReport, Instant sendAt, Instant expireAt, String callbackUrl, String clientReference, Boolean flashMessage, Boolean feedbackEnabled, Parameters parameters, Boolean truncateConcat, Integer maxNumberOfMessageParts, Integer fromTon, Integer fromNpi)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BatchText.Builderbuilder()IntegergetFromNpi()IntegergetFromTon()IntegergetMaxNumberOfMessageParts()ParametersgetParameters()BooleanisFlashMessage()BooleanisTruncateConcat()StringtoString()-
Methods inherited from class com.sinch.sdk.domains.sms.models.Batch
batchBuilder, getBody, getCallbackUrl, getClientReference, getCreatedAt, getDeliveryReport, getExpireAt, getFrom, getId, getModifiedAt, getSendAt, getTo, isCanceled, isFeedbackEnabled
-
-
-
-
Constructor Detail
-
BatchText
public BatchText(String id, Collection<String> to, String from, Boolean canceled, String body, Instant createdAt, Instant modifiedAt, DeliveryReportType deliveryReport, Instant sendAt, Instant expireAt, String callbackUrl, String clientReference, Boolean flashMessage, Boolean feedbackEnabled, Parameters parameters, Boolean truncateConcat, Integer maxNumberOfMessageParts, Integer fromTon, Integer fromNpi)
- Parameters:
id- Unique identifier for batchto- List of Phone numbers and group IDs that will receive the batchfrom- Sender number. Must be valid phone number, short code or alphanumeric. Required if Automatic Default Originator not configured.canceled- Indicates if the batch has been canceled or not.body- The message contentcreatedAt- when batch was createdmodifiedAt- when batch was last updateddeliveryReport- Request delivery report callback. Note that delivery reports can be fetched from the API regardless of this settingsendAt- If set in the future, the message will be delayed until send_at occurs. Must be before expire_at. If set in the past, messages will be sent immediatelyexpireAt- If set, the system will stop trying to deliver the message at this point. Must be after send_at. Default and max is 3 days after send_atcallbackUrl- Override the default callback URL for this batch. Must be valid URL.clientReference- The client identifier of a batch message. If set, the identifier will be added in the delivery report/callback of this batchfeedbackEnabled- If set to true, then feedback is expected after successful delivery.parameters- Contains the parameters that will be used for customizing the message for each recipient.flashMessage- If sent as a flash message, displays true.truncateConcat- If set to true, the message was shortened when exceeding one part.maxNumberOfMessageParts- Displays the number of message parts set in the request.fromTon- The type of number for the sender number.fromNpi- Number Plan Indicator for the sender number.
-
-
Method Detail
-
getParameters
public Parameters getParameters()
-
isFlashMessage
public Boolean isFlashMessage()
-
isTruncateConcat
public Boolean isTruncateConcat()
-
getMaxNumberOfMessageParts
public Integer getMaxNumberOfMessageParts()
-
getFromTon
public Integer getFromTon()
-
getFromNpi
public Integer getFromNpi()
-
builder
public static BatchText.Builder builder()
-
-