Interface UpdateTextRequest
- All Superinterfaces:
UpdateBatchRequest
Update text message
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDedicated Builderstatic classRegular SMS -
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateTextRequest.Builderbuilder()Getting buildergetBody()The message contentOverride the default callback URL for this batch.The client identifier of a batch message.Get deliveryReportIf set, the system will stop trying to deliver the message at this point.If set totrue, then feedback is expected after successful delivery.Shows message on screen without user interaction while not saving the message to the inbox.getFrom()Sender number.Number Plan Indicator for the sender number.The type of number for the sender number.Message will be dispatched only if it is not split to more parts than Max Number of Message PartsContains the parameters that will be used for customizing the message for each recipient.If set, in the future the message will be delayed untilsend_atoccurs.getToAdd()List of phone numbers and group IDs to add to the batch.List of phone numbers and group IDs to remove from the batch.If set to true the message will be shortened when exceeding one part.
-
Method Details
-
getFrom
String getFrom()Sender number. Must be valid phone number, short code or alphanumeric.- Returns:
- from
-
getToAdd
List of phone numbers and group IDs to add to the batch.- Returns:
- toAdd
-
getToRemove
List of phone numbers and group IDs to remove from the batch.- Returns:
- toRemove
-
getDeliveryReport
DeliveryReportType getDeliveryReport()Get deliveryReport- Returns:
- deliveryReport
-
getSendAt
Instant getSendAt()If set, in the future the message will be delayed untilsend_atoccurs. Formatted as ISO-8601:YYYY-MM-DDThh:mm:ss.SSSZ. Constraints: Must be before expire_at. If set in the past, messages will be sent immediately.- Returns:
- sendAt
-
getExpireAt
Instant getExpireAt()If set, the system will stop trying to deliver the message at this point. Constraints: Must be aftersend_atDefault: 3 days aftersend_at- Returns:
- expireAt
-
getCallbackUrl
String getCallbackUrl()Override the default callback URL for this batch. Constraints: Must be valid URL.- Returns:
- callbackUrl
-
getClientReference
String getClientReference()The client identifier of a batch message. If set, the identifier will be added in the delivery report/callback of this batch- Returns:
- clientReference
-
getFeedbackEnabled
Boolean getFeedbackEnabled()If set totrue, then feedback is expected after successful delivery.- Returns:
- feedbackEnabled
-
getParameters
Contains the parameters that will be used for customizing the message for each recipient. Click here to learn more about parameterization.- Returns:
- parameters
-
getBody
String getBody()The message content- Returns:
- body
-
getFromTon
Integer getFromTon()The type of number for the sender number. Use to override the automatic detection.minimum: 0 maximum: 6
- Returns:
- fromTon
-
getFromNpi
Integer getFromNpi()Number Plan Indicator for the sender number. Use to override the automatic detection.minimum: 0 maximum: 18
- Returns:
- fromNpi
-
getMaxNumberOfMessageParts
Integer getMaxNumberOfMessageParts()Message will be dispatched only if it is not split to more parts than Max Number of Message Partsminimum: 1
- Returns:
- maxNumberOfMessageParts
-
getTruncateConcat
Boolean getTruncateConcat()If set to true the message will be shortened when exceeding one part.- Returns:
- truncateConcat
-
getFlashMessage
Boolean getFlashMessage()Shows message on screen without user interaction while not saving the message to the inbox.- Returns:
- flashMessage
-
builder
Getting builder- Returns:
- New Builder instance
-